8 stateInterface->awake();
11 int main(
int argc,
char **argv) {
15 private_nh.
param(
"update_frequency", loop_rate, 20.0);
19 stateInterface->awake();
20 stateInterface->transitionToVolatileState(
21 boost::make_shared<rsm::BootState>());
22 stateInterface->awake();
25 stateInterface.reset();
void loopCallback(const ros::TimerEvent &)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
Timer createTimer(Rate r, Handler h, Obj o, bool oneshot=false, bool autostart=true) const
boost::shared_ptr< rsm::StateInterface > stateInterface
Handles the RSM transitions between the different state classes and holds a reference to the current ...
int main(int argc, char **argv)