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

fix(intersection): fix uninitialized tl_arrow_info variable issue #4283

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Jul 14, 2023

Description

IntersectionLanelets::tl_arrow_solid_on was uninitialized and was not updated carelessly. Due to this bug when left/right arrow is not solid on when turning left/right each variable was like this when I debug printed.

tl_arrow_solid_on = 0, intersection_lanelets_.value().tl_arrow_solid_on = 144

So for most of the time when the path is covering the intersection this condition was true in every iteration. So first_conflicting_area was null at first, and then initialized to an area after a few iterations.

But if lanelets_.value().tl_arrow_solid_on is left uninitialized to 0, that condition will be applied only at the first time that the corresponding intersection module is activated, so first_conflicting_area was permanently 0.

Related links

https://tier4.atlassian.net/browse/RT1-2875?focusedCommentId=128666&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-128666

Tests performed

no degradation on the CI: https://evaluation.tier4.jp/evaluation/reports/50fcf368-aa63-574e-9de2-89eb26f5e8bc?project_id=prd_jt

Notes for reviewers

Interface changes

Not applicable.

Effects on system behavior

Not applicable.

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.

soblin added 2 commits July 14, 2023 15:19
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Jul 14, 2023
@soblin soblin changed the title Fix/intersection/uninitialized tl arrow info fix(intersection): fix uninitialized tl_arrow_info variable issue Jul 14, 2023
@soblin soblin marked this pull request as ready for review July 14, 2023 06:36
@soblin soblin requested a review from 1222-takeshi July 14, 2023 06:37
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (e282c4f) 15.20% compared to head (b094d1f) 15.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4283      +/-   ##
==========================================
- Coverage   15.20%   15.20%   -0.01%     
==========================================
  Files        1489     1489              
  Lines      102668   102670       +2     
  Branches    31527    31530       +3     
==========================================
  Hits        15613    15613              
- Misses      70104    70106       +2     
  Partials    16951    16951              
Flag Coverage Δ *Carryforward flag
differential 7.59% <0.00%> (?)
total 15.21% <ø> (+<0.01%) ⬆️ Carriedforward from e282c4f

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

Impacted Files Coverage Δ
...ity_intersection_module/src/scene_intersection.cpp 0.00% <0.00%> (ø)
...ction_module/src/scene_merge_from_private_road.cpp 0.00% <0.00%> (ø)
...behavior_velocity_intersection_module/src/util.cpp 0.00% <0.00%> (ø)
...ior_velocity_intersection_module/src/util_type.hpp 0.00% <0.00%> (ø)

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

@soblin
Copy link
Contributor Author

soblin commented Jul 18, 2023

@shmpwk @takayuki5168 I checked that there is no degradation, so can you approve this PR?

@soblin soblin merged commit 0978d9c into autowarefoundation:main Jul 18, 2023
@soblin soblin deleted the fix/intersection/uninitialized-tl-arrow-info branch July 18, 2023 01:23
soblin added a commit to tier4/autoware.universe that referenced this pull request Jul 18, 2023
…towarefoundation#4283)

* update first conflicting/attention area

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

* debug 1113, 1393

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

* migrated to latest

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

---------

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
soblin added a commit to tier4/autoware.universe that referenced this pull request Jul 18, 2023
…towarefoundation#4283)

* update first conflicting/attention area

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

* debug 1113, 1393

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

* migrated to latest

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

---------

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request Jul 18, 2023
…towarefoundation#4283) (#667)

fix(intersection): fix uninitialized tl_arrow_info variable issue (autowarefoundation#4283)

* update first conflicting/attention area



* debug 1113, 1393



* migrated to latest



---------

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
soblin added a commit to tier4/autoware.universe that referenced this pull request Aug 23, 2023
…towarefoundation#4283)

* update first conflicting/attention area

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

* debug 1113, 1393

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

* migrated to latest

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

---------

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
soblin added a commit to tier4/autoware.universe that referenced this pull request Aug 23, 2023
…towarefoundation#4283)

* update first conflicting/attention area

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

* debug 1113, 1393

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

* migrated to latest

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
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