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(autonomous_emergency_braking): aeb strange mpc polygon #7740

Merged

Conversation

danielsanchezaran
Copy link
Contributor

Description

Due to the use of resize() the path vector generates a vector full of path points with position x:0 y:0 z:0 . This causes the AEB module to generate a wrong polygon path (because the last path poses are located at the base link).

This PR fixes the issue by doing reserve() instead, which seems like the original intention of the original commit.

Related links

Parent Issue:

  • Link

How was this PR tested?

Before:
cap- 2024-06-28-13-52-30
The polygon is disjointed and an NPC is wrongly detected as an obstacle.

After:
cap- 2024-06-28-13-50-29
The polygons are correct and no collision is detected!

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added component:control Vehicle control algorithms and mechanisms. (auto-assigned) component:system System design and integration. (auto-assigned) labels Jun 28, 2024
Copy link

github-actions bot commented Jun 28, 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: Daniel Sanchez <[email protected]>
@github-actions github-actions bot removed the component:system System design and integration. (auto-assigned) label Jun 28, 2024
@danielsanchezaran danielsanchezaran marked this pull request as ready for review June 28, 2024 05:03
@danielsanchezaran danielsanchezaran added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jun 28, 2024
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

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

Project coverage is 0.00%. Comparing base (3d849e9) to head (5fdb157).
Report is 535 commits behind head on main.

Files Patch % Lines
...autoware_autonomous_emergency_braking/src/node.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #7740       +/-   ##
==========================================
- Coverage   15.09%   0.00%   -15.10%     
==========================================
  Files        1967     118     -1849     
  Lines      135941   12777   -123164     
  Branches    42122    1379    -40743     
==========================================
- Hits        20520       0    -20520     
+ Misses      92700   12777    -79923     
+ Partials    22721       0    -22721     
Flag Coverage Δ
differential 0.00% <0.00%> (?)
total ?

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

Copy link
Contributor

@soblin soblin left a comment

Choose a reason for hiding this comment

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

OMG!

@danielsanchezaran danielsanchezaran merged commit edfeedd into autowarefoundation:main Jun 28, 2024
36 of 39 checks passed
@danielsanchezaran danielsanchezaran deleted the fix/aeb-strange-mpc-polygon branch June 28, 2024 06:52
mitukou1109 pushed a commit to mitukou1109/autoware.universe that referenced this pull request Jul 2, 2024
palas21 pushed a commit to palas21/autoware.universe that referenced this pull request Jul 12, 2024
…oundation#7740)

change resize to reserve

Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: palas21 <[email protected]>
tby-udel pushed a commit to tby-udel/autoware.universe that referenced this pull request Jul 14, 2024
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
change resize to reserve

Signed-off-by: Daniel Sanchez <[email protected]>
danielsanchezaran added a commit to tier4/autoware.universe that referenced this pull request Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (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.

2 participants