events.h
Go to the documentation of this file.
1#pragma once
2
3
4#include <string>
5
7
10
12{
13
14 namespace event_names
15 {
16 inline const std::string GlobalTrajectoryUpdated = "GlobalTrajectoryUpdatedEvent";
17 inline const std::string LocalTrajectoryUpdated = "LocalTrajectoryUpdatedEvent";
18 inline const std::string GlobalPlanningFailed = "GlobalPlanningFailedEvent";
19 inline const std::string LocalPlanningFailed = "LocalPlanningFailedEvent";
20 inline const std::string MovementStarted = "MovementStartedEvent";
21 inline const std::string GoalReached = "GoalReachedEvent";
22 inline const std::string WaypointReached = "WaypointReachedEvent";
23 inline const std::string SafetyThrottlingTriggered = "SafetyThrottlingTriggeredEvent";
24 inline const std::string SafetyStopTriggered = "SafetyStopTriggeredEvent";
25 inline const std::string UserAbortTriggered = "UserAbortTriggeredEvent";
26 inline const std::string InternalError = "InternalErrorEventEvent";
27 } // namespace event_names
28
33
35 {
36 std::string message;
37 };
38
40 {
41 std::string message;
42 };
43
48
49 /**
50 * @brief Event describing that the targeted goal was successfully reached.
51 */
52 struct GoalReachedEvent : public Event
53 {
55 };
56
57 /**
58 * @brief Event describing that a user-defined waypoint was successfully reached.
59 */
61 {
64 };
65
66 /**
67 * @brief Event desciribing that a significant safety throttling factor was reached.
68 *
69 * Can be configured.
70 */
72 {
74
75 /**
76 * @brief Ratio of throttled velocity divided by desired velocity.
77 *
78 * Value between 0 and 1 where 0 means full stop and 1 full desired velocity without any throttling.
79 */
80 float throttlingFactor = 1.0;
81 // TODO: Direction where safety-critical obstacle is (or range or whatever...).
82 };
83
84 /**
85 * @brief Event describing that for security reasons, the robot was stopped completely.
86 */
88 {
90 // TODO: Direction where safety-critical obstacle is (or range or whatever...).
91 };
92
93 /**
94 * @brief Event describing that the user aborted the current execution.
95 */
97 {
99 };
100
101 /**
102 * @brief Event describing the occurance of an internal unhandled error.
103 */
104 struct InternalErrorEvent : public Event
105 {
107 std::string message;
108 };
109
110 /**
111 * @brief Event describing that the global trajectory was updated.
112 */
117
118 /**
119 * @brief Event describing that the local trajectory was updated.
120 */
125
126} // namespace armarx::navigation::core
Represents a point in time.
Definition DateTime.h:25
const std::string SafetyStopTriggered
Definition events.h:24
const std::string SafetyThrottlingTriggered
Definition events.h:23
const std::string UserAbortTriggered
Definition events.h:25
const std::string LocalTrajectoryUpdated
Definition events.h:17
const std::string MovementStarted
Definition events.h:20
const std::string WaypointReached
Definition events.h:22
const std::string GlobalTrajectoryUpdated
Definition events.h:16
const std::string GlobalPlanningFailed
Definition events.h:18
const std::string InternalError
Definition events.h:26
const std::string LocalPlanningFailed
Definition events.h:19
This file is part of ArmarX.
Eigen::Isometry3f Pose
Definition basic_types.h:31
armarx::core::time::DateTime timestamp
Definition events.h:31
Event describing that the global trajectory was updated.
Definition events.h:114
Event describing that the targeted goal was successfully reached.
Definition events.h:53
Event describing the occurance of an internal unhandled error.
Definition events.h:105
Event describing that the local trajectory was updated.
Definition events.h:122
Event describing that for security reasons, the robot was stopped completely.
Definition events.h:88
Event desciribing that a significant safety throttling factor was reached.
Definition events.h:72
float throttlingFactor
Ratio of throttled velocity divided by desired velocity.
Definition events.h:80
Event describing that the user aborted the current execution.
Definition events.h:97
Event describing that a user-defined waypoint was successfully reached.
Definition events.h:61