Skip to content
Snippets Groups Projects
Commit 605e8717 authored by Christian Dreher's avatar Christian Dreher
Browse files

chore: Event documentation.

parent 9fdb5a5b
No related branches found
No related tags found
No related merge requests found
...@@ -11,35 +11,61 @@ ...@@ -11,35 +11,61 @@
namespace armarx::nav::core namespace armarx::nav::core
{ {
/**
* @brief Event describing that the targeted goal was successfully reached.
*/
struct GoalReachedEvent struct GoalReachedEvent
{ {
core::Pose pose; core::Pose pose;
}; };
/**
* @brief Event describing that a user-defined waypoint was successfully reached.
*/
struct WaypointReachedEvent struct WaypointReachedEvent
{ {
core::Pose pose; core::Pose pose;
int waypointId; int waypointId;
}; };
/**
* @brief Event desciribing that a significant safety throttling factor was reached.
*
* Can be configured.
*/
struct SafetyThrottlingTriggeredEvent struct SafetyThrottlingTriggeredEvent
{ {
core::Pose pose; core::Pose pose;
/**
* @brief Ratio of throttled velocity divided by desired velocity.
*
* Value between 0 and 1 where 0 means full stop and 1 full desired velocity without any throttling.
*/
float throttlingFactor = 1.0; float throttlingFactor = 1.0;
// TODO: Direction where safety-critical obstacle is (or range or whatever...). // TODO: Direction where safety-critical obstacle is (or range or whatever...).
}; };
/**
* @brief Event describing that for security reasons, the robot was stopped completely.
*/
struct SafetyStopTriggeredEvent struct SafetyStopTriggeredEvent
{ {
core::Pose pose; core::Pose pose;
// TODO: Direction where safety-critical obstacle is (or range or whatever...). // TODO: Direction where safety-critical obstacle is (or range or whatever...).
}; };
/**
* @brief Event describing that the user aborted the current execution.
*/
struct UserAbortTriggeredEvent struct UserAbortTriggeredEvent
{ {
core::Pose pose; core::Pose pose;
}; };
/**
* @brief Event describing the occurance of an internal unhandled error.
*/
struct InternalErrorEvent struct InternalErrorEvent
{ {
core::Pose pose; core::Pose pose;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment