ROS multi-machine communication

    ROS in multi-machine communication is more than one computer to communicate in the same network. Although multi-machine communication in more than one computer, but the operating system for ros, impossible two rosmaster manager, you need to specify one as the host, other computers need to be aware of their host.

On all computers, we use the command ip address of the other computer is added to the hosts in

sudo gedit /etc/hosts

After adding remember ping about whether China Unicom.

     For the slave, we need to use ROS_MASTER_URI host to the location, using the following command:

export ROS_MASTER_URI=http://host-pc:11311

      Sentence order for each terminal needs to be set, if long-term communication and inconvenience ip between several machines, you can put the above command is added to the profile of the terminal.

      Completion of the above can achieve a multi-machine communication.

Guess you like

Origin blog.csdn.net/Mr_yangsir/article/details/94722513