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

Made sure to stop any executing trajectory when the driver is halted

This commit is contained in:
Thomas Timm Andersen
2015-10-20 11:01:54 +02:00
parent 189ecc71ed
commit 8a4cdb51da

View File

@@ -291,6 +291,9 @@ bool UrDriver::start() {
} }
void UrDriver::halt() { void UrDriver::halt() {
if (executing_traj_) {
UrDriver::stopTraj();
}
sec_interface_->halt(); sec_interface_->halt();
rt_interface_->halt(); rt_interface_->halt();
close(incoming_sockfd_); close(incoming_sockfd_);