LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing player stage. (http://www.linuxquestions.org/questions/linux-software-2/installing-player-stage-896100/)

Burrild 08-07-2011 07:49 PM

Installing player stage.
 
I'm trying to get player with stage installed on Ubuntu 11.04. I keeping getting this error.
"player: error while loading shared libraries: libplayerdrivers.so.3.0: cannot open shared object file: No such file or directory". So far I have not got player working yet so have not installed stage.
Player-Stage is for testing robots before you build them. I did the updates and did install as sudo.

Any advice would be appreciated.

corp769 08-07-2011 08:48 PM

Hello,

I have never worked with that program, so that being said.... What is the actual command you use to run it from the command line? I ask because I would like for you to run the following, and post the output of the command, along with the architecture of your processor (32 or 64 bit):
Code:

ldd -v COMMAND
Cheers,

Josh

knudfl 08-08-2011 12:09 AM

File list, libplayerdrivers3.0, i386 Ubuntu 11.04
http://packages.ubuntu.com/natty/i38...rs3.0/filelist

This command will show the location : dpkg -L libplayerdrivers3.0

If the libraries are in /usr/lib/ :

cd /usr/lib/ && sudo ln -s libplayerdrivers.so.3.0.2 libplayerdrivers.so.3

..

Burrild 08-08-2011 05:04 AM

Quote:

Originally Posted by corp769 (Post 4436346)
Hello,

I have never worked with that program, so that being said.... What is the actual command you use to run it from the command line? I ask because I would like for you to run the following, and post the output of the command, along with the architecture of your processor (32 or 64 bit):
Code:

ldd -v COMMAND
Cheers,

Josh

player /usr/local/share/player/config/dummy.cfg
is the command. I am running 64 bit ubuntu on a Alienware laptop with ubuntu 11.04 installed inside of windows 7.

reactor@ubuntu:~$ ldd -v player /usr/local/share/player/config/dummy.cfg
player:
ldd: ./player: No such file or directory
/usr/local/share/player/config/dummy.cfg:
not a dynamic executable
reactor@ubuntu:~$

Here is the output I am suppose to get when I run my command but I am not getting it.

player /usr/local/share/player/config/dummy.cfg

Registering driver

Player v.3.0.2



* Part of the Player/Stage/Gazebo Project [http://playerstage.sourceforge.net].

* Copyright (C) 2000 - 2009 Brian Gerkey, Richard Vaughan, Andrew Howard,

* Nate Koenig, and contributors. Released under the GNU General Public License.

* Player comes with ABSOLUTELY NO WARRANTY. This is free software, and you

* are welcome to redistribute it under certain conditions; see COPYING

* for details.



listening on 6665

Listening on ports: 6665

Burrild 08-08-2011 05:09 AM

Quote:

Originally Posted by knudfl (Post 4436446)
File list, libplayerdrivers3.0, i386 Ubuntu 11.04
http://packages.ubuntu.com/natty/i38...rs3.0/filelist

This command will show the location : dpkg -L libplayerdrivers3.0

If the libraries are in /usr/lib/ :

cd /usr/lib/ && sudo ln -s libplayerdrivers.so.3.0.2 libplayerdrivers.so.3

..

reactor@ubuntu:/usr/lib$ cd /usr/lib/ && sudo ln -s libplayerdrivers.so.3.0.2 libplayerdrivers.so.3
ln: creating symbolic link `libplayerdrivers.so.3': File exists
reactor@ubuntu:/usr/lib$

Does this mean I have the correct files?

knudfl 08-09-2011 12:38 PM

Suggest : Install the Ubuntu 11.04 Player package. ( It's version 3.0.2 ).

sudo apt-get install robot-player

As you can see from this link ...
http://packages.ubuntu.com/natty/robot-player
... you will then get all the packages required. ( The red dots.)

And you are absolutely sure, they all have a perfect match with Player,
and the executables :
/usr/bin/robot-player
/usr/bin/robot-playercam
/usr/bin/robot-playerjoy
/usr/bin/robot-playernav
/usr/bin/robot-playerprint
/usr/bin/robot-playerv
/usr/bin/robot-playervcr
/usr/bin/robot-playerwritemap
/usr/bin/robot-pmaptest
http://packages.ubuntu.com/natty/amd...layer/filelist

..

Burrild 08-09-2011 07:09 PM

Quote:

Originally Posted by knudfl (Post 4437956)
Suggest : Install the Ubuntu 11.04 Player package. ( It's version 3.0.2 ).

sudo apt-get install robot-player

As you can see from this link ...
http://packages.ubuntu.com/natty/robot-player
... you will then get all the packages required. ( The red dots.)

And you are absolutely sure, they all have a perfect match with Player,
and the executables :
/usr/bin/robot-player
/usr/bin/robot-playercam
/usr/bin/robot-playerjoy
/usr/bin/robot-playernav
/usr/bin/robot-playerprint
/usr/bin/robot-playerv
/usr/bin/robot-playervcr
/usr/bin/robot-playerwritemap
/usr/bin/robot-pmaptest
http://packages.ubuntu.com/natty/amd...layer/filelist

..

Well I would not believe it had I not seen it with my own eyes. Here is my output.

reactor@ubuntu:~$ robot-player /usr/share/player/config/dummy.cfg
Registering driver
Player v.3.0.2

* Part of the Player/Stage/Gazebo Project [http://playerstage.sourceforge.net].
* Copyright (C) 2000 - 2009 Brian Gerkey, Richard Vaughan, Andrew Howard,
* Nate Koenig, and contributors. Released under the GNU General Public License.
* Player comes with ABSOLUTELY NO WARRANTY. This is free software, and you
* are welcome to redistribute it under certain conditions; see COPYING
* for details.

listening on 6665
Listening on ports: 6665

Do you know if stage and gazebo can be installed with a ubuntu package? or Should I just use the tar packages? But as for installing player you solved my problem. Thanks. Moving on.....

knudfl 08-10-2011 02:06 AM

The Stage packages for Ubuntu are version 2.0.3 :
stage , libstage2 , libstage2-dev , libstageplugin1.
And may be different from version 4. See the file lists
http://packages.ubuntu.com/lucid/stage
→ → http://packages.ubuntu.com/lucid/amd64/stage/filelist

You can try to install the packages, if your version 4 fails.
(The Ubuntu packages are easy to remove later, if unwanted.)
The stage packages were created on Ubuntu 10.04 :
Add 'lucid' to /etc/apt/sources.list ...
Code:

deb http://76.73.4.58/ubuntu/ lucid main
deb http://76.73.4.58/ubuntu/ lucid universe
deb http://security.ubuntu.com/ubuntu lucid-security main
deb http://security.ubuntu.com/ubuntu lucid-security universe

The install: sudo apt-get update && sudo apt-get install stage

..

Burrild 08-10-2011 05:58 PM

Quote:

Originally Posted by knudfl (Post 4438490)
The Stage packages for Ubuntu are version 2.0.3 :
stage , libstage2 , libstage2-dev , libstageplugin1.
And may be different from version 4. See the file lists
http://packages.ubuntu.com/lucid/stage
→ → http://packages.ubuntu.com/lucid/amd64/stage/filelist

You can try to install the packages, if your version 4 fails.
(The Ubuntu packages are easy to remove later, if unwanted.)
The stage packages were created on Ubuntu 10.04 :
Add 'lucid' to /etc/apt/sources.list ...
Code:

deb http://76.73.4.58/ubuntu/ lucid main
deb http://76.73.4.58/ubuntu/ lucid universe
deb http://security.ubuntu.com/ubuntu lucid-security main
deb http://security.ubuntu.com/ubuntu lucid-security universe

The install: sudo apt-get update && sudo apt-get install stage

..

Well I got to reading this message and started down-loading before I got to the in and saw your line to install automatically over the Internet.

Anyway when I tried the line it said I already had the newest version. Here are the files for documentation just case anyone else wants to follow what I have done. I downloaded them and installed this per the software manager on ubuntu but I had to install these in order to satisfy dependencies.

Here are the files I installed to get stage.

libplayererror2_2.0
libplayercore2_2.0
libstageplugin1_2.0
libstage2_2.03
stage_2.03

I have testing stage this far using this command.

reactor@ubuntu:~$ dpkg -s stage
Package: stage
Status: install ok installed
Priority: extra
Section: science
Installed-Size: 248
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Architecture: amd64
Version: 2.0.3-2ubuntu2
Depends: libstage2, libstageplugin1, robot-player
Description: Robot simulation for Player
Player/Stage is a framework for controlling,
accessing and simulating robots and sensors.
Stage provides the simulation of robots.
.
This package includes the sample world files and
configurations for the simulator.
Original-Maintainer: Michael Janssen <jamuraa@debian.org>
reactor@ubuntu:~$

Well on the testing issue - Stage is ran with stest and player is ran with robot-player. It seems I might have some configuration issues. Here is what happened when I tested them.

Running stage
reactor@ubuntu:/usr/share/stage/worlds$ sudo stest simple.world
[sudo] password for reactor:
Stage v2.0.3 test program.
Usage: stest <worldfile> <robotname>
reactor@ubuntu:/usr/share/stage/worlds$

Running player
reactor@ubuntu:/usr/share/player/config$ robot-player simple.cfg
Registering driver
Player v.3.0.2

* Part of the Player/Stage/Gazebo Project [http://playerstage.sourceforge.net].
* Copyright (C) 2000 - 2009 Brian Gerkey, Richard Vaughan, Andrew Howard,
* Nate Koenig, and contributors. Released under the GNU General Public License.
* Player comes with ABSOLUTELY NO WARRANTY. This is free software, and you
* are welcome to redistribute it under certain conditions; see COPYING
* for details.

error : Couldn't find driver "p2os_position"
error : failed to parse config file simple.cfg driver blocks
reactor@ubuntu:/usr/share/player/config$

Burrild 08-12-2011 10:14 AM

Well I went back and started all over again. I installed both player and stage per the apt-get commands and got errors when I tried to run stage. So, I again started all over again and installed player per the apt-get command but I installed stage from source code. What I got was when I ran the player simple.cfg in the stage source file I got these errors.

error : Failed to load plugin stageplugin.
error : libtool reports error: file not found
error : plugin search path: /usr/local/lib:/home/reactor/Downloads/Stage-3.2.2-Source/worlds:.:/usr/lib/:/usr/lib/robot-player
error : failed to load plugin: stageplugin
error : failed to parse config file simple.cfg driver blocks
reactor@ubuntu:~/Downloads/Stage-3.2.2-Source/worlds$

Now when I ran robot-player from the /usr/share/player/config/simple.cfg I got these errors

reactor@ubuntu:/usr/share/player/config$ ls
afsm.cfg mapfile.cfg searchpattern_symbols.ps
afsm.eps mbicp.cfg segwayrmp.cfg
amigobot.cfg nomad.cfg service_adv.cfg
amigobot_tcp.cfg obot.cfg simple.cfg
amtecM5.cfg passthrough.cfg sphere.cfg
b21r_rflex_lms200.cfg phidgetIFK.cfg umass_ATRVJr.cfg
cvcam.cfg phidgetRFID.cfg umass_ATRVMini.cfg
dummy.cfg pioneer.cfg umass_reb.cfg
erratic.cfg pioneer_rs4euze.cfg urglaser.cfg
hokuyo_aist.cfg pointcloud3d.cfg vfh.cfg
iwspy.cfg readlog.cfg wavefront.cfg
joystick.cfg rfid.cfg wbr914.cfg
lms400.cfg roomba.cfg writelog.cfg
magellan.cfg searchpattern.cfg wsn.cfg
reactor@ubuntu:/usr/share/player/config$ robot-player simple.cfg
Registering driver
Player v.3.0.2

* Part of the Player/Stage/Gazebo Project [http://playerstage.sourceforge.net].
* Copyright (C) 2000 - 2009 Brian Gerkey, Richard Vaughan, Andrew Howard,
* Nate Koenig, and contributors. Released under the GNU General Public License.
* Player comes with ABSOLUTELY NO WARRANTY. This is free software, and you
* are welcome to redistribute it under certain conditions; see COPYING
* for details.

error : Couldn't find driver "p2os_position"
error : failed to parse config file simple.cfg driver blocks
reactor@ubuntu:/usr/share/player/config$

Now here is the kicker. When I ran stage simple.world I got the nice big window to move and play with the robot. I also ran another world file and again I got the nice big window that looked at pac-man with a robot and it worked. But, my robot-player is not playing its simple.cfg file. Huh.......... Back to the drawing board. Any help would be greatly appreciated.

Well I went back to loading the source code and come back full circle to where I was from the beginning. Here is my error.

reactor@ubuntu:/usr/local/share/player/config$ player simple.cfg
player: error while loading shared libraries: libplayertcp.so.3.0: cannot open shared object file: No such file or directory

knudfl 08-13-2011 02:09 PM

Quote:

player: error while loading shared libraries: libplayertcp.so.3.0:
cannot open shared object file: No such file or directory
libplayertcp.so.3.0 is provided by the package 'libplayertcp3.0'.

You can still see all the packages here :
http://packages.ubuntu.com/source/natty/player

Burrild 08-13-2011 05:25 PM

Quote:

Originally Posted by knudfl (Post 4442030)
libplayertcp.so.3.0 is provided by the package 'libplayertcp3.0'.

You can still see all the packages here :
http://packages.ubuntu.com/source/natty/player

I went back and installed the missing libs but I did not install the player because I used the source. And it worked but to a certain degree. Per some advice I got from the player stage mailing list I had to edit my simple.cfg file and change p2os_position to just p2pos. When I ran the script again now I get my intended output.

reactor@ubuntu:~/Downloads/player-3.0.2/config$ player simple.cfg
Registering driver
Player v.3.0.2

* Part of the Player/Stage/Gazebo Project [http://playerstage.sourceforge.net].
* Copyright (C) 2000 - 2009 Brian Gerkey, Richard Vaughan, Andrew Howard,
* Nate Koenig, and contributors. Released under the GNU General Public License.
* Player comes with ABSOLUTELY NO WARRANTY. This is free software, and you
* are welcome to redistribute it under certain conditions; see COPYING
* for details.

listening on 6665
Listening on ports: 6665


Now I am going back to install stage and I hope to lord it works this time. Thank you for pointing those libs out to me. I will be back with my stage results.

Well I used the source code to install stage then went back to the ubuntu libraries to get the specific libs I needed because I was getting errors about not finding stuff then I started getting memory segmentation errors. No luck yet.

Burrild 08-13-2011 11:18 PM

Well I downloaded a live cd from pyrorobitics.org strangly enough it was done with ubuntu 10.4 which is what I should of used to begin with. So I will just use this. Thanks everyone for your help.


All times are GMT -5. The time now is 10:57 AM.