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(start_planner): set minimum velocity to avoid high curvature in trajectroy #1334

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,14 @@ std::vector<PullOutPath> ShiftPullOut::calcPullOutPaths(
shift_line.end = *shift_end_pose_ptr;
shift_line.end_shift_length = shift_length;
path_shifter.addShiftLine(shift_line);
path_shifter.setVelocity(0.0); // initial velocity is 0
// In the current path generation logic:
// - Considering the maximum curvature of the path results in a smaller shift distance.
// - Setting the allowable maximum lateral acceleration to a value smaller than the one
// calculated by the constant lateral jerk trajectory generation.
// - Setting the initial velocity to a very small value, such as 0.0.
// These conditions cause the curvature around the shift start pose to become larger than
// expected. To address this issue, an initial velocity 1.0 is provided.
path_shifter.setVelocity(1.0);
path_shifter.setLongitudinalAcceleration(longitudinal_acc);
path_shifter.setLateralAccelerationLimit(lateral_acc);

Expand Down
Loading