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(behavior_velocity_planner): add hold stop margin distance in vtl module #1454

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented Jul 28, 2022

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

Description

Now, this ego always try to stop at the stop position by re-starting (re-approach) even if the ego is stopped near the planned stop position in the module. On the other hand, if the stopping performance of the vehicle is poor (e.g. it cannot stop for one meter) and once it starts traveling, there is a possibility that the vehicle may over the stop position, in which case there may be a issue for the vehicle to continue stopping on the spot, if the distance between the ego and stop position is closer than threshold.

So, in this PR, I fixed following points.

  • add new param hold_stop_margin_distance (default: 0.0 [m])
  • if the following condisions are satisfied, the ego keep stopping at current position.

condition 1. the ego has stopped
condition 2. the distance between the ego and stop point is shorter than hold_stop_margin_distance

test perform (hold_stop_margin_distance = 2.0 [m])

simplescreenrecorder-2022-07-28_13.35.08.mp4

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.

@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Merging #1454 (bb2558f) into main (7da5bd8) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1454      +/-   ##
==========================================
- Coverage   10.26%   10.21%   -0.05%     
==========================================
  Files        1118     1118              
  Lines       77570    77934     +364     
  Branches    17856    18101     +245     
==========================================
  Hits         7960     7960              
- Misses      62124    62459     +335     
- Partials     7486     7515      +29     
Flag Coverage Δ *Carryforward flag
differential 4.73% <0.00%> (?)
total 10.24% <0.00%> (ø) Carriedforward from 7da5bd8

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

Impacted Files Coverage Δ
...clude/scene_module/virtual_traffic_light/scene.hpp 0.00% <ø> (ø)
...src/scene_module/virtual_traffic_light/manager.cpp 0.00% <0.00%> (ø)
...r/src/scene_module/virtual_traffic_light/scene.cpp 0.00% <0.00%> (ø)
...behavior_velocity_planner/src/utilization/util.cpp 18.77% <0.00%> (-0.56%) ⬇️
...vior_velocity_planner/include/utilization/util.hpp 0.00% <0.00%> (ø)
...y_planner/src/scene_module/traffic_light/scene.cpp 0.00% <0.00%> (ø)
...c/scene_module/intersection/scene_intersection.cpp 0.00% <0.00%> (ø)

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 7da5bd8...bb2558f. Read the comment docs.

… module

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

@TakaHoribe TakaHoribe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
image

@satoshi-ota
Copy link
Contributor Author

image

@satoshi-ota satoshi-ota merged commit a514ec1 into autowarefoundation:main Aug 3, 2022
@satoshi-ota satoshi-ota deleted the feat/hold-stop-margin-distance-vtl branch August 3, 2022 02:56
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
… module (tier4#1454)

* feat(behavior_velocity_planner): add hold stop margin distance in vtl module

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

* fix(behavior_velocity_planner): change default value

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
… module (tier4#1454)

* feat(behavior_velocity_planner): add hold stop margin distance in vtl module

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

* fix(behavior_velocity_planner): change default value

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
… module (tier4#1454)

* feat(behavior_velocity_planner): add hold stop margin distance in vtl module

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

* fix(behavior_velocity_planner): change default value

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
… module (autowarefoundation#1454)

* feat(behavior_velocity_planner): add hold stop margin distance in vtl module

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

* fix(behavior_velocity_planner): change default value

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
… module (tier4#1454)

* feat(behavior_velocity_planner): add hold stop margin distance in vtl module

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

* fix(behavior_velocity_planner): change default value

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
yn-mrse referenced this pull request in tier4/autoware.universe Jun 22, 2023
… module (#1454)

* feat(behavior_velocity_planner): add hold stop margin distance in vtl module

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

* fix(behavior_velocity_planner): change default value

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
yn-mrse referenced this pull request in tier4/autoware.universe Jun 22, 2023
#604)

* feat(behavior_velocity_planner): add hold stop margin distance in vtl module (#1454)

* feat(behavior_velocity_planner): add hold stop margin distance in vtl module

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

* fix(behavior_velocity_planner): change default value

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

* fix: replace motion_utils to tier4_autoware_utils

* ci(pre-commit): autofix

---------

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants