Skip to content

Add domain_id to node/init options #206

Open
@nnmm

Description

@nnmm

The domain_id is a useful option. In ROS distros up to Foxy, it is part of the node options. Afterwards it was moved to the context, or more precisely, the init options. See #186 (comment)

We should use the "ros_distro" cfg attribute to add it in the correct place for each distro. I.e. for Foxy, the node builder structure (with a default value of RMW_DEFAULT_DOMAIN_ID), and in for Galactic and up, it's open. There is no context builder struct yet, but we could add one. Alternatively, we could make Context::new() accept an Option<RosDomainId>.

Additionally, a domain_id() getter could be added to the context (Galactic and up) or node (Foxy) that calls the respective rcl function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions