File tree 1 file changed +6
-0
lines changed
planning/behavior_path_start_planner_module/src
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -725,6 +725,12 @@ PathWithLaneId StartPlannerModule::extractCollisionCheckSection(
725
725
combined_path.points .insert (
726
726
combined_path.points .end (), partial_path.points .begin (), partial_path.points .end ());
727
727
}
728
+ // calculate shift start pose idx
729
+ const size_t shift_start_idx =
730
+ motion_utils::findNearestIndex (combined_path.points , path.start_pose .position );
731
+ // remove front of start pose
732
+ combined_path.points .erase (
733
+ combined_path.points .begin (), combined_path.points .begin () + shift_start_idx);
728
734
// calculate collision check end idx
729
735
const size_t collision_check_end_idx = std::invoke ([&]() {
730
736
const auto collision_check_end_pose = motion_utils::calcLongitudinalOffsetPose (
You can’t perform that action at this time.
0 commit comments