Skip to content

Commit

Permalink
chore(traffic_light_module): use RCLCPP_DEBUG for the debug printing
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Jan 4, 2024
1 parent ed8ffea commit d6798d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planning/behavior_velocity_traffic_light_module/src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ bool TrafficLightModule::modifyPathVelocity(PathWithLaneId * path, StopReason *
// Move to go out state if ego vehicle over deadline.
constexpr double signed_deadline_length = -2.0;
if (signed_arc_length_to_stop_point < signed_deadline_length) {
RCLCPP_INFO(logger_, "APPROACH -> GO_OUT");
RCLCPP_DEBUG(logger_, "APPROACH -> GO_OUT");
state_ = State::GO_OUT;
stop_signal_received_time_ptr_.reset();
return true;
Expand Down Expand Up @@ -263,7 +263,7 @@ bool TrafficLightModule::modifyPathVelocity(PathWithLaneId * path, StopReason *
constexpr double restart_length = 1.0;
if (use_initialization_after_start) {
if (signed_arc_length_to_stop_point > restart_length) {
RCLCPP_INFO(logger_, "GO_OUT(RESTART) -> APPROACH");
RCLCPP_DEBUG(logger_, "GO_OUT(RESTART) -> APPROACH");
state_ = State::APPROACH;
}
}
Expand Down

0 comments on commit d6798d7

Please sign in to comment.