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(goal_planner): fix zero velocity in middle of path #8563

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Aug 21, 2024

Description

When extending a path, if the end of the original target path contains 0 velocity, then 0 velocity remains in the middle of the extended_path. This causes more stuck before the goal.
This issue was observed when the goal planner was activated after the LC was activated, for example.

  // NOTE: The previous module may insert a zero velocity at the end of the path, so remove it by
  // setting remove_connected_zero_velocity=true. Inserting a velocity of 0 into the goal is the
  // role of the goal planner, and the intermediate zero velocity after extension is unnecessary.

before

image

after

image

Related links

Parent Issue:

  • Link

Private Links:

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Aug 21, 2024
Copy link

github-actions bot commented Aug 21, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kosuke55 kosuke55 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 21, 2024
@kosuke55 kosuke55 force-pushed the fix/zero_vel_goal_planner branch 2 times, most recently from 17f422f to 1bf6654 Compare August 21, 2024 12:00
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

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

Project coverage is 24.09%. Comparing base (603dd13) to head (f935ee8).
Report is 8 commits behind head on main.

Files Patch % Lines
...are_behavior_path_goal_planner_module/src/util.cpp 0.00% 3 Missing ⚠️
...th_goal_planner_module/src/goal_planner_module.cpp 0.00% 1 Missing ⚠️
...r_path_goal_planner_module/src/shift_pull_over.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8563      +/-   ##
==========================================
- Coverage   24.10%   24.09%   -0.01%     
==========================================
  Files        1399     1403       +4     
  Lines      102460   102498      +38     
  Branches    38936    38928       -8     
==========================================
  Hits        24696    24696              
- Misses      75281    75319      +38     
  Partials     2483     2483              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 24.10% <ø> (+<0.01%) ⬆️ Carriedforward from 7234eb4

*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.

@kosuke55 kosuke55 force-pushed the fix/zero_vel_goal_planner branch 2 times, most recently from 9b59327 to 74f0566 Compare August 21, 2024 12:25
@kosuke55
Copy link
Contributor Author

kosuke55 commented Aug 21, 2024

@soblin

I added comment why it is ok to remove zero velocity of previous output path

  // NOTE: The previous module may insert a zero velocity at the end of the path, so remove it by
  // setting remove_connected_zero_velocity=true. Inserting a velocity of 0 into the goal is the
  // role of the goal planner, and the intermediate zero velocity after extension is unnecessary.

@kosuke55 kosuke55 force-pushed the fix/zero_vel_goal_planner branch 3 times, most recently from 0cc76ef to 29a3ccf Compare August 27, 2024 04:17
@kosuke55 kosuke55 enabled auto-merge (squash) August 27, 2024 04:17
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@kosuke55 kosuke55 force-pushed the fix/zero_vel_goal_planner branch from 29a3ccf to 7234eb4 Compare August 27, 2024 04:28
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@kosuke55 kosuke55 merged commit b905562 into autowarefoundation:main Aug 27, 2024
24 of 25 checks passed
@kosuke55 kosuke55 deleted the fix/zero_vel_goal_planner branch August 27, 2024 05:04
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Aug 27, 2024
…ation#8563)

* fix(goal_planner): fix zero velocity in middle of path

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add comment

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
a-maumau pushed a commit to a-maumau/autoware.universe that referenced this pull request Sep 2, 2024
…ation#8563)

* fix(goal_planner): fix zero velocity in middle of path

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add comment

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
batuhanbeytekin pushed a commit to batuhanbeytekin/autoware.universe that referenced this pull request Sep 2, 2024
…ation#8563)

* fix(goal_planner): fix zero velocity in middle of path

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add comment

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: Batuhan Beytekin <batuhanbeytekin@gmail.com>
ktro2828 pushed a commit to ktro2828/autoware.universe that referenced this pull request Sep 18, 2024
…ation#8563)

* fix(goal_planner): fix zero velocity in middle of path

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add comment

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
AkariNakano821 pushed a commit to AkariNakano821/autoware.universe that referenced this pull request Nov 14, 2024
…ation#8563)

* fix(goal_planner): fix zero velocity in middle of path

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add comment

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
kosuke55 added a commit to tier4/autoware.universe that referenced this pull request Nov 21, 2024
…ation#8563)

* fix(goal_planner): fix zero velocity in middle of path

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add comment

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
TetsuKawa pushed a commit to tier4/autoware.universe that referenced this pull request Dec 1, 2024
…ation#8563)

* fix(goal_planner): fix zero velocity in middle of path

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* add comment

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
TetsuKawa added a commit to tier4/autoware.universe that referenced this pull request Dec 6, 2024
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) 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.

2 participants