You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use case is using YAMLs for default params but allowing to override individual params from launch. The overwrites could be extended to an override yaml.
launch_ros.actions.Node(
package='nodes',
executable='node_exe',
parameters=[
path_to_yaml,
# overwrite parameters from yaml here
{"param_name": value}
]
This seems to almost work but with the limitation that the params specified in the YAML must be for all nodes. This is not ideal in the event params have the same name between nodes and you wish to distinguish.
Implementation considerations
This is a pretty nice way to override individual parameters in a YAML during launch. However, it only seems to work if the YAML file is set to for all nodes.
An alternative is Nav2's RewrittenYaml[link] feature but that requires to clone/install all of Nav2.