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(goal_planner): fix lane departure check not working correctly due to uninitialized variable #8449

Merged

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Aug 13, 2024

Description

With #7193, createVehicleFootprints must now have a param_.footprint_extra_margin argument. The change only applies to start planner, not goal planner. This PR adds that parameter to the goal planner as well.

This uninitialized variable could cause footprint_extra_margin to be nan in some environments and lane departure checker to be incorrect As a result, all paths were judged as out of lane, and there was a bug that no candidate path was generated.

before

image

after

image

Related links

launcher:

Parent Issue:

Private Links:

How was this PR tested?

2024/08/13 https://evaluation.tier4.jp/evaluation/reports/ce28c429-dedc-5b18-b103-74a0e3e2e57a/?project_id=prd_jt

3988/3990

https://evaluation.tier4.jp/evaluation/reports/tables/new?catalog_id=095ae8b3-a23b-4a08-8674-10a681449693&filter=&job_id=9d134b89-17f3-530c-bdee-31558fc970a5&project_id=prd_jt&table_config=date%2Ctotal%2Chide&target_ids=97f129f8-1237-53e4-bb37-4897e6fde01d

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) labels Aug 13, 2024
Copy link

github-actions bot commented Aug 13, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

Copy link

codecov bot commented Aug 13, 2024

Codecov Report

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

Project coverage is 23.83%. Comparing base (3c0a78b) to head (5ebdc8c).
Report is 2 commits behind head on main.

Files Patch % Lines
..._behavior_path_goal_planner_module/src/manager.cpp 0.00% 5 Missing ⚠️
...th_goal_planner_module/src/goal_planner_module.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8449      +/-   ##
==========================================
- Coverage   23.85%   23.83%   -0.02%     
==========================================
  Files        1379     1383       +4     
  Lines      101656   101658       +2     
  Branches    38669    38630      -39     
==========================================
- Hits        24252    24234      -18     
- Misses      74913    74966      +53     
+ Partials     2491     2458      -33     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 23.85% <ø> (-0.01%) ⬇️ Carriedforward from adfd354

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

… to uninitialized variable

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@kosuke55 kosuke55 force-pushed the fix/shift_lane_departure_check branch from dc8b47b to 5ebdc8c Compare August 13, 2024 13:20
@kosuke55 kosuke55 merged commit 3a30814 into autowarefoundation:main Aug 13, 2024
27 of 30 checks passed
@kosuke55 kosuke55 deleted the fix/shift_lane_departure_check branch August 13, 2024 16:10
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
… to uninitialized variable (autowarefoundation#8449)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
… to uninitialized variable (autowarefoundation#8449)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: xtk8532704 <1041084556@qq.com>
TetsuKawa pushed a commit to tier4/autoware.universe that referenced this pull request Jan 23, 2025
… to uninitialized variable (autowarefoundation#8449)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.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) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants