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

feat(lane_change): using frenet planner to generate lane change path when ego near terminal #9767

Merged

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 commented Dec 24, 2024

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:

  • Link

How was this PR tested?

  1. PSIM
  2. Evaluator TIER IV Internal link

Notes for reviewers

None.

ROS Parameter Changes

Additions and removals

Change type Parameter Name Type Default Value Description
Added trajectory.th_prepare_curvature double 0.03 If the maximum curvature of the prepare segment exceeds the threshold, the prepare segment is invalid.
Added frenet.enable bool 0.03 Enable frenet planner if ego is near terminal start.
Added frenet.th_yaw_diff bool 10.0 If the yaw diff between of the prepare segment's end and lane changing segment's start exceed the threshold , the lane changing segment is invalid.
Added frenet.th_curvature_smoothing bool 0.1 Filters and appends target path points with curvature below the threshold to candidate path.

Effects on system behavior

None.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Dec 24, 2024
Copy link

github-actions bot commented Dec 24, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-5068-lane-change-frenet branch 2 times, most recently from 4cae773 to 11e2774 Compare December 25, 2024 10:45
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 changed the title frenet planner feat(lane_change): using frenet planner to generate lane change path when ego near terminal Dec 26, 2024
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 marked this pull request as ready for review December 26, 2024 04:28
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-5068-lane-change-frenet branch 3 times, most recently from 66b4fe2 to 881afe1 Compare December 27, 2024 02:02
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-5068-lane-change-frenet branch from 6453e15 to 3253f79 Compare January 5, 2025 23:24
@github-actions github-actions bot added the type:documentation Creating or refining documentation. (auto-assigned) label Jan 6, 2025
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 added the run:deploy-docs Mark for deploy-docs action generation. (used-by-ci) label Jan 6, 2025
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jan 6, 2025
const LineString2d & lane_boundary, const Direction direction)
{
const auto distance = (0.5 * common_data_ptr->bpp_param_ptr->vehicle_width + 0.1);
const auto offset = sign<double>(direction) * distance; // invert direction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double checking, when doing left lane change then we want to offset to the right, and vice versa. Is that correct? Does this logic do that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Please refer to the following

Color legend

  1. Red: Lane changing trajectory
  2. Green: Lane boundary and offset's trajectory
  3. Blue: Offset trajectory in the inversed direction (I'm placing this just and indication).

Lane change left

image_0

Lane change trajectory is offset to the right (green) crosses current lane boundary (green)

Lane change right

image_0 copy

Lane change trajectory is offset to the left (green) crosses current lane boundary (green)

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 added run:deploy-docs Mark for deploy-docs action generation. (used-by-ci) tag:pre-commit-autoupdate and removed run:deploy-docs Mark for deploy-docs action generation. (used-by-ci) tag:pre-commit-autoupdate labels Jan 14, 2025
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT1-5068-lane-change-frenet branch from 2903577 to 080250b Compare January 14, 2025 04:48
Signed-off-by: Zulfaqar Azmi <[email protected]>
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 enabled auto-merge (squash) January 14, 2025 05:05
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 merged commit 0715615 into autowarefoundation:main Jan 14, 2025
32 of 34 checks passed
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the RT1-5068-lane-change-frenet branch January 14, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) run:deploy-docs Mark for deploy-docs action generation. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants