Reference: Ros Installation method
Why use ROS Indigo and Ubuntu 14.04?
Ros Indigo and Ubuntu 14.04 are all lts (long-term maintenance versions), and Ros Indigo is specifically tailored for ubuntu14.04.
Hydro and Jade are not lts.
First, add apt sourceOfficial source download is very slow, download Ros software package often spend several hours, recommended using mode two-domestic source.
Way One: official source
sudo sh-c ' echo ' Deb Http://packages.ros.org/ros/ubuntu $ (LSB_RELEASE-SC) main ">/etc/apt/sources.list.d/ Ros-latest.list '
sudo apt-key adv--keyserver hkp://pool.sks-keyservers.net--recv-key 0xb01fa116
sudo Apt-get Update
mode two: domestic sourceReference: http://blog.exbot.net/archives/2001
<pre name= "code" class= "plain" >sudo sh-c ' echo <span style= ' font-family:arial, Helvetica, Sans-serif; " > "Deb http://ros.exbot.net/rospackage/ros/ubuntu/</span><span style=" font-family:arial, Helvetica, Sans-serif; " >$ (LSB_RELEASE-SC) </span><span style= "font-family:arial, Helvetica, Sans-serif;" > main " </span><span style=" font-family:arial, Helvetica, Sans-serif; " >>/etc/apt/sources.list.d/ros-latest.list</span>
<span style= "font-family:arial, Helvetica, Sans-serif;" ></span><pre name= "code" class= "HTML" >sudo apt-get update
Two-Install Ros pack
sudo apt-get install ros-indigo-desktop-full
sudo apt-get install Python-rosinstall
Third, initialize
sudo rosdep init
rosdep update
echo "Source/opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/. Bashrc
Iv. Testing