Skip to content

Commit e0e9fcf

Browse files
authored
fix(avoidance): fix dying with empty lanes (#4606)
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent 7f02d6a commit e0e9fcf

File tree

1 file changed

+4
-0
lines changed
  • planning/behavior_path_planner/src/utils/avoidance

1 file changed

+4
-0
lines changed

planning/behavior_path_planner/src/utils/avoidance/utils.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,10 @@ void filterTargetObjects(
855855
using lanelet::geometry::toArcCoordinates;
856856
using lanelet::utils::to2D;
857857

858+
if (data.current_lanelets.empty()) {
859+
return;
860+
}
861+
858862
const auto & rh = planner_data->route_handler;
859863
const auto & path_points = data.reference_path_rough.points;
860864
const auto & ego_pos = planner_data->self_odometry->pose.pose.position;

0 commit comments

Comments
 (0)