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

feat(avoidance): consider objects on shift side lane #6252

Merged

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Jan 31, 2024

Description

Related tickets: https://tier4.atlassian.net/browse/RT1-4740

This PR includes following two modifications of stopped objects handling:

1. do NOT consider stopped object in safety check logic.

commit: 0cedbfc

Previously, the avoidance module considered all objects in safety check logic. But sometimes it judged UNSAFE for stopped object on shift side lane. This caused unnecessary yield maneuver. (Basically, I don't think it's meaningless to yield for stopped objects.) Therefore, I fixed logic in order to ignore them in safety check logic.

2. consider stopped object in shift length calculation even if it's NOT an avoidance target.

commit: e6f5cab

On the other hand, it need to consider stopped object in avoidance path generation step because if the module doesn't take care of the stopped objects at all, its avoidance path is maybe closer to shift side stopped objects. So, I fixed logic of shiftable length calculation so that it can output distance to stopped objects.

simplescreenrecorder-2024-01-31_17.45.41.mp4

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.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Jan 31, 2024
@satoshi-ota satoshi-ota force-pushed the feat/consider-ignore-object branch from 2207380 to c209a0c Compare February 1, 2024 01:33
@satoshi-ota satoshi-ota marked this pull request as ready for review February 1, 2024 01:39
@satoshi-ota satoshi-ota force-pushed the feat/consider-ignore-object branch from c209a0c to 85a6d9d Compare February 1, 2024 23:20
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!
sorry for late approval

@satoshi-ota satoshi-ota force-pushed the feat/consider-ignore-object branch from 85a6d9d to 6acafbc Compare February 7, 2024 01:02
@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 7, 2024
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

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

Comparison is base (7cb77dd) 14.86% compared to head (6acafbc) 14.86%.
Report is 2 commits behind head on main.

Files Patch % Lines
...nning/behavior_path_avoidance_module/src/utils.cpp 6.00% 37 Missing and 10 partials ⚠️
...nning/behavior_path_avoidance_module/src/scene.cpp 16.66% 7 Missing and 3 partials ⚠️
...nning/behavior_path_avoidance_module/src/debug.cpp 0.00% 7 Missing ⚠️
...path_avoidance_by_lane_change_module/src/scene.cpp 40.00% 1 Missing and 2 partials ⚠️
.../include/behavior_path_avoidance_module/helper.hpp 0.00% 1 Missing ⚠️
...path_avoidance_module/src/shift_line_generator.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6252      +/-   ##
==========================================
- Coverage   14.86%   14.86%   -0.01%     
==========================================
  Files        1845     1845              
  Lines      126636   126649      +13     
  Branches    37876    37890      +14     
==========================================
+ Hits        18823    18824       +1     
- Misses      86655    86657       +2     
- Partials    21158    21168      +10     
Flag Coverage Δ *Carryforward flag
differential 12.98% <9.21%> (?)
total 14.86% <ø> (+<0.01%) ⬆️ Carriedforward from 7cb77dd

*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 ded60c6 into autowarefoundation:main Feb 8, 2024
28 of 32 checks passed
@satoshi-ota satoshi-ota deleted the feat/consider-ignore-object branch February 8, 2024 00:06
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 8, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 8, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 9, 2024
feat(avoidance): consider objects on shift side lane (autowarefoundation#6252)
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 23, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Feb 23, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
StepTurtle pushed a commit to StepTurtle/autoware.universe that referenced this pull request Feb 28, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Mar 8, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
TomohitoAndo pushed a commit to tier4/autoware.universe that referenced this pull request Apr 1, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Apr 8, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…ion#6252)

* fix(avoidance): check safety for only moving objects

Signed-off-by: satoshi-ota <[email protected]>

* feat(avoidance): consider ignore object in avoid margin calculation

Signed-off-by: satoshi-ota <[email protected]>

* fix(avoidance): use nearest overhang point

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
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