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 (#701)

fix(traffic_light_arbiter): clear perception msg when the stamp is over the tolerance (autowarefoundation#4464)

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
  • Loading branch information
TomohitoAndo authored Jul 31, 2023
1 parent 014a92c commit fb64b10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,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 fb64b10

Please sign in to comment.