Node configuration method for distributed control of ROS robot operating system

Source: Internet
Author: User

MASTER Settings

the whole system only needs a master, select a machine to run Master to provide topic addressing, parameter server and other functions. All nodes must be configured to use the same MASTER through the environment variable Ros_master_uri.

Master Setup method:

Export ros_master_uri= "http:/wsh:11311"

where WSH is the name of my computer, my computer is master, and other computers enter this command at the terminal to connect to master. You can set it by using the IP and computer name bindings described below.

SSH Secure connection Settings Full bidirectional connection

Between machines, and between all ports, there must be complete, bidirectional connectivity. SSH client is installed by default on Ubuntu, but does not include server side and needs to be installed manually.

Sudo Apt-get Install Openssh-server


If you want to remove the manual login process, you also need to generate a key pair and upload to the server side:

Ssh-keygen

Ssh-copy-id [email protected]


Name Address binding

there must be a mechanism for each node's name (hostname) and its IP address to bind each other. Add machine name bindings in/etc/hosts, in the following format:

IP hostname hostname

sudo gedit/etc/hosts add Master's IP

192.168.3.102 WSH

In the same master, add the IP of the computer to which you want to connect this master, such as Yxd


192.168.3.102 Yxd



env.sh environment variable settings

use the env.sh file to set the desired environment for the machine running node , as follows:

#!/bin/sh


Export Roslaunch_ssh_unknown=1

#export ros_master_uri=wsh


./opt/ros/indigo/setup.sh


exec "[Email protected]"



Other SettingsChange machine name

You can change the computer name of the running node if necessary. You can change it in/etc/hostname.

static IP address binding

due to the need to bind the computer name and IP in /etc/hosts , it is best to set the IP address as the static address.




Node configuration method for distributed control of ROS robot operating system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.