Auto commit at 2025-06-06 15:08:57

This commit is contained in:
cxh 2025-06-06 15:08:57 +08:00
parent 2d6e4a1c63
commit 02353b0c3a

View File

@ -177,29 +177,29 @@ private:
// 发布控制消息
pub_->publish(msg);
RCLCPP_INFO_STREAM(this->get_logger(), "Publishing ControlMsg:"
<< "\n mcu_enabled: " << msg.mcu_enabled
<< "\n brake: " << static_cast<int>(msg.brake)
<< "\n gear: " << static_cast<int>(msg.gear)
<< "\n rpm: " << msg.rpm
<< "\n brake_time_ms: " << msg.brake_time_ms
<< "\n angle: " << msg.angle
<< "\n angle_speed: " << msg.angle_speed
<< "\n main_brush_lift: " << msg.main_brush_lift
<< "\n edge_brush_lift: " << msg.edge_brush_lift
<< "\n vacuum: " << msg.vacuum
<< "\n spray: " << msg.spray
<< "\n mud_flap: " << msg.mud_flap
<< "\n dust_shake: " << msg.dust_shake
<< "\n left_light: " << msg.left_light
<< "\n right_light: " << msg.right_light
<< "\n night_light: " << msg.night_light
<< "\n brake_light: " << msg.brake_light
<< "\n headlight: " << msg.headlight
<< "\n main_brush_spin: " << msg.main_brush_spin
<< "\n edge_brush_spin: " << msg.edge_brush_spin
<< "\n main_brush_pwm: " << static_cast<int>(msg.main_brush_pwm)
<< "\n edge_brush_pwm: " << static_cast<int>(msg.edge_brush_pwm));
// RCLCPP_INFO_STREAM(this->get_logger(), "Publishing ControlMsg:"
// << "\n mcu_enabled: " << msg.mcu_enabled
// << "\n brake: " << static_cast<int>(msg.brake)
// << "\n gear: " << static_cast<int>(msg.gear)
// << "\n rpm: " << msg.rpm
// << "\n brake_time_ms: " << msg.brake_time_ms
// << "\n angle: " << msg.angle
// << "\n angle_speed: " << msg.angle_speed
// << "\n main_brush_lift: " << msg.main_brush_lift
// << "\n edge_brush_lift: " << msg.edge_brush_lift
// << "\n vacuum: " << msg.vacuum
// << "\n spray: " << msg.spray
// << "\n mud_flap: " << msg.mud_flap
// << "\n dust_shake: " << msg.dust_shake
// << "\n left_light: " << msg.left_light
// << "\n right_light: " << msg.right_light
// << "\n night_light: " << msg.night_light
// << "\n brake_light: " << msg.brake_light
// << "\n headlight: " << msg.headlight
// << "\n main_brush_spin: " << msg.main_brush_spin
// << "\n edge_brush_spin: " << msg.edge_brush_spin
// << "\n main_brush_pwm: " << static_cast<int>(msg.main_brush_pwm)
// << "\n edge_brush_pwm: " << static_cast<int>(msg.edge_brush_pwm));
}
else
{