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

Added a service to hand back control to the robot

This way, Ros can  be a part of a larger program.
This commit is contained in:
Felix Mauch
2019-07-16 09:31:45 +02:00
parent 600dac1dd3
commit bc683903b7
5 changed files with 52 additions and 7 deletions

View File

@@ -153,6 +153,16 @@ bool UrDriver::writeKeepalive()
return false;
}
bool UrDriver::stopControl()
{
if (reverse_interface_active_)
{
vector6d_t* fake = nullptr;
return reverse_interface_->write(fake, 0);
}
return false;
}
void UrDriver::startWatchdog()
{
handle_program_state_(false);