mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +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();
|
t = std::chrono::high_resolution_clock::now();
|
||||||
}
|
}
|
||||||
//Signal robot to stop driverProg()
|
//Signal robot to stop driverProg()
|
||||||
executing_traj_ = false;
|
|
||||||
UrDriver::closeServo(positions);
|
UrDriver::closeServo(positions);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -281,6 +280,7 @@ void UrDriver::closeServo(std::vector<double> positions) {
|
|||||||
UrDriver::servoj(rt_interface_->robot_state_->getQActual(), 0);
|
UrDriver::servoj(rt_interface_->robot_state_->getQActual(), 0);
|
||||||
else
|
else
|
||||||
UrDriver::servoj(positions, 0);
|
UrDriver::servoj(positions, 0);
|
||||||
|
executing_traj_ = false;
|
||||||
close(new_sockfd_);
|
close(new_sockfd_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user