libstageplugin - Stage plugin driver for Player
libstageplugin 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 [1]. With a little care, the same binary program can often control Stage robots and real robots without even being recompiled [2]. 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 [3].
- 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.
- Authors
- Provides
- Blobfinder interface
- Data
- Configs
- (none)
- Fiducial interface
- Data
- Configs
- PLAYER_FIDUCIAL_GET_GEOM_REQ
- PLAYER_FIDUCIAL_SET_FOV_REQ
- PLAYER_FIDUCIAL_GET_FOV_REQ
- PLAYER_FIDUCIAL_SET_ID_REQ
- PLAYER_FIDUCIAL_GET_ID_REQ
- Laser interface
- Data
- Configs
- PLAYER_LASER_SET_CONFIG
- PLAYER_LASER_SET_CONFIG
- PLAYER_LASER_GET_GEOM
- Position interface
- Command
- Data
- Configs
- PLAYER_POSITION_SET_ODOM_REQ
- PLAYER_POSITION_RESET_ODOM_REQ
- PLAYER_POSITION_GET_GEOM_REQ
- PLAYER_POSITION_MOTOR_POWER_REQ
- PLAYER_POSITION_VELOCITY_MODE_REQ
- Simulation interface
- Configs
- PLAYER_SIMULATION_SET_POSE2D_REQ
- PLAYER_SIMULATION_GET_POSE2D_REQ
- Sonar interface
- Data
- Configs
- PLAYER_SONAR_GET_GEOM_REQ
Generated on Thu Aug 11 13:08:10 2005 for Stage by 1.4.0