Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi there,

In the most simple setup, you need to tell the Raspberry Pi that it is the ROS master and also to tell itself, what is its IP address. For this, execute the following lines in a terminal or add them to the .bashrc file in your home directory, assuming your Raspberry Pi has the IP address 192.168.22.14.

export ROS_MASTER_URI=http://192.168.22.14:11311
export ROS_IP=192.168.22.14
export ROS_HOSTNAME=192.168.22.14

Now you can start the ROS core in the Raspberry Pi.

Next, you need to tell the second computer, what is the IP address of the ROS master and what is its own IP address. Assuming, the IP address of the second device is 192.168.22.36, you can execute the following commands in a terminal and then run the ROS node that you like to run on that device.

export ROS_MASTER_URI=http://192.168.22.14:11311
export ROS_IP=192.168.22.36
export ROS_HOSTNAME=192.168.22.36

This should allow you to have the Raspberry set up as the ROS master and the second device communicate with the ROS master remotely.