-
Notifications
You must be signed in to change notification settings - Fork 668
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
feat(lane_change): using frenet planner to generate lane change path when ego near terminal #9767
base: main
Are you sure you want to change the base?
feat(lane_change): using frenet planner to generate lane change path when ego near terminal #9767
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
4cae773
to
11e2774
Compare
66b4fe2
to
881afe1
Compare
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
6453e15
to
3253f79
Compare
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
@@ -906,6 +939,7 @@ The following parameters are configurable in [lane_change.param.yaml](https://gi | |||
| `trajectory.max_longitudinal_acc` | [m/s2] | double | maximum longitudinal acceleration for lane change | 1.0 | | |||
| `trajectory.min_longitudinal_acc` | [m/s2] | double | maximum longitudinal deceleration for lane change | -1.0 | | |||
| `trajectory.lane_changing_decel_factor` | [-] | double | longitudinal deceleration factor during lane changing phase | 0.5 | | |||
| `trajectory.th_prepare_curvature` | [-] | double | If the maximum curvature of the prepare segment exceeds the threshold, the prepare segment is invalid. | 0.03 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure about the use of this parameter, prepare segment is usually just a section of the current reference path, so why would it have invalid curvature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const LineString2d & lane_boundary, const bool shift_to_left) | ||
{ | ||
const auto distance = (0.5 * common_data_ptr->bpp_param_ptr->vehicle_width + 0.1); | ||
const auto offset = (shift_to_left ? 1.0 : -1.0) * distance; // invert direction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use sign()
function from here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 999cf89
|
||
std::vector<lane_change::TrajectoryGroup> generate_frenet_candidates( | ||
const CommonDataPtr & common_data_ptr, const PathWithLaneId & prev_module_path, | ||
const std::vector<LaneChangePhaseMetrics> & metrics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to specify prep_metrics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 7037ea0
planning/behavior_path_planner/autoware_behavior_path_lane_change_module/README.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Description
This PR adds frenet planner to generate candidate path when ego is near terminal.
Related launcher's PR. autowarefoundation/autoware_launch#1290
Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
ROS Parameter Changes
Additions and removals
trajectory.th_prepare_curvature
double
0.03
frenet.enable
bool
0.03
frenet.th_yaw_diff
bool
10.0
frenet.th_curvature_smoothing
bool
0.1
Effects on system behavior
None.