24 std_srvs::SetBool srv;
25 srv.request.data =
true;
27 if (srv.response.success) {
29 boost::make_shared<IdleState>());
32 ROS_ERROR(
"Failed to call service Bootup Finished");
41 message =
"Still booting";
46 message =
"Still booting";
50 std::string &message) {
52 message =
"Still booting";
58 boost::make_shared<EmergencyStopState>());
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
void onExplorationStop(bool &success, std::string &message)
Called when exploration was stopped manually.
void onInterrupt(int interrupt)
Called when an operation mode interrupt was received.
void onActive()
Process method (step-wise, never block this method)
bool call(MReq &req, MRes &res)
void transitionToVolatileState(boost::shared_ptr< rsm::BaseState > next_state)
bool _interrupt_occured
Shows if an interupt occured.
void onExit()
Called once when left.
void onWaypointFollowingStartStop(bool &success, std::string &message)
void onSetup()
Called once when registered at StateInterface.
std::string _name
Name of the state.
ros::ServiceClient _bootupClient
StateInterface * _stateinterface
Pointer to State Interface handling all state transitions.
#define EMERGENCY_STOP_INTERRUPT
void onEntry()
Called once when activated.
void onExplorationStart(bool &success, std::string &message)