Wednesday, November 25, 2009

Player 2.1.2 Stage 2.1.1 installation guide

We installed Player/Stage today.

The version of Ubuntu in which we did this is 9.04. Following are the steps we took
for the installation:

1. Check for all of the available updates and install them.

2. Install all the packages included in this wiki:
http://www.control.aau.dk/~tb/wiki/index.php/Installing_Player_and_Stage_in_Ubuntu

3. With the installation cd inside go to the synaptic package manager and then to settings/repositories. Activate the option that says “Cdrom with Ubuntu 9.04”. Then go to the Third Party Software tab and activate all of the options available.
Finally, go to the Updates tab and activate the “Proposed updates” option. Reload the synaptic.

4. Download from http://playerstage.sourceforge.net/ the 2.1.2 version of Player and the 2.1.1 version of Stage.

5. Unpack Player-2.1.2.tar.gz
$ tar xzvf player-2.1.2.tar.gz

6. When configuring player including all of the default drivers, we got several errors related to the vec2map driver. That is why we disabled it as follows. Inside the directory in which you unpacked this file type:

$ ./configure –disable-vec2map

7. After this type

$ make
$ sudo make install

At this point Player should have successfully been installed. The following step is to install Stage.

8. Unpack Stage-2.1.1-tar.gz

$ tar xzvf stage-2.1.1-tar.gz

9. Then type:

$ ./configure
$ make
$ sudo make install

10. The rgb.txt file was omitted in this version of Ubuntu. Therefore, you must create this file in the corresponding directory. Go to the following directory:

$ cd usr/X11R6

And then create a new directory as follows:

$ sudo mkdir lib/X11

Inside this directory create a file named rgb.txt with the content included in this link

http://osdir.com/ml/science.robotics.playerstage.cvs/2008-01/msg00023.html

11. After completing this step you must make a dynamic link in order for the libraries to be loaded successfully. You can do this also by modifying the .bashrc file. We however found this option a lot easier and faster.

$ sudo ldconfig

12. Finally test the correct installation of both player and stage:

$ player usr/local/share/stage/worlds/simple.cfg

Have a nice day!

No comments:

Post a Comment