World Class Reference
The one-and-only world; all models go here.
More...
#include <World.hh>
List of all members.
Detailed Description
The one-and-only world; all models go here.
The world class keeps a list of all models, handles loading and saving, object dynamics and collision detection for contact joints.
Constructor & Destructor Documentation
World::World |
( |
int |
serverId, |
|
|
bool |
serverForce |
|
) |
|
|
World::~World |
( |
|
) |
[virtual] |
|
Member Function Documentation
|
Load the world from a file.
- Parameters:
-
| worldFile | Pointer to the world file object; the file pointer is stored must not be deleted while the world is running. |
|
void World::SetModelPose |
( |
Model * |
model, |
|
|
GzPose |
pose |
|
) |
|
|
|
Set the pose of a model (and its attached children).
- Parameters:
-
| model | model to shift. |
| pose | New model pose, relative to parent |
|
void World::ResetModelPoses |
( |
|
) |
|
|
|
Reset the world.
Teleport the models to their initial positions, as specified in the world file. This does not change the similator clock, or any other state variables. |
|
Save the world.
This is used to mainly save changes to model poses. |
int World::Initialize |
( |
|
) |
|
|
double World::GetSimTime |
( |
|
) |
|
|
|
Get the elapsed simulator time (seconds).
|
double World::GetPauseTime |
( |
|
) |
|
|
|
Get accumulated pause time (seconds).
Note that this is the paused simulation time; i.e., simTime + pauseTime = simSpeed * realTime (assuming a fast processor). |
double World::GetRealTime |
( |
|
) |
|
|
|
Get the elapsed real time (elapsed time).
|
double World::GetWallTime |
( |
|
) |
|
|
|
Get the wall clock time (seconds).
|
double World::GetDayTime |
( |
|
) |
|
|
|
Get the time relative to 12am (seconds).
|
int World::GetNumModels |
( |
|
) |
const |
|
|
Get the number of models.
|
Model ** World::GetModels |
( |
|
) |
const |
|
dSpaceID World::GetSpaceId |
( |
|
) |
[inline] |
|
Friends And Related Function Documentation
friend class Model [friend] |
|
Member Data Documentation
|
Simulation speed (e.g. speed 2 yields twice real time).
|
|
UTC time offset (seconds since epoch). Used for GPS times.
|
|
UTM zone. This is an integer offset; e.g., UTM zone 11 is converted to x = +11. |
|
UTM offset (UTM coordinate that maps to zero in global cs).
|
The documentation for this class was generated from the following files:
Last updated 12 September 2005 21:38:45
|