ROS on same LAN

Low level reference docs of the ROS course

ROS_DOMAIN_ID

By default, ROS 2 communication is not limited to localhost. So, you can have a distributed node system only by connecting the computers via Ethernet.

If you want to change the ROS_DOMAIN_ID you need to choose a number between 0 and 101, inclusive, and:

export ROS_DOMAIN_ID=<your_domain_id>

Changing ROS_DOMAIN_ID leads to have a isolated environment for your ROS nodes. If you want to have two or more computers to communicate, you need to have the same ID.

Last modified March 18, 2023: Fix link to image (62e4b8e)