Skip to content

Commit e627f1b

Browse files
committed
Output node parameters upon each receipt
Signed-off-by: Barry Xu <barry.xu@sony.com>
1 parent 7a1ea4b commit e627f1b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

ros2param/ros2param/verb/list.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,14 @@ def main(self, *, args): # noqa: D102
6868
regex_filter = re.compile(regex_filter[0])
6969

7070
with DirectNode(args) as node:
71-
responses = {}
71+
# Sort node_names alphabetically
72+
node_names = sorted(node_names, key=lambda n: n.full_name)
7273
for node_name in node_names:
73-
responses[node_name] = call_list_parameters(
74+
response = call_list_parameters(
7475
node=node,
7576
node_name=node_name.full_name,
7677
prefixes=args.param_prefixes)
77-
# print responses
78-
for node_name in sorted(responses.keys()):
79-
response = responses[node_name]
78+
# print responses
8079
if response is None:
8180
print(
8281
'Wait for service timed out waiting for '

0 commit comments

Comments
 (0)