-
Notifications
You must be signed in to change notification settings - Fork 1
Connecting to a Turtlebot
-
Make sure your computer is connected to the same network as the Turtlebot, whether it's NUwave or connected by ethernet over the same local network.
-
Open two new terminals. One will be used for the Turtlebot and one for the host. More will be opened for the Turtlebot to run multiple processes. The host must have some fairly recent distro of ROS in order to connect and run commands properly. The host must also have installed all the ROS Turtlebot software (will be needed to run simulations, can be downloaded here).
-
Run
ifconfig
on host computer to find your IP address. -
On the host computer, run
export ROS_HOSTNAME=<HOST_PC_IP>
, substituting with the IP address found in step 3. -
Run
export ROS_MASTER_URI=http://<TURTLEBOT_IP>:11311
, substituting with the IP of your Turtlebot. Each Turtlebot's IP will be their name followed by ".neu.edu". So, the IP for a Turtlebot named Squirt, the IP will besquirt.neu.edu
. -
In the second terminal, ssh into the turtlebot by running
ssh turtlebot@<TURTLEBOT_IP>
. -
Once inside the Turtlebot, run the following two commands:
export ROS_MASTER_URI=http://localhost:11311
export ROS_HOSTNAME=<TURTLEBOT_IP>
. -
To make sure there's a connection, run
roslaunch turtlebot_bringup minimal.launch
on the Turtlebot terminal. The Turtlebot should beep signifying the startup. Then runrostopic list
on the host terminal. A list of rostopics should appear. If not, the devices are not properly connected, most commonly if they are not on the same network or if the Turtlebot's IP was incorrect.