Installing ROS Hydro on Ubuntu

Prerequisites:

Adding additional software sources

First, we have to tell Ubuntu to look for software in a few additional places.

For an in-depth explanation of this process refer to the Ubuntu help page on repositories.

  1. Open the Ubuntu Software Center
  2. Open the Edit menu
  3. From the Edit menu select Software Sources
  4. You will have to enter your password to change settings in this window.
  5. You should see the a window similar to the one shown below

  1. Make sure the checkboxes next to the following are checked:
  1. Community-maintained Open Source software - (universe)
  2. Proprietary drivers for devices (restricted)
  3. Software restricted by copyright or legal issues (multiverse)
  1. Your Software Sources window should look like the one below

  1. Select Close to save your changes. A dialog box may appear, asking whether you'd like to update the list of repositories. Select "Reload" to update the list.

  1. You have successfully added additional software resources to your Ubuntu installation!


Adding ROS as a software source

These steps tell Ubuntu where to download and install ROS from.

  1. First we have to open a Terminal window. You can do this with the keyboard shortcut Ctrl + Alt + T
  1. For much more information about the Terminal, you can refer to the Ubuntu help page for Using the Terminal
  1. You should see a window similar to the one below


  1. Copy and Paste the following into the terminal. You will probably have to use

        Shift + Insert to paste into the terminal. As you type your password nothing will show up.

This is normal, simply hit enter after you have typed it.

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'

  1. Leave the terminal open after this command has completed running, we will be using it in the following steps.


Allowing ROS to install software        

        Now, we have to tell Ubuntu to allow software from ROS to be installed.

  1. Copy and Paste the following into the terminal. You will probably have to use

        Shift + Insert to paste into the terminal. As you type your password nothing will show up.

This is normal, simply hit enter after you have typed it.

wget http://packages.ros.org/ros.key -O - | sudo apt-key add -

  1. Leave the terminal open after this command has completed running, we will be using it in the following steps.

Installing ROS

        This part of the guide actually downloads and installs ROS onto Ubuntu.

  1. Copy and Paste the following into the terminal. You will probably have to use

Shift + Insert to paste into the terminal. As you type your password nothing will show up. This is normal, simply hit enter after you have typed it.

  1. This command will update Ubuntu, it may take a long time to run.

sudo apt-get update

  1. Once it has finished running, Copy and Paste the following into the terminal. You will probably have to use Shift + Insert to paste into the terminal. This step downloads and installs the full ROS software suite. It may take some time for it to complete.

sudo apt-get install ros-hydro-desktop-full

  1. Once that has finished running, Copy and Paste the following into the terminal. You will probably have to use Shift + Insert to paste into the terminal.

sudo rosdep init

  1. Once this has finished running, Copy and Paste the following into the terminal. You will probably have to use Shift + Insert to paste into the terminal

rosdep update

  1. After it has finished running, Copy and Paste the following into the terminal. You will probably have to use Shift + Insert to paste into the terminal. This step makes sure that ROS will be set up everytime you start a new Terminal.

echo "source /opt/ros/hydro/setup.bash" >> ~/.bashrc

  1.  After it has finished running, Copy and Paste the following into the terminal. You will probably have to use Shift + Insert to paste into the terminal. This step makes sure that ROS is set up in the current Terminal that you have open.

source ~/.bashrc

  1. After it has finished running, Copy and Paste the following into the terminal. You will probably have to use Shift + Insert to paste into the terminal. This step downloads and installs the ROS installer, it will enable you to install additional ROS tools.

sudo apt-get install python-rosinstall

  1. After this command finishes running you may close the Terminal.

Congratulations, You have successfully installed ROS in Ubuntu!