-
Notifications
You must be signed in to change notification settings - Fork 2
Notes
Nathan Sprague edited this page Oct 25, 2016
·
3 revisions
Welcome to the example_code wiki!
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