Skip to content

Commit

Permalink
add debug log when the signal data is outdated
Browse files Browse the repository at this point in the history
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
  • Loading branch information
TomohitoAndo committed Aug 21, 2023
1 parent 6448663 commit 9c24f8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions planning/behavior_velocity_traffic_light_module/src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ bool TrafficLightModule::findValidTrafficSignal(TrafficSignal & valid_traffic_si
if (is_traffic_signal_timeout) {
RCLCPP_WARN_THROTTLE(
logger_, *clock_, 5000 /* ms */, "the received traffic signal data is outdated");
RCLCPP_WARN_STREAM_THROTTLE(
logger_, *clock_, 5000 /* ms */,
"time diff: " << (clock_->now() - traffic_signal_stamped->stamp).seconds());
return false;
}

Expand Down

0 comments on commit 9c24f8f

Please sign in to comment.