EventPublishingInterface.h
Go to the documentation of this file.
1 #pragma once
2 
3 
8 
9 
11 {
12 
13  /**
14  * @brief A publisher the server navigator will use to notify others about events.
15  */
17  {
18 
19  public:
20  // TODO(fabian.reister): fwd
23  // virtual void
24  // trajectoryControllerUpdated(const traj_ctrl::local::TrajectoryControllerResult& res) = 0;
25 
26  virtual void globalPlanningFailed(const core::GlobalPlanningFailedEvent& event) = 0;
27  virtual void localPlanningFailed(const core::LocalPlanningFailedEvent& event) = 0;
28 
29 
30  virtual void movementStarted(const core::MovementStartedEvent& event) = 0;
31 
32 
33  /**
34  * @brief Will be called whenever the navigator reached the goal.
35  */
36  virtual void goalReached(const core::GoalReachedEvent& event) = 0;
37 
38  /**
39  * @brief Will be called whenever the navigator reached a user-defined waypoint.
40  */
41  virtual void waypointReached(const core::WaypointReachedEvent& event) = 0;
42 
43  /**
44  * @brief Will be called whenever safety throttling is triggered to a certain degree (configurable).
45  */
46  virtual void
48 
49  /**
50  * @brief Will be called whenever a safety stop is triggered.
51  */
52  virtual void safetyStopTriggered(const core::SafetyStopTriggeredEvent& event) = 0;
53 
54  /**
55  * @brief Will be called whenever the user aborts the current navigation.
56  */
57  virtual void userAbortTriggered(const core::UserAbortTriggeredEvent& event) = 0;
58 
59  /**
60  * @brief Will be called whenever an internal error occurs.
61  */
62  virtual void internalError(const core::InternalErrorEvent& event) = 0;
63 
64  // Non-API.
65  public:
66  virtual ~EventPublishingInterface() = default;
67  };
68 
69 } // namespace armarx::navigation::server
armarx::navigation::server::EventPublishingInterface::safetyStopTriggered
virtual void safetyStopTriggered(const core::SafetyStopTriggeredEvent &event)=0
Will be called whenever a safety stop is triggered.
armarx::navigation::local_planning::LocalPlannerResult
Definition: LocalPlanner.h:40
armarx::navigation::server::EventPublishingInterface::goalReached
virtual void goalReached(const core::GoalReachedEvent &event)=0
Will be called whenever the navigator reached the goal.
TrajectoryController.h
armarx::navigation::core::InternalErrorEvent
Event describing the occurance of an internal unhandled error.
Definition: events.h:101
LocalPlanner.h
armarx::navigation::core::SafetyThrottlingTriggeredEvent
Event desciribing that a significant safety throttling factor was reached.
Definition: events.h:68
armarx::navigation::server::EventPublishingInterface::safetyThrottlingTriggered
virtual void safetyThrottlingTriggered(const core::SafetyThrottlingTriggeredEvent &event)=0
Will be called whenever safety throttling is triggered to a certain degree (configurable).
armarx::navigation::server::EventPublishingInterface::localTrajectoryUpdated
virtual void localTrajectoryUpdated(const local_planning::LocalPlannerResult &res)=0
events.h
armarx::navigation::server
This file is part of ArmarX.
Definition: EventPublishingInterface.h:10
armarx::navigation::server::EventPublishingInterface::userAbortTriggered
virtual void userAbortTriggered(const core::UserAbortTriggeredEvent &event)=0
Will be called whenever the user aborts the current navigation.
armarx::navigation::server::EventPublishingInterface::localPlanningFailed
virtual void localPlanningFailed(const core::LocalPlanningFailedEvent &event)=0
armarx::navigation::server::EventPublishingInterface::globalPlanningFailed
virtual void globalPlanningFailed(const core::GlobalPlanningFailedEvent &event)=0
armarx::navigation::core::SafetyStopTriggeredEvent
Event describing that for security reasons, the robot was stopped completely.
Definition: events.h:84
armarx::navigation::core::UserAbortTriggeredEvent
Event describing that the user aborted the current execution.
Definition: events.h:93
GlobalPlanner.h
armarx::navigation::server::EventPublishingInterface::globalTrajectoryUpdated
virtual void globalTrajectoryUpdated(const global_planning::GlobalPlannerResult &res)=0
armarx::navigation::server::EventPublishingInterface::waypointReached
virtual void waypointReached(const core::WaypointReachedEvent &event)=0
Will be called whenever the navigator reached a user-defined waypoint.
armarx::navigation::global_planning::GlobalPlannerResult
Definition: GlobalPlanner.h:38
armarx::navigation::core::GlobalPlanningFailedEvent
Definition: events.h:31
armarx::navigation::core::GoalReachedEvent
Event describing that the targeted goal was successfully reached.
Definition: events.h:49
armarx::navigation::server::EventPublishingInterface::movementStarted
virtual void movementStarted(const core::MovementStartedEvent &event)=0
armarx::navigation::server::EventPublishingInterface::internalError
virtual void internalError(const core::InternalErrorEvent &event)=0
Will be called whenever an internal error occurs.
armarx::navigation::core::WaypointReachedEvent
Event describing that a user-defined waypoint was successfully reached.
Definition: events.h:57
armarx::navigation::server::EventPublishingInterface::~EventPublishingInterface
virtual ~EventPublishingInterface()=default
armarx::navigation::server::EventPublishingInterface
A publisher the server navigator will use to notify others about events.
Definition: EventPublishingInterface.h:16
armarx::navigation::core::LocalPlanningFailedEvent
Definition: events.h:36
armarx::navigation::core::MovementStartedEvent
Definition: events.h:41