The Snapdragon should now have Internet, and you should be connected to it via SSH or have a working GUI. Now you can install ROS.
These instructions come from the ROS Ubuntu ARM installation instructions. They have been adapted below for ease of access.
Set your system locale:
sudo update-locale LANG=C LANGUAGE=C LC_ALL=C LC_MESSAGES=POSIX
Set up your sources.list to accept packages from packages.ros.org (ARM mirror):
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
Set up your keys:
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
Update your Debian package index:
sudo apt-get update
Install ROS Indigo Base:
sudo apt-get install ros-indigo-ros-base
The previous step installs a bare bones version of ROS that has the package, communication, and build libraries, but no GUI tools. Many ROS packages do not yet compile on ARM. We will build the individual packages that we need from source in the next section.
Install and initialize rosdep:
sudo apt-get install python-rosdep
sudo rosdep init
rosdep update
Add ROS environment variables to your .bashrc file:
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
Install rosinstall:
apt-get install python-rosinstall
Verify the OS name by running cat /etc/lsb-release
and verify that your OS name is defined as the following:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04"
This is because ROS doesn't recognize Linaro as an Operating System, so it should be set to Ubuntu 14.04. If it is different, edit the file to match name definition above.
Now that you have completed these steps, you can set up your ROS workspace in the same manner as on a desktop system.
Since the version of ROS we installed doesn't come with any GUI tools, we will have to install the packages we want.
To view a list of all available ROS packages, run
apt-cache search ros-indigo
Any ROS package with an available build can be installed by replacing underscores in the package name with dashes and prefixing with "ros-indigo-", e.g.:
sudo apt-get install ros-indigo-package-name
For example, to install image_view, run:
sudo apt-get install ros-indigo-image-view
Also install libuvc_camera and uvc_camera packages so we can use a USB webcam:
sudo apt-get install ros-indigo-libuvc-camera ros-indigo-uvc-camera
If you want to use a ROS package that is not available in the Debian repositories, you will have to build it from source. These packages are not fully supported on ARM processors and may not work as expected. Use with caution!