events.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 #include <string>
5 
7 
9 
11 {
12 
13  namespace event_names
14  {
15  inline const std::string GlobalPlanningFailed = "GlobalPlanningFailedEvent";
16  inline const std::string LocalPlanningFailed = "LocalPlanningFailedEvent";
17  inline const std::string MovementStarted = "MovementStartedEvent";
18  inline const std::string GoalReached = "GoalReachedEvent";
19  inline const std::string WaypointReached = "WaypointReachedEvent";
20  inline const std::string SafetyThrottlingTriggered = "SafetyThrottlingTriggeredEvent";
21  inline const std::string SafetyStopTriggered = "SafetyStopTriggeredEvent";
22  inline const std::string UserAbortTriggered = "UserAbortTriggeredEvent";
23  inline const std::string InternalError = "InternalErrorEventEvent";
24  } // namespace event_names
25 
26  struct Event
27  {
29  };
30 
32  {
33  std::string message;
34  };
35 
37  {
38  std::string message;
39  };
40 
42  {
44  };
45 
46  /**
47  * @brief Event describing that the targeted goal was successfully reached.
48  */
49  struct GoalReachedEvent : public Event
50  {
52  };
53 
54  /**
55  * @brief Event describing that a user-defined waypoint was successfully reached.
56  */
57  struct WaypointReachedEvent : public Event
58  {
61  };
62 
63  /**
64  * @brief Event desciribing that a significant safety throttling factor was reached.
65  *
66  * Can be configured.
67  */
69  {
71 
72  /**
73  * @brief Ratio of throttled velocity divided by desired velocity.
74  *
75  * Value between 0 and 1 where 0 means full stop and 1 full desired velocity without any throttling.
76  */
77  float throttlingFactor = 1.0;
78  // TODO: Direction where safety-critical obstacle is (or range or whatever...).
79  };
80 
81  /**
82  * @brief Event describing that for security reasons, the robot was stopped completely.
83  */
85  {
87  // TODO: Direction where safety-critical obstacle is (or range or whatever...).
88  };
89 
90  /**
91  * @brief Event describing that the user aborted the current execution.
92  */
94  {
96  };
97 
98  /**
99  * @brief Event describing the occurance of an internal unhandled error.
100  */
101  struct InternalErrorEvent : public Event
102  {
104  std::string message;
105  };
106 
107 } // namespace armarx::navigation::core
armarx::navigation::core::event_names::MovementStarted
const std::string MovementStarted
Definition: events.h:17
armarx::navigation::core::MovementStartedEvent::startPose
core::Pose startPose
Definition: events.h:43
armarx::navigation::core::Pose
Eigen::Isometry3f Pose
Definition: basic_types.h:31
armarx::navigation::core::GoalReachedEvent::pose
core::Pose pose
Definition: events.h:51
armarx::navigation::core::WaypointReachedEvent::pose
core::Pose pose
Definition: events.h:59
DateTime.h
armarx::navigation::core::SafetyStopTriggeredEvent::pose
core::Pose pose
Definition: events.h:86
armarx::navigation::core::InternalErrorEvent::pose
core::Pose pose
Definition: events.h:103
armarx::navigation::core::InternalErrorEvent
Event describing the occurance of an internal unhandled error.
Definition: events.h:101
armarx::navigation::core::SafetyThrottlingTriggeredEvent
Event desciribing that a significant safety throttling factor was reached.
Definition: events.h:68
armarx::navigation::core::event_names::UserAbortTriggered
const std::string UserAbortTriggered
Definition: events.h:22
armarx::navigation::core
This file is part of ArmarX.
Definition: aron_conversions.cpp:13
armarx::navigation::core::LocalPlanningFailedEvent::message
std::string message
Definition: events.h:38
armarx::navigation::core::event_names::WaypointReached
const std::string WaypointReached
Definition: events.h:19
armarx::navigation::core::event_names::SafetyStopTriggered
const std::string SafetyStopTriggered
Definition: events.h:21
armarx::navigation::core::event_names::SafetyThrottlingTriggered
const std::string SafetyThrottlingTriggered
Definition: events.h:20
armarx::navigation::core::SafetyThrottlingTriggeredEvent::pose
core::Pose pose
Definition: events.h:70
armarx::navigation::core::event_names::GlobalPlanningFailed
const std::string GlobalPlanningFailed
Definition: events.h:15
armarx::navigation::core::SafetyStopTriggeredEvent
Event describing that for security reasons, the robot was stopped completely.
Definition: events.h:84
armarx::navigation::core::SafetyThrottlingTriggeredEvent::throttlingFactor
float throttlingFactor
Ratio of throttled velocity divided by desired velocity.
Definition: events.h:77
armarx::navigation::core::Event
Definition: events.h:26
armarx::navigation::core::UserAbortTriggeredEvent
Event describing that the user aborted the current execution.
Definition: events.h:93
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::core::event_names::GoalReached
const std::string GoalReached
Definition: events.h:18
armarx::navigation::core::event_names::InternalError
const std::string InternalError
Definition: events.h:23
armarx::core::time::DateTime
Represents a point in time.
Definition: DateTime.h:24
armarx::navigation::core::WaypointReachedEvent::waypointId
int waypointId
Definition: events.h:60
armarx::navigation::core::Event::timestamp
armarx::core::time::DateTime timestamp
Definition: events.h:28
armarx::navigation::core::GlobalPlanningFailedEvent::message
std::string message
Definition: events.h:33
armarx::navigation::core::InternalErrorEvent::message
std::string message
Definition: events.h:104
armarx::navigation::core::WaypointReachedEvent
Event describing that a user-defined waypoint was successfully reached.
Definition: events.h:57
types.h
armarx::navigation::core::LocalPlanningFailedEvent
Definition: events.h:36
armarx::navigation::core::event_names::LocalPlanningFailed
const std::string LocalPlanningFailed
Definition: events.h:16
armarx::navigation::core::UserAbortTriggeredEvent::pose
core::Pose pose
Definition: events.h:95
armarx::navigation::core::MovementStartedEvent
Definition: events.h:41