Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(behavior_path_planner): use findSegment for segment search #4963

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion planning/behavior_path_planner/src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2851,7 +2851,7 @@ BehaviorModuleOutput getReferencePath(
// clip backward length
// NOTE: In order to keep backward_path_length at least, resampling interval is added to the
// backward.
const size_t current_seg_idx = motion_utils::findFirstNearestIndexWithSoftConstraints(
const size_t current_seg_idx = motion_utils::findFirstNearestSegmentIndexWithSoftConstraints(
reference_path.points, no_shift_pose, p.ego_nearest_dist_threshold,
p.ego_nearest_yaw_threshold);
reference_path.points = motion_utils::cropPoints(
Expand Down