#include <World.hh>
Public Member Functions | |
| World (const std::string &_name="") | |
| Private constructor. | |
| ~World () | |
| Private destructor. | |
| void | Load (sdf::ElementPtr _sdf) |
| Load the world using SDF parameters. | |
| void | Save (const std::string &_filename) |
| void | Init () |
| Initialize the world. | |
| void | Run () |
| Run the world in a thread. | |
| void | Stop () |
| Stop the world. | |
| void | Fini () |
| Finilize the world. | |
| void | Clear () |
| Remove all entities from the world. | |
| std::string | GetName () const |
| Get the name of the world. | |
| unsigned int | GetParamCount () const |
| Get the number of parameters. | |
| common::Param * | GetParam (unsigned int index) const |
| Get a param. | |
| PhysicsEnginePtr | GetPhysicsEngine () const |
| Return the physics engine. | |
| unsigned int | GetModelCount () const |
| Get the number of models. | |
| ModelPtr | GetModel (unsigned int index) |
| Get a model based on an index. | |
| void | Reset (bool _resetTime=true) |
| Reset the simulation to the initial settings. | |
| EntityPtr | GetSelectedEntity () const |
| Get the selected entity. | |
| void | PrintEntityTree () |
| Print entity tree. | |
| common::Time | GetSimTime () const |
| Get the simulation time. | |
| void | SetSimTime (common::Time t) |
| Set the sim time. | |
| common::Time | GetPauseTime () const |
| Get the pause time. | |
| common::Time | GetStartTime () const |
| Get the start time. | |
| common::Time | GetRealTime () const |
| Get the real time (elapsed time) | |
| bool | IsPaused () const |
| Returns the state of the simulation true if paused. | |
| void | SetPaused (bool p) |
| Set whether the simulation is paused. | |
| BasePtr | GetByName (const std::string &name) |
| Get an element by name. | |
| ModelPtr | GetModelById (unsigned int _id) |
| Get a model by id. | |
| ModelPtr | GetModelByName (const std::string &name) |
| Get a model by name. | |
| EntityPtr | GetEntityByName (const std::string &_name) |
| Get a pointer to a entity based on a name. | |
| ModelPtr | GetModelBelowPoint (const math::Vector3 &_pt) |
| Get the nearest model below a point. | |
| EntityPtr | GetEntityBelowPoint (const math::Vector3 &_pt) |
| Get the nearest entity below a point. | |
Public Attributes | |
| boost::recursive_mutex * | modelWorldPoseUpdateMutex |
| TODO: Add an accessor for this, and make it private lock all pose updates when worldPose is being updated for a model. | |
| std::list< Entity * > | dirtyPoses |
Protected Attributes | |
| common::Param_V | parameters |
| List of all the parameters. | |
The World.
| common::Time GetPauseTime | ( | ) | const |
Get the pause time.
| PhysicsEnginePtr GetPhysicsEngine | ( | ) | const |
Return the physics engine.
| common::Time GetRealTime | ( | ) | const |
Get the real time (elapsed time)
| common::Time GetSimTime | ( | ) | const |
Get the simulation time.
| common::Time GetStartTime | ( | ) | const |
Get the start time.
| void Load | ( | sdf::ElementPtr | _sdf | ) |
Load the world using SDF parameters.
| _sdf | SDF parameters |
1.7.5.1