Skip to content

consider porting RewrittenYaml from Nav2 to allow param overrides to YAML from launchΒ #258

@adamsj-ros

Description

@adamsj-ros

Feature request

Consider porting RewrittenYaml from Nav2.

Feature description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions