Open
Description
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.