1. Make sure all machines are connected to the same network.
2. edit /etc/hosts:
command: gedit /etc/hosts
Master:
<slave IP> <slave name>
Slave:
<master IP> <master name>
3. set static IP address:
Master:
command: gedit ~/.bashrc
add:
export ROS_MASTER_URI=http://<Master IP>:11311
export ROS_HOSTNAME=<Master IP>
Slave:
command: gedit ~/.bashrc
add:
export ROS_MASTER_URI=http://<Master IP>:11311
export ROS_HOSTNAME=<Slave IP>