-
Notifications
You must be signed in to change notification settings - Fork 650
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
feat(tier4_autoware_utils): add getOrDeclearParam function #4763
Conversation
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
RCLCPP_ERROR( | ||
node.get_logger(), "Failed to get parameter `%s`, please set it when you launch the node.", | ||
name.c_str()); | ||
throw(ex); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
Codecov ReportPatch coverage has no change and project coverage change:
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
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…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>
…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>
…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>
…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>
…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>
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.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.