Skip to content

Commit

Permalink
Revert "Revert "fix loading parameter behavior from yaml file. (#656)" (
Browse files Browse the repository at this point in the history
#660)"

This reverts commit 69aa0e4.

Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Dec 16, 2023
1 parent 69aa0e4 commit ba9283f
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 ba9283f

Please sign in to comment.