libstage - Stage library API
Detailed Description
libstage (The Stage Library) provides a C code library for simulating a population of mobile robots and sensors. It is usually used as a plugin driver for
Player, but it can also be used directly to build custom simulations.
libstage is modular and fairly simple to use. The following code is enough to get a complete robot simulation running:
#include "stage.h"
int main( int argc, char* argv[] )
{
stg_init( argc, argv );
stg_world_t* world = stg_world_create_from_file( argv[1] );
while( (stg_world_update( world,TRUE )==0) )
{}
stg_world_destroy( world );
return 0;
}
- Contact and support
For help with libstage, please use the mailing list
playerstage_users@lists.sourceforge.net.
Define Documentation
|
any integer value other than this is a valid fiducial ID |
#define STG_MOVE_TRANS (1 << 0)
|
|
#define STG_MOVE_ROT (1 << 1)
|
|
#define STG_MOVE_SCALE (1 << 2)
|
|
Typedef Documentation
|
uniquely identify a model |
|
24-bit RGB color packed 0x00RRGGBB |
|
obstacle value. 0 means the model does not behave, or is sensed, as an obstacle |
|
blobfinder return value. 0 means not detected by the blobfinder |
|
fiducial return value. 0 means not detected as a fiducial |
|
specify a 3 axis velocity in x, y and heading. |
Enumeration Type Documentation
|
laser return value
- Enumeration values:
-
LaserTransparent |
not detected by laser model |
LaserVisible |
detected by laser with a reflected intensity of 0 |
LaserBright |
|
|
Function Documentation
|
returns the real (wall-clock) time in milliseconds since the simulation started. |
int stg_init |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
|
|
|
initialize the stage library. Optionally pass in the arguments from main(), so Stage can read cmdline options. Stage then passes the arguments to GTK+ and Xlib so they can read their own options. |
int stg_quit_test |
( |
void |
|
) |
|
|
|
if stage wants to quit, this will return non-zero
|
void stg_quit_request |
( |
void |
|
) |
|
|
|
set stage's quit flag. Stage will quit cleanly very soon after this function is called. |
Generated on Thu Aug 11 13:08:10 2005 for Stage by
1.4.0