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): add mandatory detection area for run out module #2864

Merged

Conversation

TomohitoAndo
Copy link
Contributor

@TomohitoAndo TomohitoAndo commented Feb 10, 2023

Description

Currently, if you use pointcloud as an input for run_out, points in the no_obstacle_segmentation_area are ignored.
But it would not be safe if no_obstacle_segmentation_area is so close to the ego vehicle and there is an obstacle in that area like the image below.
So I added mandatory_detection_area that the obstacle in this area is not ignored even if it is in the no_obstacle_segmentation_area to ensure safety.

Before

The obstacle in the no_obstacle_segmentation_area is ignored.
image

After

The obstacle in the mandatory_detection_area is detected even if it is in the no_obstacle_segmentation_area.
image

image

Related Links

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.

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
@github-actions github-actions bot added component:launch Launch files, scripts and initialization tools. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) labels Feb 10, 2023
@TomohitoAndo
Copy link
Contributor Author

@mkuri
Could you review this change? 🙏

@TomohitoAndo
Copy link
Contributor Author

TomohitoAndo commented Feb 10, 2023

I ran CI here. (TIER IV Internal Link)
https://evaluation.tier4.jp/evaluation/reports/e08cecd4-2bcf-51c5-8c49-ee7a90be93fb?project_id=x2_dev
Confirmed CI for run out passed.

@codecov
Copy link

codecov bot commented Feb 10, 2023

Codecov Report

Base: 11.62% // Head: 11.60% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (5669ac6) compared to base (fe32cd5).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2864      +/-   ##
==========================================
- Coverage   11.62%   11.60%   -0.02%     
==========================================
  Files        1321     1321              
  Lines       92176    92301     +125     
  Branches    24467    24536      +69     
==========================================
  Hits        10713    10713              
- Misses      70283    70406     +123     
- Partials    11180    11182       +2     
Flag Coverage Δ *Carryforward flag
differential 3.95% <0.00%> (?)
total 11.63% <ø> (+<0.01%) ⬆️ Carriedforward from fe32cd5

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

Impacted Files Coverage Δ
...ity_planner/include/scene_module/run_out/debug.hpp 0.00% <ø> (ø)
.../include/scene_module/run_out/dynamic_obstacle.hpp 0.00% <0.00%> (ø)
...y_planner/include/scene_module/run_out/manager.hpp 0.00% <ø> (ø)
...ity_planner/include/scene_module/run_out/utils.hpp 0.00% <0.00%> (ø)
...elocity_planner/src/scene_module/run_out/debug.cpp 0.00% <0.00%> (ø)
...nner/src/scene_module/run_out/dynamic_obstacle.cpp 0.00% <0.00%> (ø)
...ocity_planner/src/scene_module/run_out/manager.cpp 0.00% <0.00%> (ø)
...elocity_planner/src/scene_module/run_out/scene.cpp 0.00% <0.00%> (ø)
...elocity_planner/src/scene_module/run_out/utils.cpp 0.00% <0.00%> (ø)
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

KYabuuchi pushed a commit to KYabuuchi/autoware.universe that referenced this pull request Feb 16, 2023
…ion#2692)

* remove Go PPA

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

docs(ansible/pre_commit): remove adding golang repository for humble (autowarefoundation#2837)

fix(docs): remove adding golang repository for humble

Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>

Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>

* rename galactic to humble

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* feat: add ament_cmake fork (autowarefoundation#370)

Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <xmfcx@users.noreply.github.com>

* revert(autoware.repos): revert "feat: add ament_cmake fork (autowarefoundation#370)" (autowarefoundation#3054)

This reverts commit 0d06dd3ce10ce4e4857822173954a48cb2e91b63.

* update hash of grid_map

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* chore: remove grid_map from repos (autowarefoundation#2864)

* use Ubuntu 22.04 and CUDA 11.8

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* build(ansible/ros2_dev_tools): change ros2_dev_tools to follow humble documentation (autowarefoundation#3007)

Signed-off-by: Shin-kyoto <58775300+Shin-kyoto@users.noreply.github.com>

Signed-off-by: Shin-kyoto <58775300+Shin-kyoto@users.noreply.github.com>

build(ansible/ros2_dev_tools):  follow updated humble documentation (autowarefoundation#3020)

Signed-off-by: Shin-kyoto <58775300+Shin-kyoto@users.noreply.github.com>

Signed-off-by: Shin-kyoto <58775300+Shin-kyoto@users.noreply.github.com>

* docs(ansible/cuda): update manual installation steps

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* tmp: use ubuntu:22.04 for cuda_base_image

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* tmp: add liburcu6 repository for CUDA 20.04 repository

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* feat(ansible/playbooks): update Ubuntu version

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
Signed-off-by: M. Fatih Cırıt <xmfcx@users.noreply.github.com>
Signed-off-by: Shin-kyoto <58775300+Shin-kyoto@users.noreply.github.com>
Co-authored-by: M. Fatih Cırıt <xmfcx@users.noreply.github.com>
Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com>
Co-authored-by: Shintaro Tomie <58775300+Shin-kyoto@users.noreply.github.com>
@mkuri
Copy link
Contributor

mkuri commented Feb 16, 2023

@TomohitoAndo
I would like to check the maximum shift from the original position by applying the voxel grid filter twice.

@TomohitoAndo
Copy link
Contributor Author

@mkuri
I looked into the pcl code and it seems that the index of voxel for each points is calculated by the coordinate of points.
That means the coordinate of the voxel doesn't change even if you apply the voxel grid filter twice.
https://github.com/PointCloudLibrary/pcl/blob/pcl-1.12.0/filters/src/voxel_grid.cpp#L370-L374

So I think the maximum shift of the position is like the image below.
In this case, this is about 5.3cm because the leaf size is 0.05m.
image

Copy link
Contributor

@mkuri mkuri left a comment

Choose a reason for hiding this comment

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

LGTM

@TomohitoAndo TomohitoAndo merged commit fd60ca4 into autowarefoundation:main Feb 17, 2023
TomohitoAndo added a commit to tier4/autoware.universe that referenced this pull request Feb 17, 2023
…ule (autowarefoundation#2864)

* feat: add mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change the topic order to subscribe compare map filtered points

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* define function for transform pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add missing mutex lock

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix subscribing topic for points

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* remove unnecessary comments

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add debug publisher for pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix warning for empty frame id

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add comments

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add parameter whether to use mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* use the same stop margin for the two kind of detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* remove unused parameter

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change max queue size

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change the marker color of mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix publishing debug pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* create function to concatenate clouds

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* use current_odometory instead of current_pose

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add param for mandatory area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
TomohitoAndo added a commit to tier4/autoware.universe that referenced this pull request Feb 20, 2023
…ule (#284)

* feat(behavior_velocity): add mandatory detection area for run out module (autowarefoundation#2864)

* feat: add mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change the topic order to subscribe compare map filtered points

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* define function for transform pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add missing mutex lock

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix subscribing topic for points

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* remove unnecessary comments

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add debug publisher for pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix warning for empty frame id

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add comments

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add parameter whether to use mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* use the same stop margin for the two kind of detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* remove unused parameter

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change max queue size

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change the marker color of mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix publishing debug pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* create function to concatenate clouds

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* use current_odometory instead of current_pose

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add param for mandatory area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix: use current_pose instead of current_odometry

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* ci(pre-commit): autofix

---------

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
nabetetsu pushed a commit to xygyo77/autoware.universe that referenced this pull request Mar 1, 2023
…ule (autowarefoundation#2864)

* feat: add mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change the topic order to subscribe compare map filtered points

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* define function for transform pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add missing mutex lock

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix subscribing topic for points

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* remove unnecessary comments

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add debug publisher for pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix warning for empty frame id

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add comments

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add parameter whether to use mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* use the same stop margin for the two kind of detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* remove unused parameter

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change max queue size

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change the marker color of mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix publishing debug pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* create function to concatenate clouds

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* use current_odometory instead of current_pose

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add param for mandatory area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1222-takeshi pushed a commit to 1222-takeshi/autoware.universe that referenced this pull request Mar 6, 2023
…ule (autowarefoundation#2864)

* feat: add mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change the topic order to subscribe compare map filtered points

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* define function for transform pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add missing mutex lock

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix subscribing topic for points

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* remove unnecessary comments

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add debug publisher for pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix warning for empty frame id

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add comments

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add parameter whether to use mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* use the same stop margin for the two kind of detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* remove unused parameter

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change max queue size

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* change the marker color of mandatory detection area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* fix publishing debug pointcloud

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* create function to concatenate clouds

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* use current_odometory instead of current_pose

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* add param for mandatory area

Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: Tomohito Ando <tomohito.ando@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
component:launch Launch files, scripts and initialization tools. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants