Lab 0: Setting Up
If you need to configure your computer for use with these labs start here!
Download Lab Skeleton Zip File
If you are using GCC Robotics Lab computers you can skip this lab and head straight over to Lab 1. This guide will be useful if you want to configure your personal laptop so you can continue working at home.
To be able to follow along with this series of labs you will need to have several prerequisites installed and configured on your computer. This lab will guide you through the process of getting all of the installed and configured correctly.
Prerequisites
- Ubuntu 14.04
- ROS Indigo
- iRobot Create and Microsoft Kinect Drivers
Additionally to connect to the iRobot your computer needs to have Bluetooth. If your computer does not have Bluetooth you can buy a USB adapter or use the Lab computers.
Let’s jump right in and start with Ubuntu.
Setting Up Ubuntu
This series of labs was written specifically for Ubuntu 14.04 so you need to make sure that this is the version you are installing.
- Download the Ubuntu 14.04 Desktop ISO
- Burn the downloaded ISO file to a DVD
- Follow the Ubuntu install guide
Setting up ROS
Again this series of labs was written specifically for ROS Indigo Igloo so you need to make sure that this is the version you install.
Boot and login into your newly installed Ubuntu 14.04 Machine.
Next make sure that your computer has internet access we will install the rest of the requirements over the internet.
We will install ROS from the Terminal. The Terminal is a text based input / output program which allows you to run different commands. You will learn more about the terminal in Lab 1.
Open the Terminal by Pressing Ctrl + Alt + T

Type the following command into the new terminal window and hit enter:
sudo apt-get update && sudo apt-get upgrade -y
You will be asked for your password if you specified one during the Ubuntu installation. The command may take quite a long time to complete. That is ok.
Now we are ready to start installing ROS Indigo, run the following commands in sequence in the same terminal window.
1.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
2.
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
This command can fail, before proceeding make sure that the last line of
output is: gpg: imported: 1
3.
sudo apt-get update
4.
sudo apt-get install ros-indigo-desktop-full
5.
sudo rosdep init
6.
rosdep update
7.
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
8.
source ~/.bashrc
9.
sudo usermod -a -G dialout $(whoami)
Done! You have successfully installed ROS on your system.
Before continuing with the installation you should restart your computer to make sure everything went well.
If you have any problems during the installation consult the ROS Indigo install guide.
Installing iRobot Create Drivers
Next we need to install the iRobot create drivers which will allow us to control the robot over Bluetooth using our Ubuntu computer and ROS.
Run the following commands in sequence in a Terminal:
1.
sudo apt-get install ros-indigo-turtlebot ros-indigo-turtlebot-apps ros-indigo-turtlebot-interactions ros-indigo-turtlebot-simulator ros-indigo-kobuki-ftdi ros-indigo-rocon-remocon ros-indigo-rocon-qt-library ros-indigo-ar-track-alvar-msgs mathgl libmgl-dev
2.
printf "export TURTLEBOT_BASE=create\nexport TURTLEBOT_STACKS=circles\nexport TURTLEBOT_3D_SENSOR=kinect\nexport TURTLEBOT_SERIAL_PORT=/dev/rfcomm0" >> ~/.bashrc
3.
source ~/.bashrc
Installing Microsoft Kinect Drivers
The last thing we need to is to install the drivers for the Microsoft Kinect camera which we will be using to track colored objects.
Open a new Terminal (or use an existing one if you still have it open) and run the following command:
sudo apt-get install libfreenect-dev ros-indigo-freenect-launch
Done! You’re ready to move on the Lab 1!