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): move crosswalk after fusion #4734

Merged

Conversation

tzhong518
Copy link
Contributor

@tzhong518 tzhong518 commented Aug 24, 2023

Description

🤖 Generated by Copilot at b5458c5

This pull request refactors the traffic light recognition and estimation modules to use the new TrafficSignal messages and improve modularity. It simplifies the traffic_light_node_container.launch.py file, updates the topic names and launch arguments in the traffic_light.launch.xml file, and adds a crosswalk traffic signal estimation feature. It also updates the crosswalk_traffic_light_estimator node and package to use the autoware_perception_msgs package and the traffic_signal_id field.

This pull request improves the traffic light recognition system by simplifying the launch files, updating the topic names and arguments, and replacing the deprecated tier4_perception_msgs package with the autoware_perception_msgs package. It also adds a new optional node for crosswalk traffic light estimation.

Related links

#2567

TIER IV INTERNAL LINK

Tests performed

https://tier4.atlassian.net/wiki/spaces/~459732634/pages/2865332600/traffic+light+bug+fix#Result

Notes for reviewers

Interface changes

Effects on system behavior

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: tzhong518 <sworgun@gmail.com>
@github-actions github-actions bot added component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) labels Aug 24, 2023
@yukkysaito yukkysaito added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) openai-pr-reviewer labels Aug 24, 2023
@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.06% 🎉

Comparison is base (4ed36d2) 15.11% compared to head (b5458c5) 15.17%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4734      +/-   ##
==========================================
+ Coverage   15.11%   15.17%   +0.06%     
==========================================
  Files        1568     1563       -5     
  Lines      108137   107327     -810     
  Branches    33188    32698     -490     
==========================================
- Hits        16344    16291      -53     
+ Misses      73991    73561     -430     
+ Partials    17802    17475     -327     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 15.18% <ø> (+0.06%) ⬆️ Carriedforward from 4586ced

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

Files Changed Coverage Δ
...ion/crosswalk_traffic_light_estimator/src/node.cpp 0.00% <0.00%> (ø)
...ath_planner/src/scene_module/avoidance/manager.cpp 10.06% <ø> (+3.53%) ⬆️
...h_planner/src/scene_module/lane_change/manager.cpp 10.63% <ø> (+4.00%) ⬆️
...ocity_virtual_traffic_light_module/src/manager.cpp 0.00% <ø> (ø)
...g/behavior_velocity_walkway_module/src/manager.cpp 24.39% <ø> (+1.13%) ⬆️

... and 53 files with indirect coverage changes

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

Copy link
Contributor

@miursh miursh left a comment

Choose a reason for hiding this comment

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

LGTM
jsut one minor comment

@miursh miursh added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) and removed run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) labels Aug 26, 2023
…n/traffic_light.launch.xml

Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
miursh added 3 commits August 29, 2023 07:51
Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>
Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>
@miursh miursh changed the title fix(change_crosswalk_position): move crosswalk after fusion fix(crosswalk_traffic_light_estimator): move crosswalk after fusion Aug 28, 2023
@miursh
Copy link
Contributor

miursh commented Aug 28, 2023

Tested with internal odaiba data.
image
image

@TomohitoAndo
Copy link
Contributor

@miursh
Is it expected that there are duplicated results?
image

@miursh
Copy link
Contributor

miursh commented Aug 29, 2023

@TomohitoAndo Should they be merged? I'm not sure about the planning desired behavior.
This occurs because of the another crosswalk lanelet (or maybe crosswalk traffic light) is connected the the same regulatory element id.

@TomohitoAndo
Copy link
Contributor

@miursh
Planning module maybe works well even if there are duplicated data.
But I think duplicated data in the message is confusing and might cause unexpected behavior in the future, so it would be better to be merged. (I think it is okay to fix this in another PR)
What do you think? 🙏

@miursh
Copy link
Contributor

miursh commented Aug 29, 2023

@TomohitoAndo Thanks! As we talked, could you make a separate pull request to fix this?

@miursh
Copy link
Contributor

miursh commented Aug 29, 2023

@satoshi-ota Could you check this PR since you are the only codeowner.

@TomohitoAndo TomohitoAndo self-requested a review August 29, 2023 05:21
@miursh miursh merged commit 56c4585 into autowarefoundation:main Aug 30, 2023
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Aug 30, 2023
…utowarefoundation#4734)

* fix: move crosswalk after fusion

Signed-off-by: tzhong518 <sworgun@gmail.com>

* Update launch/tier4_perception_launch/launch/traffic_light_recognition/traffic_light.launch.xml

Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>

* Rename TrafficLight to TrafficSignal

Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>

* change input to be considered as the regulatory-element

Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>

---------

Signed-off-by: tzhong518 <sworgun@gmail.com>
Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>
Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
Co-authored-by: Shunsuke Miura <shunsuke.miura@tier4.jp>
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request Sep 4, 2023
…utowarefoundation#4734)

* fix: move crosswalk after fusion

Signed-off-by: tzhong518 <sworgun@gmail.com>

* Update launch/tier4_perception_launch/launch/traffic_light_recognition/traffic_light.launch.xml

Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>

* Rename TrafficLight to TrafficSignal

Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>

* change input to be considered as the regulatory-element

Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>

---------

Signed-off-by: tzhong518 <sworgun@gmail.com>
Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>
Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
Co-authored-by: Shunsuke Miura <shunsuke.miura@tier4.jp>
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request Sep 4, 2023
…utowarefoundation#4734)

* fix: move crosswalk after fusion

Signed-off-by: tzhong518 <sworgun@gmail.com>

* Update launch/tier4_perception_launch/launch/traffic_light_recognition/traffic_light.launch.xml

Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>

* Rename TrafficLight to TrafficSignal

Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>

* change input to be considered as the regulatory-element

Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>

---------

Signed-off-by: tzhong518 <sworgun@gmail.com>
Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp>
Co-authored-by: Shunsuke Miura <37187849+miursh@users.noreply.github.com>
Co-authored-by: Shunsuke Miura <shunsuke.miura@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:launch Launch files, scripts and initialization tools. (auto-assigned) 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
None yet
Development

Successfully merging this pull request may close these issues.

5 participants