Skip to content

Commit

Permalink
fix(traffic_light_arbiter): clear perception msg when the stamp is ov…
Browse files Browse the repository at this point in the history
…er the tolerance (autowarefoundation#4464)

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
  • Loading branch information
TomohitoAndo authored and tkimura4 committed Aug 4, 2023
1 parent b9fe7d6 commit 63786d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void TrafficLightArbiter::onExternalMsg(const TrafficSignalArray::ConstSharedPtr
if (
(rclcpp::Time(msg->stamp) - rclcpp::Time(latest_perception_msg_.stamp)).seconds() >
perception_time_tolerance_) {
latest_external_msg_.signals.clear();
latest_perception_msg_.signals.clear();
}

arbitrateAndPublish(msg->stamp);
Expand Down

0 comments on commit 63786d8

Please sign in to comment.