autoware.universe icon indicating copy to clipboard operation
autoware.universe copied to clipboard

fix(obstacle_avoidance_planner): solution of changing the sampling distance of behavior velocity planner causing obstacle avoidance planner to die

Open shulanbushangshu opened this issue 2 years ago • 13 comments

Description

When changing the sampling length in the"behavior_velocity_planner" node, the "obstacle_avoidance_planner"node will die. The length in the "obstacle_avoidance_planner" node is 5 (fixed). When it is changed to a value greater than 5 in the "behavior_velocity_planner"node, the "obstacle_avoidance_planner" node will die when the vehicle reaches the destination.

Related links

https://github.com/autowarefoundation/autoware.universe/issues/798

Tests performed

Current simulation: obs_die

Modified simulation: obs_nodie

Notes for reviewers

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.

  • [ ] The PR follows the pull request guidelines.
  • [ ] The PR has been properly tested.
  • [ ] The PR has been reviewed by the code owners.

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.
  • [ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

shulanbushangshu avatar Jul 19 '22 06:07 shulanbushangshu

Codecov Report

Merging #1369 (d3aa60e) into main (797389d) will decrease coverage by 0.19%. The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main   #1369      +/-   ##
========================================
- Coverage   9.63%   9.44%   -0.20%     
========================================
  Files       1097    1096       -1     
  Lines      77242   76707     -535     
  Branches   17748   16991     -757     
========================================
- Hits        7445    7244     -201     
- Misses     62548   62851     +303     
+ Partials    7249    6612     -637     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 9.49% <0.00%> (-0.13%) :arrow_down: Carriedforward from 885a6f6

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

Impacted Files Coverage Δ
planning/obstacle_avoidance_planner/src/node.cpp 0.00% <0.00%> (ø)
...include/tier4_autoware_utils/geometry/geometry.hpp 91.04% <0.00%> (-4.27%) :arrow_down:
...t/src/geometry/test_path_with_lane_id_geometry.cpp 48.48% <0.00%> (-4.02%) :arrow_down:
...planning_evaluator/src/planning_evaluator_node.cpp 37.11% <0.00%> (-1.04%) :arrow_down:
...vior_velocity_planner/include/utilization/util.hpp 3.84% <0.00%> (-0.33%) :arrow_down:
...anning_evaluator/src/metrics/stability_metrics.cpp 92.85% <0.00%> (-0.25%) :arrow_down:
...autoware_utils/test/src/geometry/test_geometry.cpp 40.57% <0.00%> (-0.12%) :arrow_down:
planning/behavior_velocity_planner/src/node.cpp 0.45% <0.00%> (-0.01%) :arrow_down:
planning/behavior_path_planner/src/utilities.cpp 1.05% <0.00%> (-0.01%) :arrow_down:
perception/tensorrt_yolo/src/nodelet.cpp 0.00% <0.00%> (ø)
... and 119 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 69087d5...d3aa60e. Read the comment docs.

codecov[bot] avatar Jul 19 '22 07:07 codecov[bot]

@kosuke55

shulanbushangshu avatar Jul 19 '22 07:07 shulanbushangshu

@shulanbushangshu Thank you for your PR. Your branch looks this PR is not included https://github.com/autowarefoundation/autoware.universe/pull/1320 can you include this PR and test this again?

taikitanaka3 avatar Jul 19 '22 08:07 taikitanaka3

@taikitanaka3 .Thank you for your review,I will confirm the code and retest

shulanbushangshu avatar Jul 19 '22 08:07 shulanbushangshu

@taikitanaka3 @kosuke55 ,I have confirmed the code and retest: velocity_change die_ao

Modified simulation:

nodie

shulanbushangshu avatar Jul 19 '22 09:07 shulanbushangshu

@shulanbushangshu Thank you. Modified simulation will not die at obstacle avoidance planner ~but dies at behavior velocity planner~?

taikitanaka3 avatar Jul 19 '22 09:07 taikitanaka3

@shulanbushangshu I've tested with this PR as you suggests ego can't goal without this PR image with this PR image

Do you have any good suggestion to arrive goal?

taikitanaka3 avatar Jul 19 '22 10:07 taikitanaka3

Thank you for your discussion. I'll look into the problem to realize both reaching the goal and the node keeping alive. Please wait a bit.

takayuki5168 avatar Jul 20 '22 00:07 takayuki5168

@taikitanaka3 @takayuki5168 Thank you for your review.I fix the problem of not reaching the goal.Can you check it? obs_avoid_ok

shulanbushangshu avatar Jul 20 '22 03:07 shulanbushangshu

@shulanbushangshu Thank you , but build is failed because of writing const value. @takayuki5168 ~FYI with this change I confirm this problem is fixed~ image

taikitanaka3 avatar Jul 20 '22 03:07 taikitanaka3

@taikitanaka3 Yes,I forget to change the "const".I fix it.

shulanbushangshu avatar Jul 20 '22 04:07 shulanbushangshu

@shulanbushangshu If i am not wrong this bug is only reproduces with setting behavior velocity planner sampling interval more than 5m, and that setting is not suitable for autonomous driving. If this problem happens for normal driving case with sampling interval 1.0m this bug is high priority, if not I think we can set this PR low priority. what do you think?

taikitanaka3 avatar Jul 27 '22 03:07 taikitanaka3

@taikitanaka3 OK,we can set this PR low priority

shulanbushangshu avatar Jul 27 '22 10:07 shulanbushangshu

@shulanbushangshu can you provide steps to reproduce this issue and show that your solution fixes it?

@Sharrrrk will discuss this PR internally.

xmfcx avatar Aug 09 '22 16:08 xmfcx

@shulanbushangshu @xmfcx @Sharrrrk cc @mitsudome-r Sorry to be late. Your change can solve the issue, but I guess there may be a better code. Let me implement it, and I'll let you know in a few days.

takayuki5168 avatar Aug 10 '22 07:08 takayuki5168

@shulanbushangshu @taikitanaka3 I created another PR to make commit history clear. Could you review this. https://github.com/autowarefoundation/autoware.universe/pull/1616

takayuki5168 avatar Aug 18 '22 06:08 takayuki5168

@shulanbushangshu @xmfcx @Sharrrrk We can close this PR since I merged another PR for the issue. Let me know if there is another bug. https://github.com/autowarefoundation/autoware.universe/pull/1616

takayuki5168 avatar Aug 19 '22 00:08 takayuki5168

@takayuki5168 Yes,I have simulated the new code and it works well.I will close this PR.

shulanbushangshu avatar Aug 19 '22 01:08 shulanbushangshu