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 avoidance path chattering #2012

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Oct 4, 2022

Signed-off-by: satoshi-ota satoshi.ota928@gmail.com

Description

Fix avoidance path chattering. In this module, the shift point's start_longitudinal is calculated by using ego closest path index. So, start_longitudinal can be a negative value.

  • nominal case
                                                 start_longitudinal (positive value)
                                                     <------> 
-------x-------------------------x------------------o--------x-----------
                                                   ego       ^
                                                   nearest_ego_path_index (shift point start_idx)
  • bad case
                             start_longitudinal (nagative value)
                                  <------> 
-------x-------------------------x--------o------------------x-----------
                                 ^       ego
                     nearest_ego_path_index (shift point start_idx)

In this PR, I fixed nearest_ego_path_index caluculation. The index is always in front of the ego position.

                                            start_longitudinal (always positive value)
                                           <----------------> 
-------x-------------------------x--------o------------------x-----------
                                         ego                 ^
                                              nearest_ego_path_index (shift point start_idx)

Before

simplescreenrecorder-2022-10-04_13.43.12.mp4

After (this PR)

simplescreenrecorder-2022-10-04_14.42.26.mp4

Link

[TIER IV internal] https://tier4.atlassian.net/browse/T4PB-20855

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.

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota force-pushed the fix/avoidance-path-chattering branch from d2a3ae5 to fe98fc6 Compare October 4, 2022 09:12
@codecov
Copy link

codecov bot commented Oct 4, 2022

Codecov Report

Base: 10.34% // Head: 10.26% // Decreases project coverage by -0.08% ⚠️

Coverage data is based on head (fe98fc6) compared to base (1c227dc).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2012      +/-   ##
==========================================
- Coverage   10.34%   10.26%   -0.09%     
==========================================
  Files        1162     1162              
  Lines       82752    83414     +662     
  Branches    19275    19794     +519     
==========================================
  Hits         8559     8559              
- Misses      64933    65546     +613     
- Partials     9260     9309      +49     
Flag Coverage Δ *Carryforward flag
differential 2.87% <0.00%> (?)
total 10.32% <0.00%> (ø) Carriedforward from 1c227dc

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@taikitanaka3 taikitanaka3 left a comment

Choose a reason for hiding this comment

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

@taikitanaka3 taikitanaka3 merged commit ee4f381 into autowarefoundation:main Oct 4, 2022
@satoshi-ota satoshi-ota deleted the fix/avoidance-path-chattering branch October 4, 2022 22:51
SSSyoshida pushed a commit to tier4/autoware.universe that referenced this pull request Oct 5, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Oct 7, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Oct 7, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request Oct 13, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Oct 14, 2022
… (#151)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
h-ohta pushed a commit to tier4/autoware.universe that referenced this pull request Oct 14, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
h-ohta added a commit to tier4/autoware.universe that referenced this pull request Oct 14, 2022
…ation#2012) (#155)

fix(avoidance): fix avoidance path chattering (autowarefoundation#2012)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Oct 23, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Oct 28, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Dec 15, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Dec 15, 2022
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Jan 16, 2023
… (autowarefoundation#151)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants