EmergencyStopState.cpp
Go to the documentation of this file.
2 
3 namespace rsm {
5 }
6 
8 }
9 
11  _name = "Emergency Stop";
12 }
13 
15 }
16 
18 }
19 
21 }
22 
24  std::string &message) {
25  success = false;
26  message = "Emergency Stop";
27 }
28 
30  std::string &message) {
31  success = false;
32  message = "Exploration not running";
33 }
34 
36  std::string &message) {
37  success = false;
38  message = "Emergency Stop";
39 }
40 
42  std::string &message) {
43  success = false;
44  message = "Waypoint following not running";
45 }
46 
47 void EmergencyStopState::onInterrupt(int interrupt) {
48  if (interrupt == INTERRUPT_END) {
50  boost::make_shared<IdleState>());
51  _interrupt_occured = true;
52  }
53 }
54 
55 } /* namespace rsm */
void onExplorationStart(bool &success, std::string &message)
void transitionToVolatileState(boost::shared_ptr< rsm::BaseState > next_state)
bool _interrupt_occured
Shows if an interupt occured.
Definition: BaseState.h:129
Definition: BaseState.h:8
std::string _name
Name of the state.
Definition: BaseState.h:133
StateInterface * _stateinterface
Pointer to State Interface handling all state transitions.
Definition: BaseState.h:125
void onInterrupt(int interrupt)
Called when an operation mode interrupt was received.
void onExplorationStop(bool &success, std::string &message)
void onWaypointFollowingStart(bool &success, std::string &message)
#define INTERRUPT_END
Definition: BaseState.h:10
void onWaypointFollowingStop(bool &success, std::string &message)


rsm_core
Author(s): Marco Steinbrink
autogenerated on Tue Mar 16 2021 02:44:31