53 rostate_machine::Event ret;
55 ret.trigger_event_name =
"motor_disconnected";
65 rostate_machine::Event ret;
67 ret.trigger_event_name =
"recovery";
void registerCallback(std::function< boost::optional< rostate_machine::Event >(void)> func, std::string tag)
example implementation using EventClient
boost::optional< rostate_machine::Event > stopMotor()
example Callback function, callback function must be boost::optional<rostate_machine::Event>(void) ty...
boost::optional< rostate_machine::Event > checkRecovery()
ros::Duration getCurrentStateDuration()
boost::optional< rostate_machine::Event > checkMotor()
example Callback function, callback function must be boost::optional<rostate_machine::Event>(void) ty...
ExampleEventClient(ros::NodeHandle nh, ros::NodeHandle pnh)
Construct a new Example Event Client:: Example Event Client object.
rostate_machine::EventClient client_