Configuration the .bashrc File
Primary
~/.bashrc
1
2
3
export ROS_MASTER_URI=http://localhost:11311
export ROS_HOSTNAME={PrimaryName}
export ROS_IP={PrimaryIp}
Secondary
~/.bashrc
1
2
3
export ROS_MARTER_URI=http://{PrimaryIp}:11311
export ROS_HOSTNAME={SecondaryName}
export ROS_IP={SecondaryIp}
Apply .bashrc
1
$ source ~/.bashrc
Configuration the /etc/hosts File
- Same setting for Primary and Secondary
1
2
<PrimaryIP> <PrimaryName>
<SecondaryIP> <SecondaryName>
Reference
1
[Wiki](http://wiki.ros.org/ROS/Tutorials/MultipleMachines)