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): regulate lane change on crosswalk and intersection #5068

Merged
merged 8 commits into from
Sep 22, 2023

Conversation

rej55
Copy link
Contributor

@rej55 rej55 commented Sep 21, 2023

Description

By introducing this change, you can regulate lane change on crosswalk and intersection.

Changes for config is autowarefoundation/autoware_launch#582

Related links

Tests performed

Tested in planning simulator with regulate parameters to true.
TIER IV INTERNAL TEST

Crosswalk:

cap-.2023-09-21-17-38-34.mp4

Intersection:

cap-.2023-09-21-18-15-52.mp4

Notes for reviewers

Interface changes

New parameters added.

Effects on system behavior

Using default parameters, no effects.
If change regulatory parameters, you can regulate lane change on crosswalk and intersection.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

}

return common_parameters.lane_change_prepare_duration;
return prepare_durations;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it regulates lane change on crosswalk or intersection, lane change path may be found if the prepare duration is longer.
So, it returns some prepare duration candidates.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can roughly imagine why the prepare_duration would be shortened when the vehicle is moving at low speed and is near the end of the lane. Is there any degradation in performance if this feature is lost? Since the duration is being explored starting from zero, it seems like there wouldn't be an issue, but I'm curious if the low-speed condition is really necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry exploring from common_parameters.lane_change_prepare_duration...

@rej55 rej55 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 21, 2023
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.07% ⚠️

Comparison is base (08122d9) 15.80% compared to head (cfd377f) 15.74%.
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5068      +/-   ##
==========================================
- Coverage   15.80%   15.74%   -0.07%     
==========================================
  Files        1581     1581              
  Lines      109901   110977    +1076     
  Branches    34414    35203     +789     
==========================================
+ Hits        17375    17477     +102     
- Misses      73399    74236     +837     
- Partials    19127    19264     +137     
Flag Coverage Δ *Carryforward flag
differential 12.60% <0.00%> (?)
total 15.82% <ø> (+0.01%) ⬆️ Carriedforward from 0b64c86

*This pull request uses carry forward flags. Click here to find out more.

Files Changed Coverage Δ
...r_path_planner/scene_module/lane_change/normal.hpp 0.00% <ø> (ø)
...nner/utils/lane_change/lane_change_module_data.hpp 0.00% <ø> (ø)
...h_planner/src/scene_module/lane_change/manager.cpp 5.20% <0.00%> (-0.09%) ⬇️
...th_planner/src/scene_module/lane_change/normal.cpp 3.75% <0.00%> (-0.29%) ⬇️
planning/behavior_path_planner/src/utils/utils.cpp 19.03% <0.00%> (+0.71%) ⬆️

... and 9 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

LGTM!

@satoshi-ota satoshi-ota self-requested a review September 21, 2023 12:37
@rej55 rej55 merged commit 12d8333 into autowarefoundation:main Sep 22, 2023
22 of 26 checks passed
@rej55 rej55 deleted the fix/lane_change_on_crosswalk branch September 22, 2023 07:39
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Sep 26, 2023
…autowarefoundation#5068)

* fix(lane_change): fix hasEnoughDistance()

Signed-off-by: Fumiya Watanabe <[email protected]>

* feat(lane_change): regulate lane change on crosswalk and intersection

Signed-off-by: Fumiya Watanabe <[email protected]>

* fix(lane_change): remove unnecessary value

Signed-off-by: Fumiya Watanabe <[email protected]>

* Update planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

Co-authored-by: Kyoichi Sugahara <[email protected]>

* style(pre-commit): autofix

* Update planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

Co-authored-by: Zulfaqar Azmi <[email protected]>

* style(pre-commit): autofix

* fix(lane_change): separate functions and fix

Signed-off-by: Fumiya Watanabe <[email protected]>

---------

Signed-off-by: Fumiya Watanabe <[email protected]>
Co-authored-by: Kyoichi Sugahara <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Zulfaqar Azmi <[email protected]>
maxime-clem pushed a commit to maxime-clem/autoware.universe that referenced this pull request Oct 2, 2023
…autowarefoundation#5068)

* fix(lane_change): fix hasEnoughDistance()

Signed-off-by: Fumiya Watanabe <[email protected]>

* feat(lane_change): regulate lane change on crosswalk and intersection

Signed-off-by: Fumiya Watanabe <[email protected]>

* fix(lane_change): remove unnecessary value

Signed-off-by: Fumiya Watanabe <[email protected]>

* Update planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

Co-authored-by: Kyoichi Sugahara <[email protected]>

* style(pre-commit): autofix

* Update planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

Co-authored-by: Zulfaqar Azmi <[email protected]>

* style(pre-commit): autofix

* fix(lane_change): separate functions and fix

Signed-off-by: Fumiya Watanabe <[email protected]>

---------

Signed-off-by: Fumiya Watanabe <[email protected]>
Co-authored-by: Kyoichi Sugahara <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Zulfaqar Azmi <[email protected]>
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) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants