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): wait and see ambiguous stopped vehicle #6631

Merged
merged 7 commits into from
Mar 18, 2024

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Mar 15, 2024

Description

Related PR: autowarefoundation/autoware_launch#925 (Please approve at first.)
Related ticket: https://tier4.atlassian.net/browse/RT1-5553

Previously, the module generates avoidance path as soon as it detects ambiguous stopped vehicle. However, this sometimes caused unnecessary avoidance maneuver. Basically, we should wait and see such kind vehicles at first. And if necessary, the module should generates avoidance path after closing them.

image

        avoidance_for_ambiguous_vehicle:
          enable: false                                  # [-]
          closest_distance_to_wait_and_see: 10.0         # [m]
...

After this PR

The module waits avoidance path generation until the ego gets closer to ambiguous vehicle. When the distance between ego and avoidance start point is less than closest_distance_to_wait_and_see, the module generates avoidance path.

simplescreenrecorder-2024-03-17_16.25.03.mp4

Tests performed

webauto ci scenario run --project-id prd_jt --scenario-id 154d2005-59a8-485c-b179-09f653b8571c --scenario-version-id 3 --scenario-parameters '__tier4_modifier_ego_speed=11.1111'

Effects on system behavior

Not applicable.

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 Mar 15, 2024
Copy link

coderabbitai bot commented Mar 15, 2024

Important

Auto Review Skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository.

To trigger a single review, invoke the @coderabbitai review command.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@github-actions github-actions bot added component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) component:control Vehicle control algorithms and mechanisms. (auto-assigned) component:common Common packages from the autoware-common repository. (auto-assigned) labels Mar 15, 2024
@github-actions github-actions bot removed component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) component:control Vehicle control algorithms and mechanisms. (auto-assigned) labels Mar 17, 2024
@github-actions github-actions bot removed the component:common Common packages from the autoware-common repository. (auto-assigned) label Mar 18, 2024
@satoshi-ota satoshi-ota marked this pull request as ready for review March 18, 2024 04:09
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 tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 18, 2024
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 88 lines in your changes are missing coverage. Please review.

Project coverage is 14.79%. Comparing base (f82f420) to head (378632a).
Report is 5 commits behind head on main.

Files Patch % Lines
...nning/behavior_path_avoidance_module/src/utils.cpp 0.00% 58 Missing ⚠️
.../include/behavior_path_avoidance_module/helper.hpp 0.00% 10 Missing and 2 partials ⚠️
...th_avoidance_by_lane_change_module/src/manager.cpp 0.00% 0 Missing and 7 partials ⚠️
...ehavior_path_avoidance_module/parameter_helper.hpp 0.00% 0 Missing and 7 partials ⚠️
...nning/behavior_path_avoidance_module/src/debug.cpp 0.00% 2 Missing ⚠️
...nning/behavior_path_avoidance_module/src/scene.cpp 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6631      +/-   ##
==========================================
+ Coverage   14.77%   14.79%   +0.01%     
==========================================
  Files        1925     1925              
  Lines      132754   133473     +719     
  Branches    39548    40042     +494     
==========================================
+ Hits        19620    19742     +122     
- Misses      91166    91655     +489     
- Partials    21968    22076     +108     
Flag Coverage Δ *Carryforward flag
differential 13.08% <0.00%> (?)
total 14.78% <ø> (+<0.01%) ⬆️ Carriedforward from f82f420

*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 1ca97cf into autowarefoundation:main Mar 18, 2024
35 of 37 checks passed
@satoshi-ota satoshi-ota deleted the feat/wait-and-see branch March 18, 2024 23:13
satoshi-ota added a commit to tier4/autoware.universe that referenced this pull request Mar 20, 2024
…dation#6631)

* feat(avoidance): wait and see the ambiguous stopped vehicle

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

* fix(avoidance): wait and see objects around ego straight lane

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

* tmp

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

* refactor(avoidance): filtering logic for vehicle type objects

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

* fix(avoidance): wait with unsafe avoidance path

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

* fix(avoidance): use getRightLanelet

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

* refactor(avoidance): parameterize

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 20, 2024
feat(avoidance): wait and see ambiguous stopped vehicle (autowarefoundation#6631)
kaigohirao pushed a commit to kaigohirao/autoware.universe that referenced this pull request Mar 22, 2024
…dation#6631)

* feat(avoidance): wait and see the ambiguous stopped vehicle

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

* fix(avoidance): wait and see objects around ego straight lane

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

* tmp

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

* refactor(avoidance): filtering logic for vehicle type objects

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

* fix(avoidance): wait with unsafe avoidance path

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

* fix(avoidance): use getRightLanelet

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

* refactor(avoidance): parameterize

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

---------

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

* feat(avoidance): wait and see the ambiguous stopped vehicle

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

* fix(avoidance): wait and see objects around ego straight lane

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

* tmp

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

* refactor(avoidance): filtering logic for vehicle type objects

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

* fix(avoidance): wait with unsafe avoidance path

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

* fix(avoidance): use getRightLanelet

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

* refactor(avoidance): parameterize

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 2, 2024
…dation#6631)

* feat(avoidance): wait and see the ambiguous stopped vehicle

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

* fix(avoidance): wait and see objects around ego straight lane

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

* tmp

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

* refactor(avoidance): filtering logic for vehicle type objects

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

* fix(avoidance): wait with unsafe avoidance path

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

* fix(avoidance): use getRightLanelet

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

* refactor(avoidance): parameterize

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
…dation#6631)

* feat(avoidance): wait and see the ambiguous stopped vehicle

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

* fix(avoidance): wait and see objects around ego straight lane

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

* tmp

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

* refactor(avoidance): filtering logic for vehicle type objects

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

* fix(avoidance): wait with unsafe avoidance path

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

* fix(avoidance): use getRightLanelet

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

* refactor(avoidance): parameterize

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
…dation#6631)

* feat(avoidance): wait and see the ambiguous stopped vehicle

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

* fix(avoidance): wait and see objects around ego straight lane

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

* tmp

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

* refactor(avoidance): filtering logic for vehicle type objects

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

* fix(avoidance): wait with unsafe avoidance path

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

* fix(avoidance): use getRightLanelet

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

* refactor(avoidance): parameterize

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