diff --git a/rm_common/include/rm_common/decision/command_sender.h b/rm_common/include/rm_common/decision/command_sender.h index 2959d23d..699e0005 100644 --- a/rm_common/include/rm_common/decision/command_sender.h +++ b/rm_common/include/rm_common/decision/command_sender.h @@ -263,6 +263,10 @@ class ChassisCommandSender : public TimeStampCommandSenderBasesetRefereeStatus(status); } + void setFollowVelDes(double follow_vel_des) + { + msg_.follow_vel_des = follow_vel_des; + } void sendChassisCommand(const ros::Time& time, bool is_gyro) { power_limit_->setLimitPower(msg_, is_gyro); diff --git a/rm_msgs/msg/ChassisCmd.msg b/rm_msgs/msg/ChassisCmd.msg index 1ea1b666..8547573c 100644 --- a/rm_msgs/msg/ChassisCmd.msg +++ b/rm_msgs/msg/ChassisCmd.msg @@ -7,6 +7,7 @@ uint8 FALLEN = 4 uint8 mode geometry_msgs/Accel accel float64 power_limit +float64 follow_vel_des string follow_source_frame string command_source_frame time stamp