Skip to content

Commit 7d7328e

Browse files
Ahmed Ebrahimahmeddesokyebrahim
Ahmed Ebrahim
authored andcommitted
fix(log-messages): lower a debug print msg from info to debug
Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>
1 parent 653155f commit 7d7328e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

control/pid_longitudinal_controller/src/pid_longitudinal_controller.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ void PidLongitudinalController::updateControlState(const ControlData & control_d
555555
return;
556556
};
557557

558-
const auto info_once = [this](const auto & s) { RCLCPP_INFO_ONCE(logger_, "%s", s); };
558+
const auto debug_msg_once = [this](const auto & s) { RCLCPP_DEBUG_ONCE(logger_, "%s", s); };
559559

560560
const bool is_under_control = m_current_operation_mode.is_autoware_control_enabled &&
561561
m_current_operation_mode.mode == OperationModeState::AUTONOMOUS;
@@ -621,10 +621,10 @@ void PidLongitudinalController::updateControlState(const ControlData & control_d
621621
if (m_control_state == ControlState::STOPPED) {
622622
// -- debug print --
623623
if (has_nonzero_target_vel && !departure_condition_from_stopped) {
624-
info_once("target speed > 0, but departure condition is not met. Keep STOPPED.");
624+
debug_msg_once("target speed > 0, but departure condition is not met. Keep STOPPED.");
625625
}
626626
if (has_nonzero_target_vel && keep_stopped_condition) {
627-
info_once("target speed > 0, but keep stop condition is met. Keep STOPPED.");
627+
debug_msg_once("target speed > 0, but keep stop condition is met. Keep STOPPED.");
628628
}
629629
// ---------------
630630

0 commit comments

Comments
 (0)