Gazebo

PhysicsEngine Class Reference
[Engines]

#include <PhysicsEngine.hh>

Inheritance diagram for PhysicsEngine:

ODEPhysics

List of all members.


Detailed Description

<physics:<engine_type>>
  <gravity>0.0 0.0 -9.8 </gravity>
  <stepTime>0.020</stepTime>
</physics:<engine_type>>

The parameters are as follows:


Public Member Functions

 PhysicsEngine ()
virtual ~PhysicsEngine ()
virtual void Load (XMLConfigNode *node)=0
virtual void Init ()=0
virtual void Update ()=0
virtual void Fini ()=0
virtual void AddEntity (Entity *entity)=0
virtual void RemoveEntity (Entity *entity)=0
virtual BodyCreateBody (Entity *parent)=0
virtual JointCreateJoint (Joint::Type type)=0
Vector3 GetGravity () const
double GetStepTime () const

Protected Attributes

Vector3 gravity
 The gravity vector.
double stepTime
 Time between each update cycle.

Constructor & Destructor Documentation

PhysicsEngine (  ) 

Default constructor

virtual ~PhysicsEngine (  )  [virtual]

Destructor


Member Function Documentation

virtual void Load ( XMLConfigNode node  )  [pure virtual]

Load the physics engine

Parameters:
node Pointer to the XML parameters

Implemented in ODEPhysics.

virtual void Init (  )  [pure virtual]

Initialize the physics engine

Implemented in ODEPhysics.

virtual void Update (  )  [pure virtual]

Update the physics engine

Implemented in ODEPhysics.

virtual void Fini (  )  [pure virtual]

Finilize the physics engine

Implemented in ODEPhysics.

virtual void AddEntity ( Entity entity  )  [pure virtual]

Add an entity

Implemented in ODEPhysics.

virtual void RemoveEntity ( Entity entity  )  [pure virtual]

Remove an entity from the physics engine

Implemented in ODEPhysics.

virtual Body* CreateBody ( Entity parent  )  [pure virtual]

Create a new body

Implemented in ODEPhysics.

virtual Joint* CreateJoint ( Joint::Type  type  )  [pure virtual]

Create a new joint

Implemented in ODEPhysics.

Vector3 GetGravity (  )  const

Return the gavity vector

Returns:
The gavity vector

double GetStepTime (  )  const

Get the time between each update cycle

Returns:
Time in seconds


The documentation for this class was generated from the following file:

Last updated Aug 04 2007