Installing Ros on the raspberry

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.