Skip to content

Commit c78b02b

Browse files
BMarchimjcarroll
authored andcommitted
Get proper parameters with prefixes without dot separator (#455)
Signed-off-by: Brian Ezequiel Marchi <[email protected]>
1 parent e566f3e commit c78b02b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rclpy/rclpy/parameter_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ def _list_parameters_callback(self, request, response):
9090
names_with_prefixes.append(name)
9191
continue
9292
elif request.prefixes:
93+
for prefix in request.prefixes:
94+
if name.startswith(prefix):
95+
response.result.names.append(name)
9396
continue
9497
else:
9598
response.result.names.append(name)

0 commit comments

Comments
 (0)