-
Notifications
You must be signed in to change notification settings - Fork 659
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(obstacle_stop_planner): change the nearest_collision_point calculation place #5794
Conversation
…ation place Signed-off-by: Berkay Karaman <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5794 +/- ##
==========================================
- Coverage 15.22% 15.22% -0.01%
==========================================
Files 1751 1751
Lines 120824 120832 +8
Branches 36716 36717 +1
==========================================
Hits 18396 18396
- Misses 81786 81794 +8
Partials 20642 20642
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @satoshi-ota @shmpwk @taikitanaka3 @tkimura4, sorry to bother you, if you have some time, could you review this PR? |
Sorry for late reply @brkay54 |
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.
LGTM.
@brkay54 Thanks for your contribution. Btw, is it possible to add another maintainer from leodrive side for this package? Basically, TIER IV uses only the feature to check collision by pointcloud. So, I think it is ok to improve the feature that uses predicted objects without TIER IV maintainer.
…ation place (autowarefoundation#5794) Signed-off-by: Berkay Karaman <[email protected]>
…ation place (#5794) Signed-off-by: Berkay Karaman <[email protected]> Signed-off-by: Kotaro Yoshimoto <[email protected]>
…ation place (autowarefoundation#5794) Signed-off-by: Berkay Karaman <[email protected]>
Description
This PR closes following issues:
#5449
#6007
The purpose of this PR is fixing logical bug.
At first for loop here, it searches collision on trajectory by looking into predicted objects. If there is a collision object, it finds the nearest point of the object (by looking both intersected points and corner points here), and it pushes predicted object, time, and nearest point into predicted_object_history_.
At the second for loop here, it searches the nearest collision object in predicted_object_history_ vector. It looks for the pre-calculated nearest point inside the trajectory footprint or not. It is the mistake.
If the nearest point we found in the first loop is an intersected point, bg::intersect might not be true in the second loop, it is a logical mistake.
In this issue (#6007) we realized if the use_predicted_objects is true, obstacle_stop_planner may react too late to obstacle.
To solve this problem, we made structural change on
searchPredictedObject
function. We changed the nearest_collision_point calculation place to the second loop.Related links
Tests performed
Tested in PSim by using reaction_analyzer tool. (https://github.com/brkay54/autoware.universe/tree/feat/reaction-measure-tool/tools/reaction_analyzer)
Reaction Times before the PR:
Reaction Times after the PR:
Notes for reviewers
You can use the reaction_analyzer tool to check the reaction times of the node. Please refer README for the usage.
Interface changes
Effects on system behavior
Decreases the reaction delay of the obstacle_stop_planner when use_predicted_objects is true.
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.