Skip to content

Commit

Permalink
fix(start_planner): fix geometric pull out stop point (autowarefounda…
Browse files Browse the repository at this point in the history
…tion#3994)

Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 authored Jun 16, 2023
1 parent 2465bbf commit b2fb783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ bool GeometricParallelParking::planPullOut(
// set pull_out velocity to arc paths and 0 velocity to end point
constexpr bool set_stop_end = false;
setVelocityToArcPaths(arc_paths, parameters_.pull_out_velocity, set_stop_end);
arc_paths.back().points.front().point.longitudinal_velocity_mps = 0.0;

// combine the road center line path with the second arc path
auto paths = arc_paths;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ boost::optional<PullOutPath> GeometricPullOut::plan(Pose start_pose, Pose goal_p

if (parameters_.divide_pull_out_path) {
output.partial_paths = planner_.getPaths();
// insert stop velocity to first arc path end
output.partial_paths.front().points.back().point.longitudinal_velocity_mps = 0.0;
} else {
auto partial_paths = planner_.getPaths();
// remove stop velocity of first arc path
partial_paths.front().points.back().point.longitudinal_velocity_mps =
parallel_parking_parameters_.pull_out_velocity;
const auto combined_path = combineReferencePath(partial_paths.at(0), partial_paths.at(1));
output.partial_paths.push_back(combined_path);
}
Expand Down

0 comments on commit b2fb783

Please sign in to comment.