Skip to content

Commit

Permalink
Merge pull request #112 from liyixin135/fix_wrong
Browse files Browse the repository at this point in the history
Fix wrong
  • Loading branch information
d0h0s authored Jul 26, 2024
2 parents 6ceb5c0 + 209373b commit 39e297c
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 39e297c

Please sign in to comment.