ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks Mikisoft!

installation of cv_bridge was working for the first time! but now other packages like diagnostic_aggregates wont work and crashes with boost errors. now i try a clean wheezy installation and try to fist of all installing libboost 1.59

Thanks Mikisoft!

installation of cv_bridge was working for the first time! but now other packages like diagnostic_aggregates wont work and crashes with boost errors. now i try a clean wheezy installation and try to fist of all installing libboost 1.59

here is what i try to do:

my setup: raspberry pi 2 b v 1.1 32gb sdcard raspbian wheezy 2015-05-05-0

i followed these instructiones:

First boot on your raspberry

Once you are connecting to your raspberry you must prepare it.

$ sudo raspi-config You could:

Expand filesystem. Change your password. Set up language and regional settion

ROS indigo

Installing ROS in raspbian

Prerequisites

Setup ROS Repositories

$ sudo sh -c '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 -

Now, make sure your Debian package index is up-to-date:

$ sudo apt-get update $ sudo apt-get upgrade

Install bootstrap dependencies

$ sudo apt-get install python-setuptools $ sudo easy_install pip $ sudo pip install -U rosdep rosinstall_generator wstool rosinstall

Initializing rosdep

$ sudo rosdep init $ rosdep update

Create a catkin Workspace

In order to build the core packages, you will need a catkin workspace. Create one now:

$ mkdir ~/ros_catkin_ws $ cd ~/ros_catkin_ws

$ rosinstall_generator ros_comm diagnostics joystick_drivers robot_upstart bond_core dynamic_reconfigure nodelet_core rosserial class_loader image_common vision_opencv image_transport_plugins --rosdistro indigo --deps --wet-only --exclude roslisp --tar > indigo-antdroid-wet.rosinstall $ wstool init -j8 src indigo-antdroid-wet.rosinstall

Dependencies not available in the Raspbian stable branch

We need install libconsole-bridge-dev and liblz4-dev for Ros_Comm: These packages can be built from source in a new directory (Also install checkinstall and cmake):

$ mkdir ~/ros_catkin_ws/external_src $ sudo apt-get install checkinstall cmake $ sudo sh -c 'echo "deb-src http://mirrordirector.raspbian.org/raspbian/ testing main contrib non-free rpi" >> /etc/apt/sources.list' $ sudo apt-get update libconsole-bridge-dev:

$ cd ~/ros_catkin_ws/external_src $ sudo apt-get build-dep console-bridge $ apt-get source -b console-bridge $ sudo dpkg -i libconsole-bridge0.2.deb libconsole-bridge-dev_.deb

liblz4-dev: Install with the following: Install with the following:

$ cd ~/ros_catkin_ws/external_src $ wget http://archive.raspbian.org/raspbian/pool/main/l/lz4/liblz4-1_0.0~r122-2_armhf.deb $ wget http://archive.raspbian.org/raspbian/pool/main/l/lz4/liblz4-dev_0.0~r122-2_armhf.deb $ sudo dpkg -i liblz4-1_0.0~r122-2_armhf.deb liblz4-dev_0.0~r122-2_armhf.deb

Resolving Dependencies with rosdep

The remaining dependencies should be resolved by running rosdep:

$ cd ~/ros_catkin_ws $ rosdep install --from-paths src --ignore-src --rosdistro indigo -y -r --os=debian:wheezy

Invoke catkin_make_isolated:

$ sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros

Now ROS should be installed! Remember to source the new installation:

$ echo 'source /opt/ros/indigo/setup.bash' >> ~/.bashrc Then you must reboot or execute:

$ source /opt/ros/indigo/setup.bash