Skip to content

Commit

Permalink
fix(avoidance): fix dying with empty lanes (autowarefoundation#4606)
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 authored and kminoda committed Aug 21, 2023
1 parent 72647d7 commit 799a3b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions planning/behavior_path_planner/src/utils/avoidance/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,10 @@ void filterTargetObjects(
using lanelet::geometry::toArcCoordinates;
using lanelet::utils::to2D;

if (data.current_lanelets.empty()) {
return;
}

const auto & rh = planner_data->route_handler;
const auto & path_points = data.reference_path_rough.points;
const auto & ego_pos = planner_data->self_odometry->pose.pose.position;
Expand Down

0 comments on commit 799a3b2

Please sign in to comment.