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(lane_change): modify lane change requested condition #8510

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 commented Aug 16, 2024

Description

Currently lane change module with request execution as soon as target lane is found.
Even when target lane is 200 meters away, lane change will transition to WAITING_APPROVAL state. Example is shown below (note the planner manager status)

beforePR.mp4

This doesn't make sense anyway, since lane change path will be trigger only when the end of prepare phase is within target lane's neighbor. Therefore in this PR, the execution condition is changed and lane change will only be requested if ego distance to the start of target lane is less than maximum prepare length. Example after PR is shown below (note the planner manager status)

afterPR.mp4

Related links

Parent Issue:

  • Link

How was this PR tested?

PSIM

Evaluator result TIER IV Internal Link

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

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

github-actions bot commented Aug 16, 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 fix-lc-when-target-within-prepare branch 4 times, most recently from d0f7d77 to 2e2e580 Compare August 21, 2024 06:24
@maxime-clem maxime-clem added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 21, 2024
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 5.26316% with 18 lines in your changes missing coverage. Please review.

Project coverage is 23.94%. Comparing base (a7db560) to head (1a1207e).
Report is 3 commits behind head on main.

Files Patch % Lines
..._path_lane_change_module/src/utils/calculation.cpp 0.00% 14 Missing ⚠️
...are_behavior_path_lane_change_module/src/scene.cpp 20.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8510      +/-   ##
==========================================
- Coverage   23.96%   23.94%   -0.02%     
==========================================
  Files        1382     1383       +1     
  Lines      102019   102083      +64     
  Branches    38886    38895       +9     
==========================================
- Hits        24446    24441       -5     
- Misses      75141    75213      +72     
+ Partials     2432     2429       -3     
Flag Coverage Δ *Carryforward flag
differential 15.49% <5.26%> (?)
total 23.95% <ø> (-0.01%) ⬇️ Carriedforward from a7db560

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

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

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the fix-lc-when-target-within-prepare branch from 68beab3 to b7fd3f9 Compare August 22, 2024 01:15
zulfaqar-azmi-t4 and others added 4 commits August 22, 2024 10:56
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…nge_module/src/utils/calculation.cpp

Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the fix-lc-when-target-within-prepare branch from b7fd3f9 to 1a1207e Compare August 22, 2024 01:56
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 merged commit d87301c into autowarefoundation:main Aug 22, 2024
31 of 32 checks passed
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the fix-lc-when-target-within-prepare branch August 22, 2024 04:23
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Aug 27, 2024
…ndation#8510)

* modify lane change requested condition

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp

Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>

* style(pre-commit): autofix

* fix docstring

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
kotaro-hihara pushed a commit to tier4/autoware.universe that referenced this pull request Sep 3, 2024
…ndation#8510)

* modify lane change requested condition

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp

Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>

* style(pre-commit): autofix

* fix docstring

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: kotaro-hihara <kotaro.hihara@tier4.jp>
kotaro-hihara pushed a commit to tier4/autoware.universe that referenced this pull request Sep 3, 2024
…ndation#8510)

* modify lane change requested condition

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp

Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>

* style(pre-commit): autofix

* fix docstring

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: kotaro-hihara <kotaro.hihara@tier4.jp>
zulfaqar-azmi-t4 added a commit to tier4/autoware.universe that referenced this pull request Sep 3, 2024
…ndation#8510)

* modify lane change requested condition

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp

Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>

* style(pre-commit): autofix

* fix docstring

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
kotaro-hihara pushed a commit to tier4/autoware.universe that referenced this pull request Sep 3, 2024
…ndation#8510)

* modify lane change requested condition

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp

Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>

* style(pre-commit): autofix

* fix docstring

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: kotaro-hihara <kotaro.hihara@tier4.jp>
kotaro-hihara added a commit to tier4/autoware.universe that referenced this pull request Sep 3, 2024
fix(lane_change): modify lane change requested condition (autowarefoundation#8510)
shmpwk pushed a commit to tier4/autoware.universe that referenced this pull request Sep 4, 2024
…ndation#8510) (#1504)

* modify lane change requested condition



* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp



* style(pre-commit): autofix

* fix docstring



---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
TetsuKawa pushed a commit to tier4/autoware.universe that referenced this pull request Jan 23, 2025
…ndation#8510) (#1504)

* modify lane change requested condition



* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp



* style(pre-commit): autofix

* fix docstring



---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
TetsuKawa pushed a commit to tier4/autoware.universe that referenced this pull request Jan 23, 2025
…ndation#8510)

* modify lane change requested condition

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* Update planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/calculation.cpp

Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>

* style(pre-commit): autofix

* fix docstring

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Co-authored-by: mkquda <168697710+mkquda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: kotaro-hihara <kotaro.hihara@tier4.jp>
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants