diff --git a/rm_chassis_controllers/src/chassis_base.cpp b/rm_chassis_controllers/src/chassis_base.cpp index bba37a5f..12cb53c9 100644 --- a/rm_chassis_controllers/src/chassis_base.cpp +++ b/rm_chassis_controllers/src/chassis_base.cpp @@ -198,7 +198,7 @@ void ChassisBase::follow(const ros::Time& time, const ros::Duration& perio roll, pitch, yaw); double follow_error = angles::shortest_angular_distance(yaw, 0); pid_follow_.computeCommand(-follow_error, period); - vel_cmd_.z = pid_follow_.getCurrentCmd(); + vel_cmd_.z = pid_follow_.getCurrentCmd() + cmd_rt_buffer_.readFromRT()->cmd_chassis_.follow_vel_des; } catch (tf2::TransformException& ex) {