OpenSUSE Installation

SVN Based Install (download-and-compile)

Pre-installation

  • install mercurial
  • install cmake subversion

sudo zypper install cmake subversion python-setuptools gcc gcc-c++
  • install libyaml from source.

wget http://pyyaml.org/download/libyaml/yaml-0.1.3.tar.gz -O ~/yaml-0.1.3.tar.gz
tar -xzf ~/yaml-0.1.3.tar.gz
cd ~/yaml-0.1.3 && ./configure && make && sudo make install
  • easyinstall pyyaml

sudo easy_install pyyaml
  • Install following dependencies with devel versions(for installing Desktop-Full, also installing Gazebo) using yast or openSUSE(11.4) build service or from source

    1. wxWidgets
    2. Python-wxWidgets
    3. python-matplotlib, python-matplotlib-wx
    4. fltk
    5. Cg (Nvidia)
    6. python-imaging
    7. python-paramiko
    8. python-yaml
    9. log4cxx (source install from Apache, will need to fix few files with missing #include's cstring, cstdlib, cstdio etc.)
    10. gtest (source install from google code)
    11. libfreeimage
    12. freeglut
    13. libyaml
    14. libxrandr

  • The rosdep cannnot detect the OpenSUSE OS the commands below will fail to detect the os, add a "-n" option to not automatically build. Then you will need to build manually like this, after manuallly resolving the dependencies.

. ~/ros/setup.sh
rosmake --no-rosdep rostest

rosinstall

The following lines will download the ROS source code using the rosinstall tool, and bootstrap the installation. The installation downloads all ROS stacks in subdirectories inside the ~/ros directory, one subdirectory for each stack in the rosinstall file.

First install rosinstall:

  • sudo easy_install -U rosinstall

There are many different libraries and tools in ROS. We provided four default configurations to get you started.

  • Desktop-Full Install: (Recommended): ROS Full, rviz, robot-generic libraries, 2D/3D simulators, navigation and 2D/3D perception

    • rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=diamondback&variant=desktop-full&overlay=no"

    Desktop Install: : ROS Full, rviz, and robot-generic libraries

    • rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=diamondback&variant=desktop&overlay=no"

    ROS-Full: ROS package, build, communication, and graphical tools.

    • rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=diamondback&variant=ros-full&overlay=no"

    ROS-Base: (Bare Bones) ROS package, build, and communication libraries.

    • rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=diamondback&variant=ros-base&overlay=no"

NOTE: the instructions above download all stacks inside the ~/ros folder. If you prefer a different location, simply change the ~/ros in the commands above.

Please reference REP 108 for description of other available configurations.

Environment Setup

Shell language:   Bash     Zsh    

You'll now need to update your environment. You can do this by typing:

source ~/ros/setup.bash

It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched, which you can do with the command below:

echo "source ~/ros/setup.bash" >> ~/.bashrc
. ~/.bashrc

For Zsh users, change the last line of ~/ros/setup.zsh to

source $ROS_ROOT/tools/rosbash/roszsh

before running source ~/ros/setup.zsh Similarly, have the setup script called at the start of each new shell session with

echo "source ~/ros/setup.zsh" >> ~/.zshrc
. ~/.zshrc

Tutorials

Now, to test your installation, please proceed to the ROS Tutorials.

Wiki: diamondback/Installation/OpenSUSE (last edited 2011-07-05 06:22:52 by Mandeep)