MemoryPublisher.cpp
Go to the documentation of this file.
2 
3 
5 {
6 
7  void
9  {
10  eventsWriter->store(event, clientId);
11  }
12 
13 
14  void
16  {
17  eventsWriter->store(event, clientId);
18  }
19 
20 
21  void
23  {
24  eventsWriter->store(event, clientId);
25  }
26 
27 
28  void
30  {
31  eventsWriter->store(event, clientId);
32  }
33 
34 
35  void
37  {
38  eventsWriter->store(event, clientId);
39  }
40 
41 
42  void
44  {
45  eventsWriter->store(event, clientId);
46  }
47 
48  void
50  {
51  resultWriter->store(res, clientId);
52  }
53 
54  void
56  {
57  resultWriter->store(res, clientId);
58  }
59 
60  // void
61  // MemoryPublisher::trajectoryControllerUpdated(
62  // const traj_ctrl::local::TrajectoryControllerResult& res)
63  // {
64  // resultWriter->store(res, clientId);
65  // }
66 
67  // TODO(fabian.reister): event with message or reason (enum)
68  void
70  {
71  eventsWriter->store(event, clientId);
72  }
73 
75  {
76  eventsWriter->store(event, clientId);
77  }
78 
79  void
81  {
82  eventsWriter->store(event, clientId);
83  }
84 
88  const std::string& clientId) :
89  resultWriter(resultWriter), eventsWriter(eventsWriter), clientId(clientId)
90  {
91  }
92 
93 } // namespace armarx::navigation::server
armarx::navigation::server::MemoryPublisher::localPlanningFailed
void localPlanningFailed(const core::LocalPlanningFailedEvent &event) override
Definition: MemoryPublisher.cpp:74
armarx::navigation::server::MemoryPublisher::MemoryPublisher
MemoryPublisher(armarx::navigation::memory::client::stack_result::Writer *resultWriter, armarx::navigation::memory::client::events::Writer *eventsWriter, const std::string &clientId)
Definition: MemoryPublisher.cpp:85
armarx::navigation::local_planning::LocalPlannerResult
Definition: LocalPlanner.h:40
armarx::navigation::core::InternalErrorEvent
Event describing the occurance of an internal unhandled error.
Definition: events.h:101
armarx::navigation::server::MemoryPublisher::movementStarted
void movementStarted(const core::MovementStartedEvent &event) override
Definition: MemoryPublisher.cpp:80
armarx::navigation::server::MemoryPublisher::safetyStopTriggered
void safetyStopTriggered(const core::SafetyStopTriggeredEvent &event) override
Will be called whenever a safety stop is triggered.
Definition: MemoryPublisher.cpp:29
armarx::navigation::core::SafetyThrottlingTriggeredEvent
Event desciribing that a significant safety throttling factor was reached.
Definition: events.h:68
armarx::navigation::server::MemoryPublisher::waypointReached
void waypointReached(const core::WaypointReachedEvent &event) override
Will be called whenever the navigator reached a user-defined waypoint.
Definition: MemoryPublisher.cpp:15
armarx::navigation::server::MemoryPublisher::internalError
void internalError(const core::InternalErrorEvent &event) override
Will be called whenever an internal error occurs.
Definition: MemoryPublisher.cpp:43
armarx::navigation::memory::client::events::Writer::store
bool store(const core::GoalReachedEvent &event, const std::string &clientID)
Definition: Writer.cpp:65
armarx::navigation::server::MemoryPublisher::localTrajectoryUpdated
void localTrajectoryUpdated(const local_planning::LocalPlannerResult &res) override
Definition: MemoryPublisher.cpp:55
armarx::navigation::server
This file is part of ArmarX.
Definition: EventPublishingInterface.h:10
armarx::navigation::server::MemoryPublisher::globalTrajectoryUpdated
void globalTrajectoryUpdated(const global_planning::GlobalPlannerResult &res) override
Definition: MemoryPublisher.cpp:49
armarx::navigation::server::MemoryPublisher::userAbortTriggered
void userAbortTriggered(const core::UserAbortTriggeredEvent &event) override
Will be called whenever the user aborts the current navigation.
Definition: MemoryPublisher.cpp:36
armarx::navigation::server::MemoryPublisher::safetyThrottlingTriggered
void safetyThrottlingTriggered(const core::SafetyThrottlingTriggeredEvent &event) override
Will be called whenever safety throttling is triggered to a certain degree (configurable).
Definition: MemoryPublisher.cpp:22
armarx::navigation::server::MemoryPublisher::goalReached
void goalReached(const core::GoalReachedEvent &event) override
Will be called whenever the navigator reached the goal.
Definition: MemoryPublisher.cpp:8
armarx::navigation::core::SafetyStopTriggeredEvent
Event describing that for security reasons, the robot was stopped completely.
Definition: events.h:84
armarx::navigation::core::UserAbortTriggeredEvent
Event describing that the user aborted the current execution.
Definition: events.h:93
armarx::navigation::global_planning::GlobalPlannerResult
Definition: GlobalPlanner.h:38
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
MemoryPublisher.h
armarx::navigation::memory::client::stack_result::Writer
Definition: Writer.h:35
armarx::navigation::memory::client::stack_result::Writer::store
bool store(const server::StackResult &result, const std::string &clientID)
Definition: Writer.cpp:16
armarx::navigation::server::MemoryPublisher::globalPlanningFailed
void globalPlanningFailed(const core::GlobalPlanningFailedEvent &event) override
Definition: MemoryPublisher.cpp:69
armarx::navigation::core::WaypointReachedEvent
Event describing that a user-defined waypoint was successfully reached.
Definition: events.h:57
armarx::navigation::memory::client::events::Writer
Definition: Writer.h:35
armarx::navigation::core::LocalPlanningFailedEvent
Definition: events.h:36
armarx::navigation::core::MovementStartedEvent
Definition: events.h:41