Does nobody have an idea regarding my problem?

 

 

Von: Manuel Vossel [mailto:M.Vossel@gmx.de]
Gesendet: Mittwoch, 21. September 2011 15:42
An: playerstage-users@lists.sourceforge.net
Betreff: [Playerstage-users] problems with playerv

 

Hi,

 

I have a problem controlling a robot in gazebo with player.

 

 

First I start gazebo:

 

$ gazebo /usr/local/share/gazebo/worlds/custom.world

Gazebo multi-robot simulator, version 0.10.0

 

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

Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors.

Released under the GNU General Public License.

 

[/root/Documents/gazebo-0.10.0/server/GazeboConfig.cc:103]

  Gazebo Path[/usr/local/share/gazebo]

[/root/Documents/gazebo-0.10.0/server/GazeboConfig.cc:115]

  Ogre Path[/usr/local/lib/OGRE]

directory [/tmp/gazebo-root-0] already exists (previous crash?)

but the owner gazebo server (pid=23752) is not running.

deleting the old information of the directory [/tmp/gazebo-root-0]

[/root/Documents/gazebo-0.10.0/server/sensors/Sensor.cc:155]

  laser_1 sensor has no controller.

Gazebo successfully initialized

 

 

 

Then I start player:

 

$ player /usr/local/share/gazebo/player/custom.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.

 

invoking player_driver_init()...

 

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

* Copyright 2000-2006 Richard Vaughan, Andrew Howard, Brian Gerkey, Nathan Koenig

* and contributors. Released under the GNU General Public License v2.

success

  Gazebo Plugin driver creating 1 device

    6665.31.0 is  a simulation interface.

opening /tmp/gazebo-root-0/simulation.default 112 33842432

opening /tmp/gazebo-root-0/simulation.default +112 33842432

  Gazebo Plugin driver creating 1 device

    6665.4.0 is  a position2d interface.

  Gazebo Plugin driver creating 1 device

    6665.6.0 is  a laser interface.

listening on 6665

Listening on ports: 6665

 

 

 

And now I start playerv:

 

$ playerv -h localhost

PlayerViewer 3.0.2

Connecting to [localhost:6665]

playerc warning   : warning : [Player v.3.0.2] connected on [localhost:6665] with sock 6

 

Available devices: localhost:6665

simulation:0     gazebo                                  unsupported

position2d:0     gazebo                                  ready

laser:0          gazebo                                  ready

 

 

 

Up to this point everything works fine, but if I now want to subscribe to position2d oder laser, I get this messages:

 

playerc error   : timed out waiting for server reply to request player:0:request:3

playerc error   : failed to get response

playerv : error in /root/Documents/player-3.0.2/utils/playerv/pv_dev_laser.c

  libplayerc error: failed to get response

playerc error   : socket disconnected

playerc warning   : warning : failed to reconnect

playerv : error in /root/Documents/player-3.0.2/utils/playerv/pv_dev_laser.c

  libplayerc error: warning : failed to reconnect

playerc warning   : warning : no socket to peek at

playerc warning   : warning : no socket to peek at

 

 

Does anybody know what the problem is?

 

I attached my two files custom.world and custom.cfg.

 

Thanks for your reply,

Manuel

 

 

PS: Is there a good tutorial/documentation for gazebo with player and the handling of playerv?

The manual for gazebo on sourceforge actually isn't up to date...

If I try to define a controller in custom.world like it's described in the tutorial on sourceforge, I geht this error:

Error Loading Gazebo

/root/Documents/gazebo-0.10.0/server/Simulator.cc:235 : Exception: Failed to load the World

/root/Documents/gazebo-0.10.0/server/controllers/ControllerFactory.cc:66 : Exception: Unable to make controller of type pioneer2dx_position2d