Skip to content

Commit

Permalink
Get proper parameters with prefixes without dot separator (ros2#455)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Ezequiel Marchi <brian.marchi65@gmail.com>
  • Loading branch information
BMarchi authored and jaisontj committed Nov 19, 2019
1 parent c777f1c commit 1442a94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rclpy/rclpy/parameter_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def _list_parameters_callback(self, request, response):
names_with_prefixes.append(name)
continue
elif request.prefixes:
for prefix in request.prefixes:
if name.startswith(prefix):
response.result.names.append(name)
continue
else:
response.result.names.append(name)
Expand Down

0 comments on commit 1442a94

Please sign in to comment.