SVN Based Install (download-and-compile)
- 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
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.
You'll now need to update your environment. You can do this by typing:
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
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
Now, to test your installation, please proceed to the ROS Tutorials.