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(intersection): continue detection after pass judge #1719

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Aug 29, 2022

(1) keep detection(planning) after pass judge line and before keep_detection_line if low speed (2) minor refactor

Signed-off-by: Mamoru Sobue mamoru.sobue@tier4.jp

Description

I changed the intersection module not to stop planning if the ego is over pass judge line because

  • (1) sometimes ego cannot stop exactly before the stop line, but with some overshoot
  • (2) a stop line from another module (like merge_from_private) is generated at the same place as intersection's one. In this case intersection module should keep detection
  • (3) maybe the ego will make obstacle_stop after passing pass judge line

Solution:
If ego is within a margin (like 1.0m) from stop line AND velocity is very low (like 3km/h), keep planning.

Related links

Parameter PR: tier4/autoware_launch#456

Tests performed

before this PR: after stopping at merge_from_private stop line it also passed pass judge line of intersection, so detection is disabled.

before-continue-detection-after-pass-judge-2022-08-29_19.29.16.mp4

After this PR: detection is continued.

continue-detection-after-pass-judge-2022-08-29_19.33.49.mp4

Notes for reviewers

The parameters should be determined based on experiment and rideability.

Pre-review checklist for the PR author

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.

@soblin soblin force-pushed the feat/continue-detection-after-pass-judge branch 2 times, most recently from 49bdbe1 to d8ade61 Compare August 29, 2022 10:21
@soblin soblin marked this pull request as ready for review August 29, 2022 10:50
@soblin soblin requested review from TakaHoribe and tkimura4 August 29, 2022 10:50
@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #1719 (188e075) into main (3cae6ec) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1719      +/-   ##
==========================================
- Coverage   10.28%   10.24%   -0.05%     
==========================================
  Files        1202     1202              
  Lines       86472    86815     +343     
  Branches    19909    20187     +278     
==========================================
  Hits         8894     8894              
- Misses      68318    68624     +306     
- Partials     9260     9297      +37     
Flag Coverage Δ *Carryforward flag
differential 4.11% <0.00%> (?)
total 10.26% <0.00%> (ø) Carriedforward from 3cae6ec

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

Impacted Files Coverage Δ
...e/scene_module/intersection/scene_intersection.hpp 0.00% <ø> (ø)
..._planner/src/scene_module/intersection/manager.cpp 0.00% <0.00%> (ø)
...c/scene_module/intersection/scene_intersection.cpp 0.00% <0.00%> (ø)
...ule/intersection/scene_merge_from_private_road.cpp 0.00% <0.00%> (ø)
...ity_planner/src/scene_module/intersection/util.cpp 0.00% <0.00%> (ø)

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

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin soblin force-pushed the feat/continue-detection-after-pass-judge branch from d8ade61 to 188e075 Compare August 29, 2022 19:16
Copy link
Contributor

@tkimura4 tkimura4 left a comment

Choose a reason for hiding this comment

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

LGTM

@soblin soblin merged commit 38a3c60 into autowarefoundation:main Aug 30, 2022
@soblin soblin deleted the feat/continue-detection-after-pass-judge branch August 30, 2022 15:49
tkimura4 referenced this pull request in tier4/autoware.universe Sep 6, 2022
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
soblin added a commit to soblin/autoware.universe that referenced this pull request Dec 22, 2022
soblin added a commit to soblin/autoware.universe that referenced this pull request Dec 22, 2022
soblin added a commit to soblin/autoware.universe that referenced this pull request Dec 22, 2022
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