EventPublishingInterface.h
Go to the documentation of this file.
1 #pragma once
2 
3 
5 
7 {
8 
9  /**
10  * @brief A publisher the server navigator will use to notify others about events.
11  */
13  {
14 
15  public:
16  // virtual void globalTrajectoryUpdated(const global_planning::GlobalPlannerResult& res) = 0;
17  // virtual void localTrajectoryUpdated(const local_planning::LocalPlannerResult& res) = 0;
18 
19  virtual void globalTrajectoryUpdated(const core::GlobalTrajectoryUpdatedEvent& event) = 0;
20 
21  virtual void localTrajectoryUpdated(const core::LocalTrajectoryUpdatedEvent& event) = 0;
22 
23 
24  virtual void globalPlanningFailed(const core::GlobalPlanningFailedEvent& event) = 0;
25  virtual void localPlanningFailed(const core::LocalPlanningFailedEvent& event) = 0;
26 
27 
28  virtual void movementStarted(const core::MovementStartedEvent& event) = 0;
29 
30 
31  /**
32  * @brief Will be called whenever the navigator reached the goal.
33  */
34  virtual void goalReached(const core::GoalReachedEvent& event) = 0;
35 
36  /**
37  * @brief Will be called whenever the navigator reached a user-defined waypoint.
38  */
39  virtual void waypointReached(const core::WaypointReachedEvent& event) = 0;
40 
41  /**
42  * @brief Will be called whenever safety throttling is triggered to a certain degree (configurable).
43  */
44  virtual void
46 
47  /**
48  * @brief Will be called whenever a safety stop is triggered.
49  */
50  virtual void safetyStopTriggered(const core::SafetyStopTriggeredEvent& event) = 0;
51 
52  /**
53  * @brief Will be called whenever the user aborts the current navigation.
54  */
55  virtual void userAbortTriggered(const core::UserAbortTriggeredEvent& event) = 0;
56 
57  /**
58  * @brief Will be called whenever an internal error occurs.
59  */
60  virtual void internalError(const core::InternalErrorEvent& event) = 0;
61 
62  // Non-API.
63  public:
64  virtual ~EventPublishingInterface() = default;
65  };
66 
67 } // 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::server::EventPublishingInterface::goalReached
virtual void goalReached(const core::GoalReachedEvent &event)=0
Will be called whenever the navigator reached the goal.
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::server::EventPublishingInterface::localTrajectoryUpdated
virtual void localTrajectoryUpdated(const core::LocalTrajectoryUpdatedEvent &event)=0
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).
events.h
armarx::navigation::server
This file is part of ArmarX.
Definition: EventPublishingInterface.h:6
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::globalTrajectoryUpdated
virtual void globalTrajectoryUpdated(const core::GlobalTrajectoryUpdatedEvent &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:87
armarx::navigation::core::UserAbortTriggeredEvent
Event describing that the user aborted the current execution.
Definition: events.h:96
armarx::navigation::core::LocalTrajectoryUpdatedEvent
Event describing that the local trajectory was updated.
Definition: events.h:121
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::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::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::GlobalTrajectoryUpdatedEvent
Event describing that the global trajectory was updated.
Definition: events.h:113
armarx::navigation::core::WaypointReachedEvent
Event describing that a user-defined waypoint was successfully reached.
Definition: events.h:60
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:12
armarx::navigation::core::LocalPlanningFailedEvent
Definition: events.h:39
armarx::navigation::core::MovementStartedEvent
Definition: events.h:44