Robot Lab(Spring 2009)/Player-Stage-Gazebo
(New page: =Installation= ==Ubuntu== #Player: <code>sudo apt-get install robot-player</code> #Stage: <code>sudo apt-get install stage</code> ==Mac OS X== #Install [http://www.macports.org/ MacPorts]...) |
(→/usr/X11R6/lib/X11/rgb.txt does not exist) |
||
| (18 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
=Installation= | =Installation= | ||
| + | My suggestion is installing everything in an Ubuntu VM. Full documentation for Player, Stage and Gazebo can be found [http://playerstage.sourceforge.net/index.php?src=doc here]. | ||
==Ubuntu== | ==Ubuntu== | ||
#Player: <code>sudo apt-get install robot-player</code> | #Player: <code>sudo apt-get install robot-player</code> | ||
| Line 12: | Line 13: | ||
#Visit [http://playerstage.sourceforge.net/ Player/Stage Source Forge page] | #Visit [http://playerstage.sourceforge.net/ Player/Stage Source Forge page] | ||
#Follow the instructions listed in the [http://playerstage.sourceforge.net/index.php?src=doc manual] section | #Follow the instructions listed in the [http://playerstage.sourceforge.net/index.php?src=doc manual] section | ||
| + | OR you can download the RoboDeb VM. This will only install the Player client libraries (no player server, stage or gazebo pre-installed). | ||
| + | #Download and install [http://www.vmware.com/products/player/ VMWare Player]. | ||
| + | #Download the [http://www.transterpreter.org/robodeb/ RoboDeb VMWare Image]. | ||
| + | #Launch the image inside the VMWare player. | ||
| + | |||
| + | ==Gazebo== | ||
| + | You will need these [http://playerstage.sourceforge.net/doc/Gazebo-manual-0.8.0-pre1-html/prerequisites.html prerequisites], plus Boost (libboost-dev). | ||
| + | #Follow the instructions [http://playerstage.sourceforge.net/doc/Gazebo-manual-0.8.0-pre1-html/install.html here] to install. | ||
| + | #Install quirks you will probably run into: | ||
| + | ##Add <code>#include <cstring></code> to server/gui/StatusBar.cc | ||
| + | ##Run <code>sudo scons install</code> twice to install without errors. | ||
| + | |||
| + | =Configuration= | ||
| + | Example files discussed in class can be found [[Media:Psg-config.zip]]. | ||
| + | |||
| + | =Client Files= | ||
| + | Example files discussed in class and included in the Player install can be found [[Media:Psg-examples.zip]]. | ||
| + | |||
| + | =Compiling/Running= | ||
| + | For example, lets say you have a program called program.cc | ||
| + | |||
| + | Compile: <code>g++ -o program `pkg-config --cflags playerc++` program.cc `pkg-config --libs playerc++`</code> | ||
| + | |||
| + | Run Player: <code>player simple.cfg</code> | ||
| + | |||
| + | Run program: <code>./program</code> | ||
| + | |||
| + | =Common Problems= | ||
| + | |||
| + | ==No command 'player' found...== | ||
| + | No command 'player' found, did you mean: | ||
| + | Command 'kplayer' from package 'kplayer' (multiverse) | ||
| + | Command 'qplayer' from package 'qdvdauthor' (multiverse) | ||
| + | Command 'splayer' from package 'somaplayer' (universe) | ||
| + | Command 'mplayer' from package 'mplayer-nogui' (multiverse) | ||
| + | Command 'prayer' from package 'prayer' (universe) | ||
| + | player: command not found | ||
| + | |||
| + | This is what happens in Ubuntu if you try to execute a program that does not exist. The name of the executable is 'robot-player'. | ||
| + | |||
| + | ==/usr/X11R6/lib/X11/rgb.txt does not exist== | ||
| + | |||
| + | This file does exist, just not where Player is expecting it. Try making a symlink at this location. | ||
| + | mkdir -p /usr/X11R6/lib/X11 | ||
| + | cd !$ | ||
| + | ln -s /usr/share/X11/rgb.txt | ||
| + | |||
| + | If you don't have rgb.txt in that directory on your machine try using ''locate rgb.txt'' to find it. | ||
Latest revision as of 12:05, 2 April 2010
Contents |
Installation
My suggestion is installing everything in an Ubuntu VM. Full documentation for Player, Stage and Gazebo can be found here.
Ubuntu
- Player:
sudo apt-get install robot-player - Stage:
sudo apt-get install stage
Mac OS X
- Install MacPorts
- Player:
sudo port install playerstage-player - Stage:
sudo port install playerstage-stage
Windows XP/Vista or Other
- Visit Player/Stage Source Forge page
- Follow the instructions listed in the manual section
OR you can download the RoboDeb VM. This will only install the Player client libraries (no player server, stage or gazebo pre-installed).
- Download and install VMWare Player.
- Download the RoboDeb VMWare Image.
- Launch the image inside the VMWare player.
Gazebo
You will need these prerequisites, plus Boost (libboost-dev).
- Follow the instructions here to install.
- Install quirks you will probably run into:
- Add
#include <cstring>to server/gui/StatusBar.cc - Run
sudo scons installtwice to install without errors.
- Add
Configuration
Example files discussed in class can be found Media:Psg-config.zip.
Client Files
Example files discussed in class and included in the Player install can be found Media:Psg-examples.zip.
Compiling/Running
For example, lets say you have a program called program.cc
Compile: g++ -o program `pkg-config --cflags playerc++` program.cc `pkg-config --libs playerc++`
Run Player: player simple.cfg
Run program: ./program
Common Problems
No command 'player' found...
No command 'player' found, did you mean: Command 'kplayer' from package 'kplayer' (multiverse) Command 'qplayer' from package 'qdvdauthor' (multiverse) Command 'splayer' from package 'somaplayer' (universe) Command 'mplayer' from package 'mplayer-nogui' (multiverse) Command 'prayer' from package 'prayer' (universe) player: command not found
This is what happens in Ubuntu if you try to execute a program that does not exist. The name of the executable is 'robot-player'.
/usr/X11R6/lib/X11/rgb.txt does not exist
This file does exist, just not where Player is expecting it. Try making a symlink at this location.
mkdir -p /usr/X11R6/lib/X11 cd !$ ln -s /usr/share/X11/rgb.txt
If you don't have rgb.txt in that directory on your machine try using locate rgb.txt to find it.