Skip to content

Commit 1442a94

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

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)