Skip to content

Commit

Permalink
fix(pull_out): add empty check (autowarefoundation#5041)
Browse files Browse the repository at this point in the history
Signed-off-by: tomoya.kimura <[email protected]>
  • Loading branch information
tkimura4 committed Sep 20, 2023
1 parent 8d0d52a commit 75a263c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ bool GeometricParallelParking::planPullOut(
PathWithLaneId road_center_line_path =
planner_data_->route_handler->getCenterLinePath(road_lanes, s_start, s_end, true);

if (road_center_line_path.points.empty()) {
continue;
}

// check the continuity of straight path and arc path
const Pose & road_path_first_pose = road_center_line_path.points.front().point.pose;
const Pose & arc_path_last_pose = arc_paths.back().points.back().point.pose;
Expand Down

0 comments on commit 75a263c

Please sign in to comment.