#136 More than one of the same device in stage doesn't work

closed-fixed
stage (111)
5
2006-03-15
2005-07-23
Michael Janssen
No

Using more than one of the same device on the same
model doesn't work at all - the second and subsequent
devices are not instantiated.

blobtest.cfg:
driver
(
name "stage"
provides ["simulation:0"]
plugin "libstageplugin.so"
worldfile "blobtest.world"
)

# robot 0
driver(
name "stage"
provides ["6665:position:0" "6665:blobfinder:0"
"6665:blobfinder:1"]
model "p0"
)

blobtest.world:
# Desc: Stage demo with lots of models. Works with
everything.cfg.
# CVS: $Id: everything.world,v 1.36 2005/05/16 06:05:11
rtv Exp $

# the size of a pixel in Stage's underlying raytrace
model in meters
resolution 0.02

interval_sim 100 # milliseconds per update step
interval_real 100 # real-time milliseconds per update step

# defines 'map' object used for floorplans
include "map.inc"

size [40 20 ]

window( size [ 769.000 592.000 ] center [-9.942 3.461]
scale 0.004 )

map(
bitmap "bitmaps/simple.png"
size [36 36]
name "simplewalls"
)

position (
name "p0"
blobfinder()
blobfinder()
pose [-10.176 3.011 -360.320]
)

player output:
** Player v1.6.4 **
* Part of the Player/Stage Project
[http://playerstage.sourceforge.net].
* Copyright 2000-2005 Brian Gerkey, Richard Vaughan,
Andrew Howard,
* Nate Koenig and contributors.
* Released under the GNU General Public License.
Startup options: [TCP]

Parsing configuration file
"share/stage/worlds/blobtest.cfg"
PLAYERPATH: /home/jamuraa/testplayer/lib
trying to load
/home/jamuraa/testplayer/lib/libstageplugin.so...success
invoking player_driver_init()...
** Stage plugin v2.0.0 **
* Part of the Player/Stage Project
[http://playerstage.sourceforge.net]
* Copyright 2000-2005 Richard Vaughan, Andrew Howard,
Brian Gerkey
* and contributors.
* Released under the GNU GPL.
success
Stage driver creating 1 device
mapping 6665.31.0 => Simulated world
[share/stage/worlds/blobtest.world][Include map.inc]
Stage driver creating 3 devices
mapping 6665.4.0 => "p0"
mapping 6665.7.0 => "p0.blobfinder:0"
mapping 6665.7.1 => [ALREADY USED] ERROR! no model
available for this device. Check your world and config
files.
Using device table:
------------------------------------------------------------
0 driver stage id 6665:simulation:0
1 driver stage id 6665:position:0
2 id 6665:blobfinder:0
3 id 6665:blobfinder:1
------------------------------------------------------------
listening on port 6665
** Player [port 6665] quitting **

Discussion

  • Logged In: YES
    user_id=139639

    Thanks for the exemplary bug report, Michael. Patch tested and applied to
    CVS HEAD. You're a bold man working out of CVS right now. It should
    stabilize this weekend, with only cleaning up, fixes, and possibly grippers
    and pucks, until release 2.0.0.

    Richard/

     
    • status: open --> open-fixed
     
    • status: open-fixed --> closed-fixed