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 output new candidate path if there is huge offset between the ego and previous output path #4150

Merged

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Jul 3, 2023

Description

🤖 Generated by Copilot at 9b3bcd6

Added a new parameter safety_check_ego_offset to the AvoidanceParameters struct and used it to limit the output of new candidate paths for obstacle avoidance in the AvoidanceModule class. This is a safety measure to prevent sudden or unrealistic path changes in some scenarios.

Please approve ⬇️ before this PR.
autowarefoundation/autoware_launch#431

Tests performed

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.

Copy link
Contributor

@rej55 rej55 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 seems okay.
If it passes the test, you can merge this PR.

@satoshi-ota satoshi-ota force-pushed the fix/avoidance-keep-path branch from 9b3bcd6 to 4de7085 Compare July 3, 2023 13:19
@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Patch coverage: 12.50% and no project coverage change.

Comparison is base (6f11675) 14.29% compared to head (f87a1da) 14.29%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4150   +/-   ##
=======================================
  Coverage   14.29%   14.29%           
=======================================
  Files        1574     1574           
  Lines      108448   108455    +7     
  Branches    31374    31380    +6     
=======================================
+ Hits        15503    15504    +1     
- Misses      76093    76095    +2     
- Partials    16852    16856    +4     
Flag Coverage Δ *Carryforward flag
differential 13.49% <12.50%> (?)
total 14.29% <ø> (+<0.01%) ⬆️ Carriedforward from 6f11675

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

Impacted Files Coverage Δ
...ction_based_fusion/src/roi_cluster_fusion/node.cpp 0.00% <ø> (ø)
...age_projection_based_fusion/src/utils/geometry.cpp 0.00% <ø> (ø)
..._planner/utils/avoidance/avoidance_module_data.hpp 0.00% <ø> (ø)
...ath_planner/src/scene_module/avoidance/manager.cpp 7.65% <0.00%> (-0.04%) ⬇️
...er/src/scene_module/avoidance/avoidance_module.cpp 11.66% <14.28%> (+0.01%) ⬆️

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

@satoshi-ota satoshi-ota force-pushed the fix/avoidance-keep-path branch 2 times, most recently from 5e00e8d to f0f365c Compare July 5, 2023 00:12
@github-actions github-actions bot added the type:documentation Creating or refining documentation. (auto-assigned) label Jul 5, 2023
@satoshi-ota satoshi-ota force-pushed the fix/avoidance-keep-path branch 2 times, most recently from 0641b71 to 9d9e456 Compare July 5, 2023 02:54
…et between the ego and previous output path

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota force-pushed the fix/avoidance-keep-path branch from 9d9e456 to f87a1da Compare July 5, 2023 09:14
@satoshi-ota satoshi-ota enabled auto-merge (squash) July 5, 2023 09:15
@satoshi-ota satoshi-ota merged commit c9280db into autowarefoundation:main Jul 5, 2023
@satoshi-ota satoshi-ota deleted the fix/avoidance-keep-path branch July 5, 2023 10:11
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Jul 5, 2023
…et between the ego and previous output path (autowarefoundation#4150)

* fix(avoidance): don't output new candidate path if there is huge offset between the ego and previous output path

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

* docs(avoidance): add parameter description

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 Jul 5, 2023
…et between the ego and previous output path (autowarefoundation#4150) (#645)

* fix(avoidance): don't output new candidate path if there is huge offset between the ego and previous output path



* docs(avoidance): add parameter description



---------

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) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants