[Documentation] [TitleIndex] [WordIndex

  Show EOL distros: 

OpenSUSE Installation

SVN Based Install (download-and-compile)

Pre-installation

  • Install required packages

sudo zypper install cmake subversion mercurial 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
  • Install pyyaml

sudo easy_install pyyaml

Note This command did not work as a unprivileged user on openSuSE 11.2 behind an authenticating proxy, even with the $http_proxy variable set. Doing an su and then running easy_install pyyaml worked.

  • 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

Then use rosinstall to download your preferred C-Turtle variant:

  • ROS-only: Includes basic ROS and tutorials.

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

    Base Install: ROS plus robot-generic stacks (e.g. navigation, visualization)

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

    PR2 Install: ROS plus PR2-specific stacks, including PR2 simulator.

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

    PR2 All Install: ROS plus PR2 and bleeding edge research/experimental stacks.

    • rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=cturtle&variant=pr2all&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.

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.

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.

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 using pip (advanced options for pip):

  • sudo pip install -U rosinstall vcstools

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=electric&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=electric&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=electric&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=electric&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 113 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.

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[tested with opensuse 11.2] with devel versions(for installing fuerte-Full)[preferably from source] using yast or openSUSE(11.4) build service or from source



.install opengl
.install bzip2 library from source
.install cmake
.install lib flann
.if your python version is less than 2.7, then install python 2.7 and replace older python install
.install python setuptools
.install pip for python
.install yaml
.install lib curl
.install git latest[replace older git]
.install lib freeImage
.install wxWidgets & wxPython
.install fltk
.install boost
.install gtest
.install matplotlib
.install apache-log4cxx [will have compile issues - solve by including following headers ... cstdio , cstdlib, cstring]
.install cg [this might be available only as binary and headers from nvidia]
.install freeglut
.install libXrandr
.install Qt
.install empy for python
.install nose for python
.install yamlcpp (libyaml)
.install libeigen3

  • Note: rosmake shall not function on opensuse with rospkg versions 1.0.2 and earlier. I found this issue of ros fuerte on opensuse. After installing ros, rosmake fails to function as it calls to a rospkg python script os_detect.py function get_codename() which is not implemented for open suse. My temporary work around was to modify os_detect.py in class opensuse add a dummy function(i do not know python yet)

def get_codename(self):

  • return ('opensuse-11_2')

Then uninstall rospkg
Lastly build & install rospkg from source

  • 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 steps requires two separate installation steps and will compile ROS-related code into two separate places/layers:

  1. Download and install the underlying core ROS libraries and tools into /opt/ros/fuerte.

  2. Download and build some higher-level ROS libraries using rosmake in ~/ros.

The compiled code from (1) is installed into /opt/ros/fuerte. While it is possible to install elsewhere (e.g. /usr), this is not well tested and you will encounter various problems along the way (e.g. having to change rosinstall files, having to manually install system dependencies, etc...). Please see REP 122: Filesystem Hiearchy Layout for more detailed documentation on how the installed files are placed.

The compiled code from (2) is simply built using rosmake, which is familiar to users of previous versions of ROS. The higher-level ROS stacks are download and build in subdirectories inside the ~/ros directory.

First install rosinstall, rospkg and rosdep as described in their instructions:

If you have trouble using rosws/rosinstall, you can manually download the projects by investigating the respective rosinstall file.

Layer 1: Install core libraries

The following instructions will create a system install of the core ROS libraries and tools. The installation is done using standard CMake/make tools, so experts can adjust to their liking.

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

    • rosinstall --catkin ~/ros-underlay http://ros.org/rosinstalls/fuerte-ros-full.rosinstall

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

    • rosinstall --catkin ~/ros-underlay http://ros.org/rosinstalls/fuerte-ros-base.rosinstall

For people having trouble with rosinstall or catkin on their particular OS: If you have downloaded the source files in a different way, you need to run catkin_init_workspace ~/ros-underlay. This script is part of catkin, which should by now also at least be in your workspace, you can use the script without installing catkin. It should create a suitable global CMakeLists.txt to use in the next step.

If you do not want to use catkin, follow standard cmake procedure for building cmake packages, and install the packages in the dependency order by manually checking the package.xml declarations.

Build and install the underlay into /opt/ros/fuerte:

  • cd ~/ros-underlay
    mkdir build
    cd build

Now, run cmake. The invocation depends on the platform you are on:

  • Debian-based platforms (e.g. Ubuntu, Mint) use:
    cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte
    Other platforms use:
    cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -DSETUPTOOLS_DEB_LAYOUT=OFF

Finally, build + install the code:

  • make -j8
    sudo make install

Useful TIP: If you encounter problems with the make command due to "Unable to find 'swig.swg'" and "Unable to find 'python.swg'" errors then it probably due to the installation script having placed /swig at the toplevel/root directory.

To get around this problem do the following (and then restart make process as above)

cd /
sudo cp -r /swig /usr/local/share
cd ~/ros-underlay/build

Useful TIP: If you are having trouble with the make install command due to lib64 and lib problems, a work around is

cd /opt/ros/fuerte/
sudo mv lib/* lib64/
sudo rmdir lib
sudo ln -s lib64 lib

This makes the lib and the lib64 directory linked together and the make install command should work now.

Verify the installed environment:

  • . /opt/ros/fuerte/setup.sh
    which roscore

You should see:

  • /opt/ros/fuerte/bin/roscore

You can delete ~/ros-underlay now, if you wish. The ROS core libraries are now installed onto your system.

Layer 2: Higher-level robotics libraries and tools

Now it's time to create the second layer, which contains your main robotics libraries (e.g. navigation) as well as visualization tools like rviz. You will build this layer using rosmake, but it is not installed.

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

NOTE: The rosinstall installation files below assume that you've installed into /opt/ros/fuerte, so you will need to change them manually if you have a different install path.

  • 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=fuerte&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=fuerte&variant=desktop&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 113 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

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

source ~/ros/setup.zsh

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.zsh" >> ~/.zshrc
. ~/.zshrc

Build Higher-level/tools (Layer 2)

First, initialize your rosdep. ROS Fuerte comes with rosdep 2. If you get a message that your default sources list exists, then don't worry as it means you've done this before.

  • sudo rosdep init
    rosdep update

Now, use rosdep 2 to install system dependencies. Many of the system dependencies will install into /opt/ros/fuerte and will not be usable if you have changed the installation prefix.

  • rosdep install -a

Useful TIP: to get rid of constant prompts of being sure with proceeding, you can use -y switch to tell the package manager to default 'Yes' while installing.

  • rosdep install -ay

Finally, build the ROS stacks using rosmake.

  • rosmake -a

Tutorials

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

NOT SUPPORTED


2024-11-23 12:58