Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ac31ee

Browse files
maxime-clemanhnv3991
authored andcommittedFeb 13, 2024
fix(occlusion_spot): set proper condition on optional value (autowarefoundation#6301)
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
1 parent 7b8e167 commit 9ac31ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎planning/behavior_velocity_occlusion_spot_module/src/occlusion_spot_utils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ bool generatePossibleCollisionsFromGridMap(
406406
const auto pc = generateOneNotableCollisionFromOcclusionSpot(
407407
grid, occlusion_spot_positions, offset_from_start_to_ego, base_point, path_lanelet, param,
408408
debug_data);
409-
if (pc) continue;
409+
if (pc == std::nullopt) continue;
410410
const double lateral_distance = std::abs(pc.value().arc_lane_dist_at_collision.distance);
411411
if (lateral_distance > distance_lower_bound) continue;
412412
distance_lower_bound = lateral_distance;

0 commit comments

Comments
 (0)
Please sign in to comment.