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(crosswalk_traffic_light_estimator): fix invalid access #1825

Conversation

tkimura4
Copy link
Contributor

@tkimura4 tkimura4 commented Sep 9, 2022

Signed-off-by: tomoya.kimura tomoya.kimura@tier4.jp

Description

(crosswalk_traffic_light_estimator)
Currently, in the for-loop of last_detect_color_, last_detect_color_.erase() is called.
It causes invalid access and the crosswalk_traffic_light_estimator node dies frequently now.
I fixed it.

Related links

Tests performed

I confirmed the improvement with the rosbag.
(I'm sorry but I can't provide the rosbag here because it contains camera images including personal data.)

Notes for reviewers

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.

Copy link
Contributor

@satoshi-ota satoshi-ota left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Thank you for your bug fix 🙏
Could you fix semantics error (CI/CD) ?

@codecov
Copy link

codecov bot commented Sep 9, 2022

Codecov Report

Merging #1825 (89c9d02) into main (34bf3ba) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1825      +/-   ##
==========================================
- Coverage   10.46%   10.46%   -0.01%     
==========================================
  Files        1221     1221              
  Lines       87557    87598      +41     
  Branches    20489    20489              
==========================================
  Hits         9165     9165              
- Misses      69039    69080      +41     
  Partials     9353     9353              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.45% <0.00%> (ø) Carriedforward from 34bf3ba

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

Impacted Files Coverage Δ
...ion/crosswalk_traffic_light_estimator/src/node.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.

@tkimura4 tkimura4 changed the title fix(crosswalk_traffic_light_estimator): fix invalid access fix(crosswalk_traffic_light_estimator): fix invalid access Sep 9, 2022
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
@tkimura4 tkimura4 force-pushed the fix/crosswalk_traffic_light_estimator branch from 74a26a7 to 89c9d02 Compare September 9, 2022 07:55
@tkimura4 tkimura4 enabled auto-merge (squash) September 9, 2022 07:55
@tkimura4
Copy link
Contributor Author

tkimura4 commented Sep 9, 2022

Could you fix semantics error (CI/CD) ?

Thank you! I fixed.

@tkimura4 tkimura4 merged commit bf4bcce into autowarefoundation:main Sep 9, 2022
@tkimura4 tkimura4 deleted the fix/crosswalk_traffic_light_estimator branch September 9, 2022 08:09
voltonomous pushed a commit to vautonomous/autoware.universe that referenced this pull request Sep 11, 2022
…oundation#1825)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
1222-takeshi pushed a commit to tier4/autoware.universe that referenced this pull request Sep 12, 2022
…oundation#1825)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
1222-takeshi added a commit to tier4/autoware.universe that referenced this pull request Sep 12, 2022
…oundation#1825) (#119)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Co-authored-by: Tomoya Kimura <tomoya.kimura@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Sep 28, 2022
…oundation#1825)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…oundation#1825)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…oundation#1825)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
…oundation#1825)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@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.

2 participants