LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-07-2011, 07:49 PM   #1
Burrild
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Rep: Reputation: Disabled
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.
 
Old 08-07-2011, 08:48 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
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
 
Old 08-08-2011, 12:09 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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

..
 
Old 08-08-2011, 05:04 AM   #4
Burrild
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by corp769 View Post
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
 
Old 08-08-2011, 05:09 AM   #5
Burrild
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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?
 
Old 08-09-2011, 12:38 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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

..
 
Old 08-09-2011, 07:09 PM   #7
Burrild
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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.....
 
Old 08-10-2011, 02:06 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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

..

Last edited by knudfl; 08-10-2011 at 02:09 AM.
 
Old 08-10-2011, 05:58 PM   #9
Burrild
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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$

Last edited by Burrild; 08-10-2011 at 07:08 PM.
 
Old 08-12-2011, 10:14 AM   #10
Burrild
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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

Last edited by Burrild; 08-12-2011 at 12:11 PM. Reason: spelling error
 
Old 08-13-2011, 02:09 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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
 
Old 08-13-2011, 05:25 PM   #12
Burrild
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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.

Last edited by Burrild; 08-13-2011 at 07:11 PM.
 
Old 08-13-2011, 11:18 PM   #13
Burrild
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
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.

Last edited by Burrild; 08-13-2011 at 11:20 PM.
 
  


Reply

Tags
player, robots, simulation, stage


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Player-Stage and .cc (c++) files ksatyaki Programming 10 09-05-2011 09:47 AM
Yet another Player-Stage problem ksatyaki Linux - Software 6 06-19-2011 08:16 AM
Error installing Player/Stage/Gazebo ksatyaki Linux - Software 1 01-24-2011 03:35 PM
help needed installing SUSE 10.0 (stage 1.5 error) richardguth Linux - Newbie 6 02-21-2006 08:39 AM
Half of my applications are broken. I am using Gentoo stage 1 on 3 nptl (stage 1.5) dragonslay Linux - Games 3 04-01-2005 05:23 PM


All times are GMT -5. The time now is 06:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration