ROS yaml launch with parameter file

config/params.yaml
1
2
3
simple_param_node:
  ros__parameters:
    greeting: "Hi from YAML!"
1
2
3
4
5
6
launch:
- node:
    pkg: "yaml_launch"
    exec: "simple_param_node.py"
    param:
      - from: $(find-pkg-share yaml_launch)/config/params.yaml

Note

We can load params from multiple file using multiple form