
36
Operating Instructions
export ROS_IP=<IP_OF_
NEURONBOT
>
•
Computer:
export ROS_MASTER_URI=http://<IP_OF_
NEURONBOT
>:11311
export ROS_IP=<IP_OF_
LAPTOP
>
For example, if the IP address of the NeuronBot is
192.168.50.26
, and the IP address of the computer is
192.168.50.110
,
then you should execute the following commands:
•
NeuronBot:
export ROS_MASTER_URI=http://
192.168.50.26
:11311
export ROS_IP=
192.168.50.26
•
Computer:
export ROS_MASTER_URI=http://
192.168.50.26
:11311
export ROS_IP=
192.168.50.110
To make this easier, you can set up the ADLINK Neuron Startup Menu on the NeuronBot and computer. Use the
following command to edit the Neuron Startup Menu. Here, we used gedit as as the editor; however, you can use
any editor you want.
gedit ~/.ros_menu/config.yaml
The Master IP addresses of the NeuronBot and computer are the same. Modify the Neuron Startup Menu on both
the NeuronBot and computer as follows:
Menu:
ROS 1 melodic:
option_num: 1
ROS_version: 1
distro_name: melodic
ros1_path: /opt/ros/melodic
master_ip:
192.168.50.26
cmds:
# - source ${HOME}/catkin_ws/devel/setup.${shell}
5.2.3. ROS 2 Remote Control Settings
ROS 2 uses DDS as the underlying transport protocol, and DDS supports physical segmentation of the network
based on the
Domain ID
. The ROS_DOMAIN_ID helps keep each machine group’s ROS 2 nodes from interfering
with other groups. The function of ROS_DOMAIN_ID is similar to the principle of a walkie-talkie. Execute the
following command to set up the ROS_DOMAIN_ID:
export ROS_DOMAIN_ID=<YOUR_DOMAIN_ID>
For example, if you choose “30” for the ROS_DOMAIN_ID, enter the following command on both the NeuronBot
and the computer:
•
NeuronBot:
export ROS_DOMAIN_ID=30
•
Computer:
export ROS_DOMAIN_ID=30