libstageplugin - Stage plugin driver for Playerlibstageplugin is a plugin for Player that allows Player clients to access simulated robots as if they were normal Player devices.
Stage robots and sensors work like any other Player device: users write robot controllers and sensor algorithms as `clients' to the Player `server'. Typically, clients cannot tell the difference between the real robot devices and their simulated Stage equivalents (unless they try very hard). We have found that robot controllers developed as Player clients controlling Stage robots will work with little or no modification with the real robots and vice versa . With a little care, the same binary program can often control Stage robots and real robots without even being recompiled . Thus the Player/Stage system allows rapid prototyping of controllers destined for real robots. Stage can also be very useful by simulating populations of realistic robot devices you don't happen to own .
- Player configuration file options
- model (string)
- where (string) is the name of a Stage position model that will be controlled by this interface. Stage will search the tree of models below the named model to find a device of the right type.
- Configuration file examples:
# create a position model - it can drive around like a robot position ( pose [ 1 1 0 ] color "red" name "marvin" # add a laser scanner on top of the robot laser() )
Using Stage models in a Player config (.cfg) file:
# load the Stage plugin and create a world from a worldfile driver ( name "stage" provides ["simulation:0"] plugin "libstageplugin" # create the simulated world described by this worldfile worldfile "example.world" ) # create a position device, connected to a Stage position model driver ( name "stage" provides ["position:0" ] model "marvin" ) # create a laser device, connected to a Stage laser model driver ( name "stage" provides ["laser:0" ] model "marvin" )
More examples can be found in the Stage source tree, in directory <stage-version>/worlds.
- Blobfinder interface
- Fiducial interface
- Laser interface
- Position interface
- Simulation interface
- Sonar interface
Generated on Thu Aug 11 13:08:10 2005 for Stage by 1.4.0