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): generate detection lane using RightOfWay and traffic light arrow #2011

Merged
merged 4 commits into from
Oct 12, 2022

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Oct 4, 2022

Description

Changed how to set RightOfWay tag on Lanelet2 map at the intersections w/o traffic lights and w/o left/right only traffic lights.
All of the 11 cases listed below are handled.

straight

image
Screenshot from 2022-10-04 13-44-02

right

image
Screenshot from 2022-10-04 13-44-11

You can see how the detection lanes change if the traffic light changed to turn right only.

tl_right_arrow_change.mp4

left

turn left only traffic light was not available so that case is not tested.

image
Screenshot from 2022-10-04 13-44-19

Related links

Jira link: https://tier4.atlassian.net/browse/T4PB-21423

Notes for reviewers

I will update lanelet2_extension document as well.

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.

@codecov
Copy link

codecov bot commented Oct 4, 2022

Codecov Report

Base: 10.40% // Head: 10.36% // Decreases project coverage by -0.03% ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2011      +/-   ##
==========================================
- Coverage   10.40%   10.36%   -0.04%     
==========================================
  Files        1169     1169              
  Lines       83592    83906     +314     
  Branches    19591    19852     +261     
==========================================
  Hits         8700     8700              
- Misses      65384    65675     +291     
- Partials     9508     9531      +23     
Flag Coverage Δ *Carryforward flag
differential 4.22% <0.00%> (?)
total 10.39% <0.00%> (ø) Carriedforward from 4e080d2

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

Impacted Files Coverage Δ
...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.

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

continue;
// exclude yield lanelets and ego lanelets from detection_lanelets
// if assigned lanelet is "straight" with traffic light, detection area is not necessary
if (turn_direction == std::string("straight") && has_tl) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this condition necessary?
Explicitly indicate detection are is not necessary under this consition?

Copy link
Contributor

Choose a reason for hiding this comment

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

@soblin
How about this comment?

…ateStopLine (3) do not generate detection area if straight and has_traffic_light

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@kyoichi-sugahara
Copy link
Contributor

without this PR
Screenshot from 2022-10-11 20-43-51

confirmed detection area is shorten when right arrow green signal is on.
image

Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara 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 c81dd39 into autowarefoundation:main Oct 12, 2022
@soblin soblin deleted the feat/right_of_way branch October 12, 2022 03:39
scepter914 pushed a commit to scepter914/autoware.universe that referenced this pull request Nov 1, 2022
…fic light arrow (autowarefoundation#2011)

* (1) renamed to getDetectionLanelets (2) use detection_areas for generateStopLine (3) do not generate detection area if straight and has_traffic_light

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

* added isTrafficArrowAcitivated

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

* checked isTrafficLightArrowActivated()

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

* do not get preciding lane if tl_arrow_solid_on

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

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: scepter914 <scepter914@gmail.com>
soblin added a commit to tier4/autoware.universe that referenced this pull request Nov 22, 2022
…fic light arrow (autowarefoundation#2011)

* (1) renamed to getDetectionLanelets (2) use detection_areas for generateStopLine (3) do not generate detection area if straight and has_traffic_light

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

* added isTrafficArrowAcitivated

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

* checked isTrafficLightArrowActivated()

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

* do not get preciding lane if tl_arrow_solid_on

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

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
…fic light arrow (autowarefoundation#2011)

* (1) renamed to getDetectionLanelets (2) use detection_areas for generateStopLine (3) do not generate detection area if straight and has_traffic_light

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

* added isTrafficArrowAcitivated

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

* checked isTrafficLightArrowActivated()

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

* do not get preciding lane if tl_arrow_solid_on

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

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
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.

3 participants