Skip to content
Nathan Sprague edited this page Oct 25, 2016 · 3 revisions

Welcome to the example_code wiki!

Instructions for connecting to the Turtlebot over the network.

First find the ip address of the robot and the workstation by running:

ifconfig

in a terminal. Look through the output to find something that looks like:

 inet addr:134.126.125.115

In a terminal on the robot:

export ROS_MASTER_URI=http://IP_OF_TURTLEBOT:11311
export ROS_HOSTNAME=IP_OF_TURTLEBOT

In a terminal on the workstation:

export ROS_MASTER_URI=http://IP_OF_TURTLEBOT:11311
export ROS_HOSTNAME=IP_OF_WORKSTATION

Or the following to make it more permanent... In a terminal on the robot:

echo export ROS_MASTER_URI=http://IP_OF_TURTLEBOT:11311 >> ~/.bashrc
echo export ROS_HOSTNAME=IP_OF_TURTLEBOT >> ~/.bashrc
source ~/.bashrc

In a terminal on the workstation:

echo export ROS_MASTER_URI=http://IP_OF_TURTLEBOT:11311 >> ~/.bashrc
echo export ROS_HOSTNAME=IP_OF_WORKSTATION >> ~/.bashrc
source ~/.bashrc

Clone this wiki locally