Skip to content

Commit

Permalink
fix segment index
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Sep 15, 2023
1 parent c0dd3c5 commit 69654ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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, params.max_path_arc_length,
points, crop_pose.position, crop_seg_idx, params.max_path_arc_length,
params.max_path_arc_length - crop_distance);
// resample
PathWithLaneId cropped_path;
Expand Down

0 comments on commit 69654ce

Please sign in to comment.