Skip to content

Commit

Permalink
fix(drivable_area_expansion): segment index out of range (autowarefou…
Browse files Browse the repository at this point in the history
…ndation#5120)

Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored Sep 28, 2023
1 parent f2263e1 commit c552c3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ std::vector<PathPointWithLaneId> crop_and_resample(
// crop
const auto crop_seg_idx = motion_utils::findNearestSegmentIndex(points, crop_pose.position);
const auto cropped_points = motion_utils::cropPoints(
points, crop_pose.position, crop_seg_idx + 1,
points, crop_pose.position, crop_seg_idx,
planner_data->drivable_area_expansion_parameters.max_path_arc_length, 0.0);
planner_data->drivable_area_expansion_prev_crop_pose = crop_pose;
// resample
Expand Down

0 comments on commit c552c3d

Please sign in to comment.