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(static_drivable_area_expansion): fix bug in drivable bound edge processing logic #5928

Conversation

satoshi-ota
Copy link
Contributor

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

Description

Fix #5825.
I found a bug in drivable bound edge(start/goal point) processing logic.

This function got unexpected point index since there is no constraints. As a result, left bound was not built properly.

size_t findNearestSegmentIndexFromLateralDistance(
  const std::vector<T> & points, const geometry_msgs::msg::Point & target_point)

In this PR, I added yaw threshold so that it can get proper point index.

Screenshot from 2023-12-21 09-47-27

Tests performed

Psim

simplescreenrecorder-2023-12-21_11.51.44.mp4

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 21, 2023
@satoshi-ota satoshi-ota marked this pull request as ready for review December 21, 2023 03:26
@brkay54
Copy link
Member

brkay54 commented Dec 21, 2023

Thank you for the work @satoshi-ota -san, I tried the PR on the master, the avoidance module runs as we want. LGTM!

…rocessing logic

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota
Copy link
Contributor Author

satoshi-ota commented Dec 22, 2023

@brkay54 I'm happy to hear that. This PR will be reviewed by TIER IV internal member. cc @danielsanchezaran @soblin

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

Copy link
Contributor

@danielsanchezaran danielsanchezaran left a comment

Choose a reason for hiding this comment

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

LGTM

@maxime-clem maxime-clem added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 25, 2023
Copy link

codecov bot commented Dec 25, 2023

Codecov Report

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

Comparison is base (1c5f38a) 15.28% compared to head (1cdc572) 15.28%.
Report is 4 commits behind head on main.

Files Patch % Lines
...s/drivable_area_expansion/static_drivable_area.cpp 11.76% 2 Missing and 13 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5928      +/-   ##
==========================================
- Coverage   15.28%   15.28%   -0.01%     
==========================================
  Files        1750     1750              
  Lines      120392   120577     +185     
  Branches    36729    36869     +140     
==========================================
+ Hits        18404    18427      +23     
- Misses      81335    81481     +146     
- Partials    20653    20669      +16     
Flag Coverage Δ *Carryforward flag
differential 11.69% <11.76%> (?)
total 15.28% <ø> (-0.01%) ⬇️ Carriedforward from 1c5f38a

*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 a1792e2 into autowarefoundation:main Dec 25, 2023
29 of 33 checks passed
@satoshi-ota satoshi-ota deleted the fix/drivable-bound-edge-process branch December 25, 2023 23:01
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Mar 8, 2024
…rocessing logic (autowarefoundation#5928)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
TomohitoAndo pushed a commit to tier4/autoware.universe that referenced this pull request Apr 1, 2024
…rocessing logic (autowarefoundation#5928)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Apr 8, 2024
…rocessing logic (autowarefoundation#5928)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 26, 2024
…rocessing logic (autowarefoundation#5928)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…rocessing logic (autowarefoundation#5928)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…rocessing logic (autowarefoundation#5928)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…rocessing logic (autowarefoundation#5928)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Jun 6, 2024
…rocessing logic (autowarefoundation#5928)

Signed-off-by: satoshi-ota <satoshi.ota928@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.

Avoidance module fails because of wrong drivable area generation
6 participants