1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 18:10:47 +02:00

send keepalive signal when no (commanding) controller is active

Otherwise the hardware disconnects as soon as we stop a controller by hand.
This commit is contained in:
Felix Mauch
2019-06-26 08:48:24 +02:00
parent 8c9f79bc3b
commit 14b9dd4f1b
3 changed files with 33 additions and 6 deletions

View File

@@ -292,6 +292,10 @@ void HardwareInterface ::write(const ros::Time& time, const ros::Duration& perio
{
ur_driver_->writeJointCommand(joint_position_command_);
}
else
{
ur_driver_->writeKeepalive();
}
}
bool HardwareInterface ::prepareSwitch(const std::list<hardware_interface::ControllerInfo>& start_list,