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:
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user