add watchdog
This commit is contained in:
parent
dba25d430b
commit
1e729cc9f3
@ -685,6 +685,10 @@ void RosAriaNode::publish()
|
||||
if(watchdog.toSec()+WATCHDOG<ros::Time::now().toSec())
|
||||
{
|
||||
robot->comInt(ArCommands::ESTOP,0);
|
||||
robot->setVel(0);
|
||||
if(robot->hasLatVel())
|
||||
robot->setLatVel(0);
|
||||
robot->setRotVel(0);
|
||||
// ROS_INFO("WATCHDOG %d", WATCHDOG);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user