Skip to content

Commit

Permalink
Fix wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Jul 26, 2024
1 parent 6ceb5c0 commit 209373b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/manual_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ ManualBase::ManualBase(ros::NodeHandle& nh, ros::NodeHandle& nh_referee)
gimbal_des_error_sub_ = nh.subscribe<rm_msgs::GimbalDesError>("/controllers/gimbal_controller/error", 10,
&ManualBase::gimbalDesErrorCallback, this);
odom_sub_ = nh.subscribe<nav_msgs::Odometry>("/odom", 10, &ManualBase::odomCallback, this);
shoot_beforehand_cmd_sub_ =
nh.subscribe<rm_msgs::ShootBeforehandCmd>("/controllers/gimbal_controller/bullet_solver/shoot_beforehand_cmd", 10,
&ManualBase::shootBeforehandCmdCallback, this);
suggest_fire_sub_ =
nh.subscribe<std_msgs::Bool>("/forecast/suggest_fire", 10, &ManualBase::suggestFireCallback, this);

game_robot_status_sub_ = nh_referee.subscribe<rm_msgs::GameRobotStatus>("game_robot_status", 10,
&ManualBase::gameRobotStatusCallback, this);
Expand All @@ -28,9 +33,6 @@ ManualBase::ManualBase(ros::NodeHandle& nh, ros::NodeHandle& nh_referee)
"power_management/sample_and_status", 10, &ManualBase::capacityDataCallback, this);
power_heat_data_sub_ =
nh_referee.subscribe<rm_msgs::PowerHeatData>("power_heat_data", 10, &ManualBase::powerHeatDataCallback, this);
suggest_fire_sub_ =
nh.subscribe<std_msgs::Bool>("/forecast/suggest_fire", 10, &ManualBase::suggestFireCallback, this);

shoot_data_sub_ = nh_referee.subscribe<rm_msgs::ShootData>("shoot_data", 10, &ManualBase::shootDataCallback, this);

// pub
Expand Down

0 comments on commit 209373b

Please sign in to comment.