Esempio n. 1
0
void quit(int sig)
{
  robot.stop();
  tcsetattr(kfd, TCSANOW, &cooked);
  ros::shutdown();
  exit(0);
}
Esempio n. 2
0
void callback(const ros::TimerEvent&)
{
  if ((ros::Time::now() - last) > ros::Duration(0.5))
    robot.stop();
  robot.sendCommands();
}