World Class Reference
[Server]
#include <World.hh>
Inheritance diagram for World:

Detailed Description
The WorldPublic Member Functions | |
| void | Load (XMLConfig *node, int serverId) |
| Load the world. | |
| int | Init () |
| Initialize the world. | |
| int | Update () |
| Update the world. | |
| int | Fini () |
| Finilize the world. | |
| Server * | GetGzServer () const |
| Retun the libgazebo server. | |
| PhysicsEngine * | GetPhysicsEngine () const |
| Return the physics engine. | |
| double | GetSimTime () const |
| Get the simulation time. | |
| double | GetPauseTime () const |
| Get the pause time. | |
| double | GetStartTime () const |
| Get the start time. | |
| double | GetRealTime () const |
| Get the real time (elapsed time). | |
| double | GetWallTime () const |
| int | LoadEntities (XMLConfigNode *node, Model *parent) |
| void | DeleteEntity (const char *name) |
| Model * | GetModelByName (std::string modelName) |
Member Function Documentation
| void Load | ( | XMLConfig * | node, | |
| int | serverId | |||
| ) |
| int Init | ( | ) |
Initialize the world.
- Returns:
- 0 on success
| int Update | ( | ) |
Update the world.
- Returns:
- 0 on success
| int Fini | ( | ) |
Finilize the world.
- Returns:
- 0 on success
| Server* GetGzServer | ( | ) | const |
Retun the libgazebo server.
- Returns:
- Pointer the the libgazebo server
| PhysicsEngine* GetPhysicsEngine | ( | ) | const |
Return the physics engine.
- Returns:
- Pointer to the physics engine
| double GetSimTime | ( | ) | const |
Get the simulation time.
- Returns:
- The simulation time
| double GetPauseTime | ( | ) | const |
Get the pause time.
- Returns:
- The pause time
| double GetStartTime | ( | ) | const |
Get the start time.
- Returns:
- The start time
| double GetRealTime | ( | ) | const |
Get the real time (elapsed time).
- Returns:
- The real time
| double GetWallTime | ( | ) | const |
Get the wall clock time
- Returns:
- The wall clock time
| int LoadEntities | ( | XMLConfigNode * | node, | |
| Model * | parent | |||
| ) |
Load all entities
- Parameters:
-
node XMLConfg node pointer parent Parent of the model to load
- Returns:
- 0 on success
| void DeleteEntity | ( | const char * | name | ) |
Delete an entity by name
- Parameters:
-
name The name of the entity to delete
| Model* GetModelByName | ( | std::string | modelName | ) |
Get a pointer to a model based on a name
The documentation for this class was generated from the following file: