-
Notifications
You must be signed in to change notification settings - Fork 698
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_departure_checker): empty lanelet polygon #6588
fix(lane_departure_checker): empty lanelet polygon #6588
Conversation
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
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!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6588 +/- ##
==========================================
- Coverage 14.77% 14.77% -0.01%
==========================================
Files 1917 1917
Lines 132316 132320 +4
Branches 39297 39296 -1
==========================================
Hits 19550 19550
- Misses 90939 90943 +4
Partials 21827 21827
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
8bdb542
into
autowarefoundation:main
…n#6588) * fix union sometimes returning empty polygon Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix union of polygons Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix back launcher Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…cker-lanelet-polygon-fix fix(lane_departure_checker): empty lanelet polygon (autowarefoundation#6588)
* fix union sometimes returning empty polygon Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix union of polygons Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix back launcher Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
…n#6588) * fix union sometimes returning empty polygon Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix union of polygons Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix back launcher Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
…n#6588) * fix union sometimes returning empty polygon Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix union of polygons Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix back launcher Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…n#6588) * fix union sometimes returning empty polygon Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix union of polygons Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix back launcher Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
… (cherry pick 8bdb542 and 0042c20) (#1220) * feat(lane_departure_checker,start_planner): add check for path within lanes for bvspm (autowarefoundation#6366) * WIP add new methods for lane departure checker Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add lanelet polygon check for lane departure Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * use new checkPathWillLeaveLane function Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * working solution, fix union bug Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * Add check fo backwards path Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * delete departure check lanes Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add lane departure check to geometric pullout Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * merge all union polygon Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp> * pre-commit changes Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * move the cheap/fast check first to possibly boost performance Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp> Co-authored-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp> * declare missing function Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix(lane_departure_checker): empty lanelet polygon (autowarefoundation#6588) * fix union sometimes returning empty polygon Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix union of polygons Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix back launcher Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * cherry pick 8bdb542 and 0042c20 from universe Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * remove unused methods Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp> Co-authored-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
…n#6588) * fix union sometimes returning empty polygon Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix union of polygons Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix back launcher Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Description
Currently there is an issue with the LaneDepartureChecker::getFusedLaneletPolygonForPath() method of the lane departure checker which causes it to return an incomplete or sometimes disjointed polygon. The result is that sometimes part of the ego path would be cut. This PR solves the issue.
Before:


After:
Before:
After:

cap-.2024-03-11-16-32-37.mp4
Related links
Tests performed
Evaluator tests -> No degradation: TIER IV INTERNAL LINK
Notes for reviewers
Interface changes
Effects on system behavior
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.