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(tier4_autoware_utils): add getOrDeclearParam function #4763

Merged
merged 4 commits into from
Aug 28, 2023

Conversation

TakaHoribe
Copy link
Contributor

@TakaHoribe TakaHoribe commented Aug 28, 2023

Description

Add a new function to get ros param.
This function is copied from here

Related links

None

Tests performed

build pass

Notes for reviewers

None

Interface changes

None

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.

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
@TakaHoribe TakaHoribe marked this pull request as ready for review August 28, 2023 02:28
@github-actions github-actions bot added the component:common Common packages from the autoware-common repository. (auto-assigned) label Aug 28, 2023
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
@TakaHoribe TakaHoribe added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 28, 2023
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Comment on lines 36 to 39
RCLCPP_ERROR(
node.get_logger(), "Failed to get parameter `%s`, please set it when you launch the node.",
name.c_str());
throw(ex);
Copy link
Contributor

Choose a reason for hiding this comment

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

This error or warning is shown by default. Any reason to add this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good. I just copied it from another pkg, but it can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@takayuki5168 removed. Thank you!

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
@TakaHoribe TakaHoribe enabled auto-merge (squash) August 28, 2023 02:39
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

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

Comparison is base (c5a6f80) 15.10% compared to head (d21b1ba) 14.66%.
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4763      +/-   ##
==========================================
- Coverage   15.10%   14.66%   -0.45%     
==========================================
  Files        1563     1615      +52     
  Lines      107902   112219    +4317     
  Branches    33112    34093     +981     
==========================================
+ Hits        16301    16457     +156     
- Misses      73831    77824    +3993     
- Partials    17770    17938     +168     
Flag Coverage Δ *Carryforward flag
differential 17.33% <ø> (?)
total 15.10% <ø> (ø) Carriedforward from c5a6f80

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

see 70 files with indirect coverage changes

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

@TakaHoribe TakaHoribe merged commit 2875bf6 into autowarefoundation:main Aug 28, 2023
35 of 37 checks passed
@TakaHoribe TakaHoribe deleted the get-or-declare-param branch August 28, 2023 04:42
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 30, 2023
…oundation#4763)

* feat(tier4_autoware_utils): add getOrDeclearParam function

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* modify utils.hpp

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove unused include

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove error message since it is shown by ros-default

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 30, 2023
…oundation#4763)

* feat(tier4_autoware_utils): add getOrDeclearParam function

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* modify utils.hpp

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove unused include

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove error message since it is shown by ros-default

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
satoshi-ota pushed a commit to satoshi-ota/autoware.universe that referenced this pull request Sep 22, 2023
…oundation#4763)

* feat(tier4_autoware_utils): add getOrDeclearParam function

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* modify utils.hpp

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove unused include

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove error message since it is shown by ros-default

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 26, 2023
…oundation#4763)

* feat(tier4_autoware_utils): add getOrDeclearParam function

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* modify utils.hpp

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove unused include

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove error message since it is shown by ros-default

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Dec 25, 2023
…oundation#4763)

* feat(tier4_autoware_utils): add getOrDeclearParam function

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* modify utils.hpp

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove unused include

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* remove error message since it is shown by ros-default

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>

---------

Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned) tag: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.

2 participants