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(autoware_crosswalk_traffic_light_estimator): add process that guard access to empty elements #10281

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

k-hazama-esol
Copy link

Description

There is a problem that the crosswalk traffic light estimator drops out when a pedestrian signal is received with V2I signal coordination.

This problem is caused by a process in crosswalk_traffic_light_estimator that accesses elements without checking for the presence of signal recognition results.
Accessing an element without checking its value even when it is empty causes a segmentation fault.

This PR solves the problem by adding a process that prevents the result of signal recognition from being referenced in an empty state.

Related links

Private Links:

How was this PR tested?

  • PSIM

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

…ard access to empty elements.

Signed-off-by: k-hazama-esol <k-hazama@esol.co.jp>
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Mar 17, 2025
Copy link

github-actions bot commented Mar 17, 2025

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Signed-off-by: k-hazama-esol <k-hazama@esol.co.jp>
@TomohitoAndo TomohitoAndo changed the title fix(autoware_crosswalk_traffic_light_estimator) : add process that guard access to empty elements. fix(autoware_crosswalk_traffic_light_estimator): add process that guard access to empty elements Mar 18, 2025
@TomohitoAndo TomohitoAndo added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 18, 2025
@k-hazama-esol k-hazama-esol force-pushed the fix/empty_access_guard_crosswalk_traffic_light_estimator branch from 9ac18bf to 8d208e7 Compare March 18, 2025 08:54
@k-hazama-esol k-hazama-esol marked this pull request as ready for review March 19, 2025 00:26
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 26.03%. Comparing base (5cec580) to head (8d208e7).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
...are_crosswalk_traffic_light_estimator/src/node.cpp 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10281      +/-   ##
==========================================
- Coverage   26.06%   26.03%   -0.03%     
==========================================
  Files        1376     1376              
  Lines      106574   106680     +106     
  Branches    40913    40961      +48     
==========================================
  Hits        27776    27776              
- Misses      76087    76193     +106     
  Partials     2711     2711              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
differential-cuda 0.00% <0.00%> (?)
total 26.06% <ø> (∅) Carriedforward from 5cec580

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TomohitoAndo TomohitoAndo self-requested a review March 19, 2025 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Status: To Triage
Development

Successfully merging this pull request may close these issues.

2 participants