Skip to content

Commit b2fb783

Browse files
authored
fix(start_planner): fix geometric pull out stop point (autowarefoundation#3994)
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent 2465bbf commit b2fb783

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

planning/behavior_path_planner/src/utils/geometric_parallel_parking/geometric_parallel_parking.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ bool GeometricParallelParking::planPullOut(
292292
// set pull_out velocity to arc paths and 0 velocity to end point
293293
constexpr bool set_stop_end = false;
294294
setVelocityToArcPaths(arc_paths, parameters_.pull_out_velocity, set_stop_end);
295-
arc_paths.back().points.front().point.longitudinal_velocity_mps = 0.0;
296295

297296
// combine the road center line path with the second arc path
298297
auto paths = arc_paths;

planning/behavior_path_planner/src/utils/start_planner/geometric_pull_out.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ boost::optional<PullOutPath> GeometricPullOut::plan(Pose start_pose, Pose goal_p
6565

6666
if (parameters_.divide_pull_out_path) {
6767
output.partial_paths = planner_.getPaths();
68+
// insert stop velocity to first arc path end
69+
output.partial_paths.front().points.back().point.longitudinal_velocity_mps = 0.0;
6870
} else {
6971
auto partial_paths = planner_.getPaths();
70-
// remove stop velocity of first arc path
71-
partial_paths.front().points.back().point.longitudinal_velocity_mps =
72-
parallel_parking_parameters_.pull_out_velocity;
7372
const auto combined_path = combineReferencePath(partial_paths.at(0), partial_paths.at(1));
7473
output.partial_paths.push_back(combined_path);
7574
}

0 commit comments

Comments
 (0)