Skip to content

Commit

Permalink
fix loading parameter behavior from yaml file.
Browse files Browse the repository at this point in the history
  Ref: ros2/ros2cli#863

Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Nov 28, 2023
1 parent a29e656 commit b093f2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion demo_nodes_py/demo_nodes_py/parameters/async_param_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def main(args=None):
rclpy.spin_until_future_complete(node, future)
load_parameter_results = future.result()
if load_parameter_results is not None:
param_file_dict = parameter_dict_from_yaml_file(param_file_path)
param_file_dict = parameter_dict_from_yaml_file(
param_file_path, False, target_nodes=['parameter_blackboard'])
for i, v in enumerate(param_file_dict.keys()):
node.get_logger().info(f' {v}:')
node.get_logger().info(f' successful: '
Expand Down
2 changes: 1 addition & 1 deletion demo_nodes_py/demo_nodes_py/parameters/params.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/param_test_target:
/parameter_blackboard:
ros__parameters:
other_int_parameter: 0
int_parameter: 12
Expand Down

0 comments on commit b093f2f

Please sign in to comment.