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): don't use polygon centroid in shiftable ratio calculation #6285

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Feb 1, 2024

Description

Fix bug. In previous implementaion, the module calculated the shift ratioby using envelope polygon centroid for each objects. But it should use original object's position in that logic.

Tests performed

Effects on system behavior

Improve avoidance maneuver.

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.

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.

The code looks good to me.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Feb 1, 2024
…tion

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 5, 2024
@satoshi-ota satoshi-ota marked this pull request as ready for review February 5, 2024 02:51
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

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

Comparison is base (0d10e81) 14.91% compared to head (1cff5ff) 14.36%.
Report is 1 commits behind head on main.

Files Patch % Lines
...nning/behavior_path_avoidance_module/src/utils.cpp 0.00% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6285      +/-   ##
==========================================
- Coverage   14.91%   14.36%   -0.55%     
==========================================
  Files        1817     1907      +90     
  Lines      125357   130141    +4784     
  Branches    37640    37643       +3     
==========================================
  Hits        18697    18697              
- Misses      85651    90435    +4784     
  Partials    21009    21009              
Flag Coverage Δ *Carryforward flag
differential 13.05% <0.00%> (?)
total 14.36% <ø> (-0.55%) ⬇️ Carriedforward from a02b0e8

*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 35b42a5 into autowarefoundation:main Feb 5, 2024
22 of 27 checks passed
@satoshi-ota satoshi-ota deleted the fix/shift-ratio branch February 5, 2024 08:19
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 5, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
shmpwk added a commit to tier4/autoware.universe that referenced this pull request Feb 5, 2024
fix(avoidance): don't use polygon centroid in shiftable ratio calculation (autowarefoundation#6285)
zulfaqar-azmi-t4 pushed a commit to zulfaqar-azmi-t4/autoware.universe that referenced this pull request Feb 6, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 8, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
anhnv3991 pushed a commit to anhnv3991/autoware.universe that referenced this pull request Feb 13, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 23, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 23, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Mar 8, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
TomohitoAndo pushed a commit to tier4/autoware.universe that referenced this pull request Apr 1, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Apr 8, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…tion (autowarefoundation#6285)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
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) tag: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.

3 participants