Esempio n. 1
0
void callback(const ros::TimerEvent&)
{
  if ((ros::Time::now() - last) > ros::Duration(0.5))
    robot.stop();
  robot.sendCommands();
}