-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add in a test for the new get_parameter_or_set_default API. #296
Conversation
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
{ | ||
// try to get with default a parameter that is already set | ||
int64_t foo_value = -1; | ||
node->get_parameter_or("foo", foo_value, static_cast<int64_t>(42)); |
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.
Is this supposed to be a call to get_parameter_or_set_default()
?
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.
Yes, absolutely, thanks for pointing it out. Cut-n-paste error. It should be fixed now.
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
9d44bf4
to
4f19390
Compare
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Thanks for the review, merging. |
This should only be merged if ros2/rclcpp#551 is approved and merged.
connects to ros2/rclcpp#551