-
Notifications
You must be signed in to change notification settings - Fork 682
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(AEB): ego to object distance calculation logic with predicted path #5930
fix(AEB): ego to object distance calculation logic with predicted path #5930
Conversation
Signed-off-by: ismetatabay <ismet@leodrive.ai>
@TakaHoribe-san, @tkimura4-san can you check this PR and the following issue: I think it is important for the utilizing AEB module with latest Autoware. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5930 +/- ##
==========================================
- Coverage 15.29% 15.29% -0.01%
==========================================
Files 1750 1750
Lines 120380 120382 +2
Branches 36723 36723
==========================================
Hits 18408 18408
- Misses 81318 81320 +2
Partials 20654 20654
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! LGTM!
autowarefoundation#5930) init commit Signed-off-by: ismetatabay <ismet@leodrive.ai>
autowarefoundation#5930) init commit Signed-off-by: ismetatabay <ismet@leodrive.ai>
autowarefoundation#5930) init commit Signed-off-by: ismetatabay <ismet@leodrive.ai>
autowarefoundation#5930) init commit Signed-off-by: ismetatabay <ismet@leodrive.ai>
autowarefoundation#5930) init commit Signed-off-by: ismetatabay <ismet@leodrive.ai>
autowarefoundation#5930) init commit Signed-off-by: ismetatabay <ismet@leodrive.ai>
Description
Fixes #5931
This PR fixes the calculation of ego to object distance.
At the following
motion_utils::calcSignedArcLength
function:autoware.universe/control/autonomous_emergency_braking/src/node.cpp
Lines 367 to 368 in f63ad33
For instance, the predicted trajectory points of 'ego_path' have a size of 50, with only 15 predicted points provided. Consequently, the remaining 35 points have coordinates x: 0, y: 0, z: 0. As we've set 'current_p' to x: 0, y: 0, z: 0, the distance calculation becomes impossible. To resolve this issue, we need to utilize 'current_p' as the first index of 'ego_path' for calculating the distance between the ego and the object.
autoware.universe/control/autonomous_emergency_braking/src/node.cpp
Line 361 in f63ad33
Related links
Tests performed
Planning Sim
(Only
use_predicted_trajectory
is set as true)2023-12-21.16-28-44.mp4
Notes for reviewers
Effects on system behavior
Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.