ROS on the Raspberry Pi

Setup

From SD Robotics Club at RoboLink ROS Workshop and
http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi
This hopes to support installing ROS Jade on current versions of Raspian. IT IS NOT TESTED!

  1. Update the install packages
    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
    bunch of junk with imported: 1 at the end. {Ed: Or try:
    wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
    }
     
  2. Make sure everything is up to date with:
    sudo apt-get update
  3. Install the dependancies
    sudo apt-get install python-pip python-setuptools python-yaml python-distribute python-docutils python-dateutil python-six
    sudo pip install rosdep rosinstall_generator wstool rosinstall

    (note on Raspbian Wheezy you may need to add  python-argparse after yaml.)
     
  4. sudo rosdep init
     
  5. rosdep update
     
  6. Setup the catkin build system:
    mkdir ~/ros_catkin_ws
    cd ~/ros_catkin_ws
    rosinstall_generator ros_comm --rosdistro jade --deps --wet-only --tar > jade-ros_comm-wet.rosinstall
    wstool init -j8 src jade-ros_comm-wet.rosinstall

     
  7. Resolve and install dependencies
    rosdep install --from-paths src --ignore-src --rosdistro jade -y
     
  8. Build the catkin workspace:
    ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
    you should find setup.bash in ~/ros_catkin_ws/install_isolated
     
  9. echo "source ~/ros_catkin_ws/install_isolated/setup.bash" >> ~/.bashrc
     
  10. source ~/.bashrc