Skip to content

Option to Launch ROS Node Parameters from YAML with Optional Namespace #448

@meetgandhi-dev

Description

@meetgandhi-dev

Hi,

Thank you for your excellent work!

We’ve started utilizing ROS namespaces for our nodes as part of a specific requirement. To pass the namespace to all the nodes in the launch file, we’re using the PushROSNamespace action. This setup requires the namespace to be enabled only if a certain environment variable is set, which we’ve managed to accomplish using a conditional If argument, and it’s working as expected.

However, we’re encountering some difficulties with managing parameters through a YAML file. When using a namespace, the YAML file should have the namespace as the first key, but when not using a namespace, it should not include it. Each robot has a unique namespace that is determined at boot time, and we prefer not to create multiple variants of YAML files for each case.

Is there an option to provide an optional namespace when specifying parameter files?

I came across a similar solution in the Nav2 bringup launch file (here), which addresses this requirement. Does the current module support something like this? If not, do you think adding this feature would be beneficial?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions