41 #include <rm_msgs/ChassisCmd.h>
42 #include <rm_msgs/GameStatus.h>
43 #include <rm_msgs/GameRobotStatus.h>
44 #include <rm_msgs/PowerHeatData.h>
45 #include <rm_msgs/PowerManagementSampleAndStatusData.h>
95 ROS_INFO(
"update safety power: %d", safety_power);
118 void setCapacityData(
const rm_msgs::PowerManagementSampleAndStatusData data)
122 cap_state_ = data.state_machine_running_state;
151 void setLimitPower(rm_msgs::ChassisCmd& chassis_cmd,
bool is_gyro)
153 if (
robot_id_ == rm_msgs::GameRobotStatus::BLUE_ENGINEER ||
robot_id_ == rm_msgs::GameRobotStatus::RED_ENGINEER)
154 chassis_cmd.power_limit = 400;
171 burst(chassis_cmd, is_gyro);
191 void charge(rm_msgs::ChassisCmd& chassis_cmd)
195 void normal(rm_msgs::ChassisCmd& chassis_cmd)
204 void zero(rm_msgs::ChassisCmd& chassis_cmd)
206 chassis_cmd.power_limit = 0.0;
208 void burst(rm_msgs::ChassisCmd& chassis_cmd,
bool is_gyro)