1
0
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:
Thomas Timm Andersen
2015-10-08 15:38:50 +02:00
8 changed files with 108 additions and 30 deletions

View File

@@ -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(