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): keep stopping in hold stop margin distance #1433

Conversation

satoshi-ota
Copy link
Contributor

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

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: 2.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-26_15.40.24.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.

@satoshi-ota satoshi-ota requested review from h-ohta and TakaHoribe July 26, 2022 06:57
@satoshi-ota
Copy link
Contributor Author

satoshi-ota commented Jul 26, 2022

@satoshi-ota satoshi-ota changed the title fix(behavior_velocity_planner): keep stopping in hold stop margin distance feat(behavior_velocity_planner): keep stopping in hold stop margin distance Jul 26, 2022
@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #1433 (8abc58a) into main (5571338) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1433      +/-   ##
==========================================
- Coverage   10.27%   10.24%   -0.04%     
==========================================
  Files        1118     1119       +1     
  Lines       77581    77863     +282     
  Branches    17854    18064     +210     
==========================================
  Hits         7974     7974              
- Misses      62122    62378     +256     
- Partials     7485     7511      +26     
Flag Coverage Δ *Carryforward flag
differential 4.81% <0.00%> (?)
total 10.26% <0.00%> (ø) Carriedforward from 5571338

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

Impacted Files Coverage Δ
...planner/include/scene_module/stop_line/manager.hpp 0.00% <ø> (ø)
...y_planner/include/scene_module/stop_line/scene.hpp 0.00% <ø> (ø)
...ocity_planner/src/scene_module/stop_line/debug.cpp 0.00% <0.00%> (ø)
...ity_planner/src/scene_module/stop_line/manager.cpp 0.00% <0.00%> (ø)
...ocity_planner/src/scene_module/stop_line/scene.cpp 0.00% <0.00%> (ø)
...vior_velocity_planner/include/utilization/util.hpp 0.00% <0.00%> (ø)
... and 2 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 5571338...8abc58a. Read the comment docs.

@satoshi-ota
Copy link
Contributor Author

satoshi-ota commented Jul 29, 2022

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
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

simplescreenrecorder-2022-08-03_12.26.16.mp4

tempolaty use following param for test perform

  • stop_duration_sec: 5.0 [s]
  • hold_stop_margin_distance: 5.0 [m]

@satoshi-ota satoshi-ota merged commit e7dfa19 into autowarefoundation:main Aug 3, 2022
@satoshi-ota satoshi-ota deleted the fix/stop-hold-margin-stop-line-module branch August 3, 2022 03:28
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Aug 22, 2022
…argin distance (autowarefoundation#1433)"

This reverts commit e7dfa19.

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
satoshi-ota added a commit to satoshi-ota/autoware.universe that referenced this pull request Aug 22, 2022
…distance (autowarefoundation#1433)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
taikitanaka3 pushed a commit that referenced this pull request Aug 22, 2022
…distance (#1433) (#1645)

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

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…stance (tier4#1433)

* fix(behavior_velocity_planner): use alias

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

* fix(behavior_velocity_planner): add hold stop margin

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(bahevior_velocity_planner): clean up

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

* fix(behavior_velocity_planner): use common function

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…distance (tier4#1433) (tier4#1645)

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

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

* fix(behavior_velocity_planner): use alias

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

* fix(behavior_velocity_planner): add hold stop margin

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(bahevior_velocity_planner): clean up

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

* fix(behavior_velocity_planner): use common function

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

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

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

* fix(behavior_velocity_planner): use alias

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

* fix(behavior_velocity_planner): add hold stop margin

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(bahevior_velocity_planner): clean up

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

* fix(behavior_velocity_planner): use common function

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

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

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
…stance (autowarefoundation#1433)

* fix(behavior_velocity_planner): use alias

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

* fix(behavior_velocity_planner): add hold stop margin

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(bahevior_velocity_planner): clean up

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

* fix(behavior_velocity_planner): use common function

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
…distance (autowarefoundation#1433) (autowarefoundation#1645)

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

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

* fix(behavior_velocity_planner): use alias

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

* fix(behavior_velocity_planner): add hold stop margin

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(behavior_velocity_planner): use motion_utils

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

* fix(bahevior_velocity_planner): clean up

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

* fix(behavior_velocity_planner): use common function

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

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

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
technolojin added a commit to technolojin/autoware.universe that referenced this pull request Jul 31, 2024
…essing time (autowarefoundation#8240) (autowarefoundation#1433)

* add local r-tree for fast searching



change to _func__

add more debug

use local rtree

fix

tmp update

fix bug

clean unused

clean up



* clean up



* style(pre-commit): autofix

* chore: Optimize object filtering and improve performance

The code changes in `lanelet_filter.cpp` optimize the object filtering process by using the `empty()` function instead of checking the size of the `transformed_objects.objects` vector. This change improves performance and simplifies the code logic.

Refactor the code to use `empty()` instead of `size()` for checking if the `transformed_objects.objects` vector is empty. This change improves readability and performance.



---------

Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
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