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(lane_departure_checker): empty lanelet polygon #6588

Merged

Conversation

danielsanchezaran
Copy link
Contributor

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:
image
After:
image

Before:

image

After:
image

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
@danielsanchezaran danielsanchezaran marked this pull request as ready for review March 11, 2024 08:18
@github-actions github-actions bot added component:planning Route planning, decision-making, and navigation. (auto-assigned) component:control Vehicle control algorithms and mechanisms. (auto-assigned) labels Mar 11, 2024
@kyoichi-sugahara kyoichi-sugahara added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 11, 2024
@kyoichi-sugahara kyoichi-sugahara self-assigned this Mar 11, 2024
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

LGTM!

@danielsanchezaran danielsanchezaran enabled auto-merge (squash) March 11, 2024 08:50
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

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

Project coverage is 14.77%. Comparing base (e2aee50) to head (afc0f07).
Report is 7 commits behind head on main.

Files Patch % Lines
..._departure_checker_node/lane_departure_checker.cpp 0.00% 12 Missing ⚠️
...r_path_start_planner_module/src/shift_pull_out.cpp 0.00% 1 Missing ⚠️
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              
Flag Coverage Δ *Carryforward flag
differential 10.43% <0.00%> (?)
total 14.77% <ø> (+<0.01%) ⬆️ Carriedforward from e2aee50

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

@danielsanchezaran danielsanchezaran merged commit 8bdb542 into autowarefoundation:main Mar 11, 2024
30 of 33 checks passed
@danielsanchezaran danielsanchezaran deleted the fix/empty_lanelet_polygon branch March 11, 2024 10:09
danielsanchezaran added a commit to tier4/autoware.universe that referenced this pull request Mar 11, 2024
…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>
shmpwk added a commit to tier4/autoware.universe that referenced this pull request Mar 12, 2024
…cker-lanelet-polygon-fix

fix(lane_departure_checker): empty lanelet polygon (autowarefoundation#6588)
HansRobo pushed a commit that referenced this pull request Mar 12, 2024
* 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>
kaigohirao pushed a commit to kaigohirao/autoware.universe that referenced this pull request Mar 22, 2024
…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>
danielsanchezaran added a commit to tier4/autoware.universe that referenced this pull request Apr 2, 2024
…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>
satoshi-ota pushed a commit to tier4/autoware.universe that referenced this pull request Apr 5, 2024
…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>
TomohitoAndo pushed a commit to tier4/autoware.universe that referenced this pull request Apr 8, 2024
… (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>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…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>
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) 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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants