EventSubscriptionInterface.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <functional>
4 
7 
9 {
10 
12  std::function<void(const core::GlobalTrajectoryUpdatedEvent&)>;
14  std::function<void(const core::LocalTrajectoryUpdatedEvent&)>;
16  std::function<void(const traj_ctrl::local::TrajectoryControllerResult&)>;
18  std::function<void(const core::GlobalPlanningFailedEvent&)>;
19 
20  using LocalPlanningFailedCallback = std::function<void(const core::LocalPlanningFailedEvent&)>;
21 
22  using OnMovementStartedCallback = std::function<void(const core::MovementStartedEvent&)>;
23 
24  using OnGoalReachedCallback = std::function<void(const core::GoalReachedEvent&)>;
25  using OnWaypointReachedCallback = std::function<void(const core::WaypointReachedEvent&)>;
27  std::function<void(const core::SafetyThrottlingTriggeredEvent&)>;
29  std::function<void(const core::SafetyStopTriggeredEvent&)>;
30  using OnUserAbortTriggeredCallback = std::function<void(const core::UserAbortTriggeredEvent&)>;
31  using OnInternalErrorCallback = std::function<void(const core::InternalErrorEvent&)>;
32 
34  {
35 
36  public:
37  virtual void onMovementStarted(const OnMovementStartedCallback& callback) = 0;
38  virtual void onGoalReached(const OnGoalReachedCallback& callback) = 0;
39 
40  virtual void onWaypointReached(const OnWaypointReachedCallback& callback) = 0;
41 
42  virtual void
44 
45  virtual void onSafetyStopTriggered(const OnSafetyStopTriggeredCallback& callback) = 0;
46 
47  virtual void onUserAbortTriggered(const OnUserAbortTriggeredCallback& callback) = 0;
48 
49  virtual void onInternalError(const OnInternalErrorCallback& callback) = 0;
50 
51  virtual void onGlobalPlanningFailed(const GlobalPlanningFailedCallback& callback) = 0;
52  virtual void onLocalPlanningFailed(const LocalPlanningFailedCallback& callback) = 0;
53 
54  virtual void onGlobalTrajectoryUpdated(const GlobalTrajectoryUpdatedCallback& callback) = 0;
55  virtual void onLocalTrajectoryUpdated(const LocalTrajectoryUpdatedCallback& callback) = 0;
56 
57 
58  // Non-API.
59  virtual ~EventSubscriptionInterface() = default;
60  };
61 
62 } // namespace armarx::navigation::client
armarx::navigation::client::EventSubscriptionInterface::onUserAbortTriggered
virtual void onUserAbortTriggered(const OnUserAbortTriggeredCallback &callback)=0
armarx::navigation::client::EventSubscriptionInterface::onLocalPlanningFailed
virtual void onLocalPlanningFailed(const LocalPlanningFailedCallback &callback)=0
armarx::navigation::client::OnWaypointReachedCallback
std::function< void(const core::WaypointReachedEvent &)> OnWaypointReachedCallback
Definition: EventSubscriptionInterface.h:25
armarx::navigation::client::GlobalPlanningFailedCallback
std::function< void(const core::GlobalPlanningFailedEvent &)> GlobalPlanningFailedCallback
Definition: EventSubscriptionInterface.h:18
armarx::navigation::client::EventSubscriptionInterface::onGlobalTrajectoryUpdated
virtual void onGlobalTrajectoryUpdated(const GlobalTrajectoryUpdatedCallback &callback)=0
TrajectoryController.h
armarx::navigation::core::InternalErrorEvent
Event describing the occurance of an internal unhandled error.
Definition: events.h:104
armarx::navigation::core::SafetyThrottlingTriggeredEvent
Event desciribing that a significant safety throttling factor was reached.
Definition: events.h:71
armarx::navigation::client::EventSubscriptionInterface::~EventSubscriptionInterface
virtual ~EventSubscriptionInterface()=default
armarx::navigation::client
This file is part of ArmarX.
Definition: ComponentPlugin.cpp:21
armarx::navigation::client::EventSubscriptionInterface::onLocalTrajectoryUpdated
virtual void onLocalTrajectoryUpdated(const LocalTrajectoryUpdatedCallback &callback)=0
armarx::navigation::client::LocalPlanningFailedCallback
std::function< void(const core::LocalPlanningFailedEvent &)> LocalPlanningFailedCallback
Definition: EventSubscriptionInterface.h:20
armarx::navigation::client::GlobalTrajectoryUpdatedCallback
std::function< void(const core::GlobalTrajectoryUpdatedEvent &)> GlobalTrajectoryUpdatedCallback
Definition: EventSubscriptionInterface.h:12
armarx::navigation::client::EventSubscriptionInterface::onWaypointReached
virtual void onWaypointReached(const OnWaypointReachedCallback &callback)=0
events.h
armarx::navigation::client::EventSubscriptionInterface::onGlobalPlanningFailed
virtual void onGlobalPlanningFailed(const GlobalPlanningFailedCallback &callback)=0
armarx::navigation::client::EventSubscriptionInterface::onSafetyStopTriggered
virtual void onSafetyStopTriggered(const OnSafetyStopTriggeredCallback &callback)=0
armarx::navigation::client::TrajectoryControllerUpdatedCallback
std::function< void(const traj_ctrl::local::TrajectoryControllerResult &)> TrajectoryControllerUpdatedCallback
Definition: EventSubscriptionInterface.h:16
armarx::navigation::core::SafetyStopTriggeredEvent
Event describing that for security reasons, the robot was stopped completely.
Definition: events.h:87
armarx::navigation::client::EventSubscriptionInterface::onMovementStarted
virtual void onMovementStarted(const OnMovementStartedCallback &callback)=0
armarx::navigation::client::OnUserAbortTriggeredCallback
std::function< void(const core::UserAbortTriggeredEvent &)> OnUserAbortTriggeredCallback
Definition: EventSubscriptionInterface.h:30
armarx::navigation::client::OnSafetyThrottlingTriggeredCallback
std::function< void(const core::SafetyThrottlingTriggeredEvent &)> OnSafetyThrottlingTriggeredCallback
Definition: EventSubscriptionInterface.h:27
armarx::navigation::core::UserAbortTriggeredEvent
Event describing that the user aborted the current execution.
Definition: events.h:96
armarx::navigation::client::LocalTrajectoryUpdatedCallback
std::function< void(const core::LocalTrajectoryUpdatedEvent &)> LocalTrajectoryUpdatedCallback
Definition: EventSubscriptionInterface.h:14
armarx::navigation::client::EventSubscriptionInterface::onSafetyThrottlingTriggered
virtual void onSafetyThrottlingTriggered(const OnSafetyThrottlingTriggeredCallback &callback)=0
armarx::navigation::client::EventSubscriptionInterface::onInternalError
virtual void onInternalError(const OnInternalErrorCallback &callback)=0
armarx::navigation::core::LocalTrajectoryUpdatedEvent
Event describing that the local trajectory was updated.
Definition: events.h:121
armarx::navigation::core::GlobalPlanningFailedEvent
Definition: events.h:34
armarx::navigation::core::GoalReachedEvent
Event describing that the targeted goal was successfully reached.
Definition: events.h:52
armarx::navigation::client::OnMovementStartedCallback
std::function< void(const core::MovementStartedEvent &)> OnMovementStartedCallback
Definition: EventSubscriptionInterface.h:22
armarx::navigation::core::GlobalTrajectoryUpdatedEvent
Event describing that the global trajectory was updated.
Definition: events.h:113
armarx::navigation::client::EventSubscriptionInterface
Definition: EventSubscriptionInterface.h:33
armarx::navigation::traj_ctrl::local::TrajectoryControllerResult
Definition: TrajectoryController.h:43
armarx::navigation::core::WaypointReachedEvent
Event describing that a user-defined waypoint was successfully reached.
Definition: events.h:60
armarx::navigation::client::OnInternalErrorCallback
std::function< void(const core::InternalErrorEvent &)> OnInternalErrorCallback
Definition: EventSubscriptionInterface.h:31
armarx::navigation::client::EventSubscriptionInterface::onGoalReached
virtual void onGoalReached(const OnGoalReachedCallback &callback)=0
armarx::navigation::client::OnSafetyStopTriggeredCallback
std::function< void(const core::SafetyStopTriggeredEvent &)> OnSafetyStopTriggeredCallback
Definition: EventSubscriptionInterface.h:29
armarx::navigation::core::LocalPlanningFailedEvent
Definition: events.h:39
armarx::navigation::client::OnGoalReachedCallback
std::function< void(const core::GoalReachedEvent &)> OnGoalReachedCallback
Definition: EventSubscriptionInterface.h:24
armarx::navigation::core::MovementStartedEvent
Definition: events.h:44