We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb15a2b commit 2be630bCopy full SHA for 2be630b
planning/behavior_velocity_planner/src/node.cpp
@@ -344,6 +344,11 @@ void BehaviorVelocityPlannerNode::onTrafficSignalsRawV2I(
344
std::lock_guard<std::mutex> lock(mutex_);
345
346
for (const auto & car_light : msg->car_lights) {
347
+ // If the time to red is not available, skip it
348
+ if (!car_light.has_max_rest_time || !car_light.has_min_rest_time) {
349
+ continue;
350
+ }
351
+
352
for (const auto & state : car_light.states) {
353
TrafficSignalTimeToRedStamped time_to_red;
354
time_to_red.stamp = msg->header.stamp;
0 commit comments