@@ -199,10 +199,9 @@ bool TrafficLightModule::modifyPathVelocity(PathWithLaneId * path, StopReason *
199
199
input_path, lanelet_stop_lines,
200
200
planner_param_.stop_margin + planner_data_->vehicle_info_ .max_longitudinal_offset_m ,
201
201
planner_data_->stop_line_extend_length , stop_line_point, stop_line_point_idx)) {
202
- RCLCPP_WARN_STREAM_THROTTLE (
203
- logger_, *clock_, 5000 ,
204
- " Failed to calculate stop point and insert index for regulatory element id "
205
- << traffic_light_reg_elem_.id ());
202
+ RCLCPP_WARN_STREAM_ONCE (
203
+ logger_, " Failed to calculate stop point and insert index for regulatory element id "
204
+ << traffic_light_reg_elem_.id ());
206
205
setSafe (true );
207
206
setDistance (std::numeric_limits<double >::lowest ());
208
207
return false ;
@@ -359,10 +358,9 @@ bool TrafficLightModule::findValidTrafficSignal(TrafficSignalStamped & valid_tra
359
358
const auto traffic_signal_stamped_opt = planner_data_->getTrafficSignal (
360
359
traffic_light_reg_elem_.id (), true /* traffic light module keeps last observation */ );
361
360
if (!traffic_signal_stamped_opt) {
362
- RCLCPP_WARN_STREAM_THROTTLE (
363
- logger_, *clock_, 5000 /* ms */ ,
364
- " the traffic signal data associated with regulatory element id "
365
- << traffic_light_reg_elem_.id () << " is not received" );
361
+ RCLCPP_WARN_STREAM_ONCE (
362
+ logger_, " the traffic signal data associated with regulatory element id "
363
+ << traffic_light_reg_elem_.id () << " is not received" );
366
364
return false ;
367
365
}
368
366
valid_traffic_signal = traffic_signal_stamped_opt.value ();
0 commit comments