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): do not cancel when approaching terminal start #8381

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

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

Description

Lane change module will cancel unsafe path unless ego has passed terminal start point.
However, as ego vehicle approaching terminal end, cancelling lane change path might result in difficulties in re-attempting lane change.

This PR aims to fix this, by not cancelling lane change if ego has already near terminal start.

Related links

None

Parent Issue:

  • Link

How was this PR tested?

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 6, 2024
Copy link

github-actions bot commented Aug 6, 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 lc-do-not-cancel-when-approaching-terminal branch from 775c85e to e2be56d Compare August 13, 2024 04:30
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 marked this pull request as ready for review August 14, 2024 06:06
@maxime-clem maxime-clem added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 14, 2024
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 0% with 21 lines in your changes missing coverage. Please review.

Project coverage is 23.77%. Comparing base (142795a) to head (9b59c68).
Report is 13 commits behind head on main.

Files Patch % Lines
...are_behavior_path_lane_change_module/src/scene.cpp 0.00% 10 Missing ⚠️
..._path_lane_change_module/src/utils/calculation.cpp 0.00% 6 Missing ⚠️
...behavior_path_lane_change_module/src/interface.cpp 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8381      +/-   ##
==========================================
- Coverage   23.90%   23.77%   -0.14%     
==========================================
  Files        1380     1381       +1     
  Lines      101759   101777      +18     
  Branches    38713    38697      -16     
==========================================
- Hits        24328    24193     -135     
- Misses      74947    75161     +214     
+ Partials     2484     2423      -61     
Flag Coverage Δ *Carryforward flag
differential 15.42% <0.00%> (?)
total 23.80% <ø> (-0.10%) ⬇️ Carriedforward from 31263bd

*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.

Copy link
Contributor

@maxime-clem maxime-clem left a comment

Choose a reason for hiding this comment

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

Code looks good. I only have a small question and a small request.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the lc-do-not-cancel-when-approaching-terminal branch from a27ae47 to 9b59c68 Compare August 14, 2024 08:08
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 merged commit 02abe1e into autowarefoundation:main Aug 15, 2024
29 of 30 checks passed
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the lc-do-not-cancel-when-approaching-terminal branch August 15, 2024 07:20
zulfaqar-azmi-t4 added a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…warefoundation#8381)

* do not cancel if ego vehicle approaching terminal start

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

* Insert stop point if object is coming from rear

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

* minor edit to fix conflict

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

* rename function

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

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…warefoundation#8381)

* do not cancel if ego vehicle approaching terminal start

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

* Insert stop point if object is coming from rear

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

* minor edit to fix conflict

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

* rename function

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

---------

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: xtk8532704 <1041084556@qq.com>
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.

2 participants