-
Notifications
You must be signed in to change notification settings - Fork 418
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
Allow empty prefix list to get all params; check depth correctly. #230
Conversation
lgtm, but that if-statement is getting hairy looking 😄. |
@@ -271,17 +271,21 @@ Node::list_parameters( | |||
|
|||
// TODO(esteve): define parameter separator, use "." for now | |||
for (auto & kv : parameters_) { | |||
if (std::any_of(prefixes.cbegin(), prefixes.cend(), [&kv, &depth](const std::string & prefix) { | |||
if (((prefixes.size() == 0) && | |||
((depth == 0) || |
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.
Please use the constant defined in the service rather then a plain 0
here.
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.
Matching change in ros2/system_tests@3d1d672
* Allow empty prefix list to get all params; check depth correctly. * use enum instead of constant
valgrind was complaining about some lost memory here. The proposed change should fix it.
* Add Zstd decompressor * Add unit test to verify decompression works and add unit test to verify it fails with bad input. * Add unit test to check that ZstdDecompressor fails if file uri is bad. * Include example of debug log in comments Signed-off-by: Zachary Michaels <zmichaels11@gmail.com> Co-authored-by: Zachary Michaels <zmichaels11@users.noreply.github.com>
Connects to #196