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

refactor(crosswalk_traffic_light_estimator): rework parameters #4699

Conversation

yuntianyi-chen
Copy link
Contributor

@yuntianyi-chen yuntianyi-chen commented Aug 22, 2023

Description

Refactor the ROS Node configuration layout for the crosswalk_traffic_light_estimator package according to the guideline.

  • Create the schema and parameter files.
  • Remove the default values from the source code to avoid duplication.
  • Add a parameter last_detect_color_hold_time in the README.md file.

Related links

None

Tests performed

The refactored node was successfully built and tested by launching this node individually.

The running result is shown below:
cross

Notes for reviewers

None

Interface changes

  • Create two configuration files perception/crosswalk_traffic_light_estimator/config/crosswalk_traffic_light_estimator.param.yaml and perception/crosswalk_traffic_light_estimator/schema/crosswalk_traffic_light_estimator.schema.json
  • Parameter values are now required to be passed to the node when launched.

Effects on system behavior

None

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.

…estimator according to the new ROS node config guideline.

update the parameter information in the README.md

Signed-off-by: yuntianyi-chen <[email protected]>
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:perception Advanced sensor data processing and environment understanding. (auto-assigned) labels Aug 22, 2023
pre-commit-ci bot and others added 4 commits August 22, 2023 06:03
Signed-off-by: yuntianyi-chen <[email protected]>
…of github.com:yuntianyi-chen/autoware.universe into refactor-ros-config-crosswalk_traffic_light_estimator
…en building the package.

Signed-off-by: yuntianyi-chen <[email protected]>
Copy link
Contributor

@ambroise-arm ambroise-arm left a comment

Choose a reason for hiding this comment

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

LGTM

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.

@ambroise-arm LGTM. Thanks 👍

@satoshi-ota satoshi-ota self-requested a review August 31, 2023 02:44
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.

Oh. Sorry. I think it needs to add parameter config path in launcher file since default parameters are removed.

@yuntianyi-chen
Copy link
Contributor Author

yuntianyi-chen commented Aug 31, 2023

Oh. Sorry. I think it needs to add parameter config path in launcher file since default parameters are removed.

I think it's already added in the launch.xml file.
<arg name="crosswalk_traffic_light_estimator_param_file" default="$(find-pkg-share crosswalk_traffic_light_estimator)/config/crosswalk_traffic_light_estimator.param.yaml"/>

@satoshi-ota
Copy link
Contributor

Oh. Sorry. I think it needs to add parameter config path in launcher file since default parameters are removed.

I think it's already added in the launch.xml file. <arg name="crosswalk_traffic_light_estimator_param_file" default="$(find-pkg-share crosswalk_traffic_light_estimator)/config/crosswalk_traffic_light_estimator.param.yaml"/>

Sorry I missed it. LGTM.

@satoshi-ota
Copy link
Contributor

hmm... It seems that this node called in tier4_perception_launch.launch.xml directly. (not via the one of this package.)

<group if="$(var use_crosswalk_traffic_light_estimator)">
<node pkg="crosswalk_traffic_light_estimator" exec="crosswalk_traffic_light_estimator_node" name="crosswalk_traffic_light_estimator" output="screen">
<remap from="~/input/vector_map" to="/map/vector_map"/>
<remap from="~/input/route" to="/planning/mission_planning/route"/>
<remap from="~/input/classified/traffic_signals" to="$(var fusion/traffic_signals)"/>
<remap from="~/output/traffic_signals" to="$(var internal/traffic_signals)"/>
</node>
</group>

@miursh miursh added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 4, 2023
@miursh
Copy link
Contributor

miursh commented Sep 7, 2023

@yuntianyi-chen
Can I add some modification to tier4_perception_launch.launch.xml to launch correctly?

@yuntianyi-chen
Copy link
Contributor Author

@yuntianyi-chen Can I add some modification to tier4_perception_launch.launch.xml to launch correctly?

@miursh Sure! Please do it.

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

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

Comparison is base (cdc568d) 15.91% compared to head (5cb0f3f) 15.91%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4699      +/-   ##
==========================================
- Coverage   15.91%   15.91%   -0.01%     
==========================================
  Files        1580     1580              
  Lines      109068   109016      -52     
  Branches    33634    33616      -18     
==========================================
- Hits        17363    17347      -16     
+ Misses      73079    73051      -28     
+ Partials    18626    18618       -8     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 15.91% <ø> (-0.01%) ⬇️ Carriedforward from 22b1a43

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

... and 3 files with indirect coverage changes

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

@github-actions github-actions bot added the component:launch Launch files, scripts and initialization tools. (auto-assigned) label Sep 11, 2023
@miursh
Copy link
Contributor

miursh commented Sep 11, 2023

@yuntianyi-chen Done. 5cb0f3f

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

@miursh miursh merged commit f08e64d into autowarefoundation:main Sep 11, 2023
19 of 24 checks passed
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) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants