ros2 master and slave
Hello, I would like to setup a ros master machine and a ros master slave using ros2 dashing.
I cannot find anything at all online, only unanswered questions.
So how can I do this ?
Do I need to set env variables like in ROS1 ?: ROS_HOSTNAME and ROS_IP ?
I understand that with the DDS things might be very different now, so is there a way to do this ?
Thanks !
Thanks a lot
Just to clarify: ROS never had a "master and slave" architecture.
There is only a master in the sense that it knows everything about nodes which have registered themselves as participants in the ROS node graph. Other nodes can then query the master for this information.
But after that, it's not involved at all any more, and communication (of whatever sort) is peer-to-peer (in ROS 1).
Describing a ROS 1 system as "master - slave" is really not something which makes sense.
It would be almost the same as saying your computer or phone are slaves to a DNS server. Which is not the case at all.