Official Installation Tutorial Address:
http://wiki.ros.org/ros/installation
Chinese installation Tutorial
http://lib.csdn.net/article/embeddeddevelopment/30200
Raspberry Pi operating system for Raspbian, installed Ros version for Indigo
First add Ros repositories to the source and update the source and system
' echo "Deb Http://packages.ros.org/ros/ubuntu wheezy main" >/etc/apt/sources.list.d/ros-latest.list ' $ wget https: // Raw.githubusercontent.com/ros/rosdistro/master/ros.key-o-| sudo apt-key add-$ sudo apt-get update$ sudo apt-get Upgrade
Install the necessary dependencies
$ sudo apt-get install python-setuptools python-pip python-yaml python-argparse python-distribute Python-docutils python-dateutil python-setuptools python-six$ sudo pip install rosdep rosinstall_generator wstool Rosinstall
Configure ROSDEP
$ sudo rosdep init$ rosdep update
Fetch source Code
Create a new Catkin workspace to compile the installation file
$ mkdir ~/~/ros_catkin_ws
Fetch the source code to the directory. Ros-comm it contains only some basic software, no graphical tools, Destop has complete Ros function, suitable for all robot applications. I choose to install this.
Rosinstall_generator Desktop--rosdistro Indigo--deps--wet-only--exclude roslisp--tar > indigo-desktop-- J8 src Indigo-desktop-wet.rosinstall
If the download is interrupted in the middle, the following command will download
4 -t SRC
Install some packages that are not in the Raspbian warehouse
$ mkdir ~/ros_catkin_ws/external_src$ sudo apt-get'echo ' DEB-SRC/HTTP/ Mirrordirector.raspbian.org/raspbian/testing Main contrib non-free RPI ">>/etc/apt/sources.list" $ sudo apt-get update
Install Libconsole-bridge-dev:
$ cd ~/ros_catkin_ws/external_src$ sudo apt-get build-dep console-bridge$ apt-get source-b console--I libconsole-bridge0.2_*.deb libconsole-bridge-dev_*.deb
Install Liblz4-dev, take a long time, please wait patiently:
$ cd ~/ros_catkin_ws/external_src$ apt-get Source--I Liblz4-*.deb
Use ROSDEP to resolve other dependency issues:
$ cd ~/--from-paths src--ignore-src--rosdistro indigo-y-R--os=debian:wheezy
Compile:
$ sudo./src/catkin/bin/catkin_make_isolated--install-dcmake_build_type=release--install-space/opt/ros/indigo
Once the compilation is complete, Indigo is installed and the installation location is/opt/ros/indigo. Then deal with the source:
$ source/opt/ros/indigo/setup.bash
Try running the resource command, and if it works, Ros Indigo will install successfully!
Installing Ros on the raspberry