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 <[email protected]>
Signed-off-by: AbhinavSingh <[email protected]>
  • Loading branch information
BMarchi authored and suab321321 committed Jan 31, 2020
1 parent a1c23c4 commit ec9b1ea
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 ec9b1ea

Please sign in to comment.