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): unify stuck detection to avoid unnecessary computation #8383

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

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

Description

With the current detection, there will necessary computation when ego vehicle is stuck.
In this case, lane change module first check if there is any safe path. If not safe path, then ego vehicle will attempt to generate lane change path with stuck rss.

In this PR, these steps are unified. Meaning if ego is stuck, in the same loop, ego first check if there is safe path with normal rss, and if no, then then rss param is used.

This helps to reduce computation time of lane change module.

Related links

#8214

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:

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
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 👍

@maxime-clem maxime-clem added the tag: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 10 lines in your changes missing coverage. Please review.

Project coverage is 23.78%. Comparing base (2a050d7) to head (bc414b5).
Report is 8 commits behind head on main.

Files Patch % Lines
...are_behavior_path_lane_change_module/src/scene.cpp 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8383      +/-   ##
==========================================
- Coverage   23.91%   23.78%   -0.14%     
==========================================
  Files        1380     1381       +1     
  Lines      101739   101686      -53     
  Branches    38716    38631      -85     
==========================================
- Hits        24329    24183     -146     
- Misses      74930    75043     +113     
+ Partials     2480     2460      -20     
Flag Coverage Δ *Carryforward flag
differential 15.44% <0.00%> (?)
total 23.82% <ø> (-0.09%) ⬇️ Carriedforward from 4719395

*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 enabled auto-merge (squash) August 14, 2024 09:25
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 merged commit 8fdebeb into autowarefoundation:main Aug 14, 2024
28 of 30 checks passed
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…ion (autowarefoundation#8383)

unify stuck detection in getLaneChangePaths

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
Signed-off-by: xtk8532704 <[email protected]>
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 deleted the separate-stuck-detection branch August 23, 2024 05:28
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants