-
Notifications
You must be signed in to change notification settings - Fork 650
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
Conversation
Codecov ReportBase: 10.40% // Head: 10.36% // Decreases project coverage by
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
*This pull request uses carry forward flags. Click here to find out 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. |
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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
43a83a3
to
da35445
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…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>
…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>
…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>
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
right
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.
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.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.