mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 18:10:47 +02:00
Merge branch 'speed_rate_limit'
This commit is contained in:
@@ -129,6 +129,14 @@ public:
|
||||
}
|
||||
robot_.setServojTime(servoj_time);
|
||||
|
||||
double max_vel_change = 0.12; // equivalent of an acceleration of 15 rad/sec^2
|
||||
if (ros::param::get("~max_acceleration", max_vel_change)) {
|
||||
max_vel_change = max_vel_change/125;
|
||||
}
|
||||
sprintf(buf, "Max acceleration set to: %f [rad/sec²]", max_vel_change*125);
|
||||
print_debug(buf);
|
||||
hardware_interface_->setMaxVelChange(max_vel_change);
|
||||
|
||||
if (robot_.start()) {
|
||||
if (use_ros_control_) {
|
||||
ros_control_thread_ = new std::thread(
|
||||
|
||||
Reference in New Issue
Block a user