EventSubscriptionInterface.h
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4
7
9{
10
12 std::function<void(const core::GlobalTrajectoryUpdatedEvent&)>;
14 std::function<void(const core::LocalTrajectoryUpdatedEvent&)>;
16 std::function<void(const traj_ctrl::local::TrajectoryControllerResult&)>;
18 std::function<void(const core::GlobalPlanningFailedEvent&)>;
19
21
22 using OnMovementStartedCallback = std::function<void(const core::MovementStartedEvent&)>;
23
24 using OnGoalReachedCallback = std::function<void(const core::GoalReachedEvent&)>;
25 using OnWaypointReachedCallback = std::function<void(const core::WaypointReachedEvent&)>;
27 std::function<void(const core::SafetyThrottlingTriggeredEvent&)>;
29 std::function<void(const core::SafetyStopTriggeredEvent&)>;
31 using OnInternalErrorCallback = std::function<void(const core::InternalErrorEvent&)>;
32
34 {
35
36 public:
37 virtual void onMovementStarted(const OnMovementStartedCallback& callback) = 0;
38 virtual void onGoalReached(const OnGoalReachedCallback& callback) = 0;
39
40 virtual void onWaypointReached(const OnWaypointReachedCallback& callback) = 0;
41
42 virtual void
44
45 virtual void onSafetyStopTriggered(const OnSafetyStopTriggeredCallback& callback) = 0;
46
47 virtual void onUserAbortTriggered(const OnUserAbortTriggeredCallback& callback) = 0;
48
49 virtual void onInternalError(const OnInternalErrorCallback& callback) = 0;
50
52
53 virtual void onGlobalPlanningFailed(const GlobalPlanningFailedCallback& callback) = 0;
54 virtual void onLocalPlanningFailed(const LocalPlanningFailedCallback& callback) = 0;
55
58
59
60 // Non-API.
61 virtual ~EventSubscriptionInterface() = default;
62 };
63
64} // namespace armarx::navigation::client
virtual void onMovementStarted(const OnMovementStartedCallback &callback)=0
virtual void onGlobalPlanningFailed(const GlobalPlanningFailedCallback &callback)=0
virtual void onGoalReached(const OnGoalReachedCallback &callback)=0
virtual void onUserAbortTriggered(const OnUserAbortTriggeredCallback &callback)=0
virtual void onInternalError(const OnInternalErrorCallback &callback)=0
virtual void onGlobalPlanningUpdated(const GlobalTrajectoryUpdatedCallback &callback)=0
virtual void onWaypointReached(const OnWaypointReachedCallback &callback)=0
virtual void onLocalTrajectoryUpdated(const LocalTrajectoryUpdatedCallback &callback)=0
virtual void onLocalPlanningFailed(const LocalPlanningFailedCallback &callback)=0
virtual void onSafetyThrottlingTriggered(const OnSafetyThrottlingTriggeredCallback &callback)=0
virtual void onGlobalTrajectoryUpdated(const GlobalTrajectoryUpdatedCallback &callback)=0
virtual void onSafetyStopTriggered(const OnSafetyStopTriggeredCallback &callback)=0
This file is part of ArmarX.
std::function< void(const core::LocalPlanningFailedEvent &)> LocalPlanningFailedCallback
std::function< void(const core::GoalReachedEvent &)> OnGoalReachedCallback
std::function< void(const core::UserAbortTriggeredEvent &)> OnUserAbortTriggeredCallback
std::function< void(const core::SafetyStopTriggeredEvent &)> OnSafetyStopTriggeredCallback
std::function< void(const core::InternalErrorEvent &)> OnInternalErrorCallback
std::function< void(const core::GlobalTrajectoryUpdatedEvent &)> GlobalTrajectoryUpdatedCallback
std::function< void(const core::LocalTrajectoryUpdatedEvent &)> LocalTrajectoryUpdatedCallback
std::function< void(const core::MovementStartedEvent &)> OnMovementStartedCallback
std::function< void(const core::WaypointReachedEvent &)> OnWaypointReachedCallback
std::function< void(const core::GlobalPlanningFailedEvent &)> GlobalPlanningFailedCallback
std::function< void(const traj_ctrl::local::TrajectoryControllerResult &)> TrajectoryControllerUpdatedCallback
std::function< void(const core::SafetyThrottlingTriggeredEvent &)> OnSafetyThrottlingTriggeredCallback
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
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