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(avoidance): fix condition to trim front shift line #5949

Merged

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Dec 24, 2023

Description

Avoidance module keeps distance between ego and shift line start point farther than threshold. And it trims shift lines whose start point is closer than threshold as invalid path. But both of threshold (shift line generation and validation) refer common value (calculate in helper_->getMinimumPrepareDistance()).Then, sometimes front shift line is trimmed unexpectedly.

As a result, invalid output path is generated. In this PR, I fixed validate function and add 1e-3 to check condition.

image

Tests performed

Psim

image

Effects on system behavior

Nothing.

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.

  • There are no open discussions or they are tracked via tickets.

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

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Dec 24, 2023
@satoshi-ota satoshi-ota marked this pull request as ready for review December 24, 2023 10:08
Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

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

LGTM

@satoshi-ota satoshi-ota added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 26, 2023
@satoshi-ota satoshi-ota enabled auto-merge (squash) December 26, 2023 00:26
Copy link

codecov bot commented Dec 26, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (2e2f184) 15.28% compared to head (2830d2f) 15.27%.
Report is 8 commits behind head on main.

Files Patch % Lines
...path_avoidance_module/src/shift_line_generator.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5949      +/-   ##
==========================================
- Coverage   15.28%   15.27%   -0.01%     
==========================================
  Files        1750     1750              
  Lines      120432   120465      +33     
  Branches    36729    36761      +32     
==========================================
+ Hits        18404    18406       +2     
- Misses      81375    81382       +7     
- Partials    20653    20677      +24     
Flag Coverage Δ *Carryforward flag
differential 13.22% <0.00%> (?)
total 15.28% <ø> (+<0.01%) ⬆️ Carriedforward from 2e2f184

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

@satoshi-ota satoshi-ota merged commit 64c6dba into autowarefoundation:main Dec 26, 2023
49 of 51 checks passed
@satoshi-ota satoshi-ota deleted the fix/not-trim-front-shift-line branch December 26, 2023 01:53
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Mar 8, 2024
TomohitoAndo pushed a commit to tier4/autoware.universe that referenced this pull request Apr 1, 2024
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Apr 8, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 26, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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