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: add parameter for holding last detected traffic-signal color #3874

Merged

Conversation

tkimura4
Copy link
Contributor

@tkimura4 tkimura4 commented May 31, 2023

Description

The crosswalk module in behavior_velocity uses the pedestrian signal color estimated by crosswalk_traffic_light_estimator.
In the current implementation, the signal for vehicular traffic may be out of the angle of view of the camera and the pedestrian signal becomes not to be estimated before passing the crosswalk, and it causes a sudden stop at the crosswalk.

This PR improves the above issue by holding the traffic signal color for a short time.

Screencast.from.2023.05.26.13.45.16.webm

Related links

Tests performed

I tested using rosbag.

Notes for reviewers

none

Interface changes

none

Effects on system behavior

The issue of sudden stops at crosswalks will be improved

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.

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
@tkimura4 tkimura4 requested review from satoshi-ota and a team as code owners May 31, 2023 12:06
@tkimura4 tkimura4 requested a review from shmpwk May 31, 2023 12:06
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label May 31, 2023
@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

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

Comparison is base (f700808) 14.11% compared to head (915dfad) 14.11%.

❗ Current head 915dfad differs from pull request most recent head e6e792b. Consider uploading reports for the commit e6e792b to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3874      +/-   ##
==========================================
- Coverage   14.11%   14.11%   -0.01%     
==========================================
  Files        1444     1444              
  Lines      101928   101933       +5     
  Branches    27197    27197              
==========================================
  Hits        14387    14387              
- Misses      71774    71779       +5     
  Partials    15767    15767              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.11% <ø> (+<0.01%) ⬆️ Carriedforward from f700808

*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%> (ø)

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

Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

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

LGTM!

@tkimura4
Copy link
Contributor Author

tkimura4 commented Jun 1, 2023

@satoshi-ota Could you review this?

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

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
@tkimura4 tkimura4 enabled auto-merge (squash) June 2, 2023 06:49
@tkimura4 tkimura4 merged commit ae0100d into autowarefoundation:main Jun 2, 2023
@tkimura4 tkimura4 deleted the feat/use_last_detected_color branch June 2, 2023 07:04
shmpwk pushed a commit to tier4/autoware.universe that referenced this pull request Jun 3, 2023
…utowarefoundation#3874)

* feat: add parameter for holding last detected traffic-signal color

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

* fix: apply pre-commit

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
component:perception Advanced sensor data processing and environment understanding. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants