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

Stop sending data to servoj when stopTraj is called

This commit is contained in:
Thomas Timm Andersen
2015-10-08 15:48:05 +02:00
parent 1d54bcca1d
commit 52b68cbd9c

View File

@@ -152,7 +152,6 @@ void UrDriver::doTraj(std::vector<double> inp_timestamps,
t = std::chrono::high_resolution_clock::now();
}
//Signal robot to stop driverProg()
executing_traj_ = false;
UrDriver::closeServo(positions);
}
@@ -281,6 +280,7 @@ void UrDriver::closeServo(std::vector<double> positions) {
UrDriver::servoj(rt_interface_->robot_state_->getQActual(), 0);
else
UrDriver::servoj(positions, 0);
executing_traj_ = false;
close(new_sockfd_);
}