Gazebo logo

Model Class Reference

#include <Model.hh>

Inheritance diagram for Model:

Atrv AvatarHeli B21R Bandit Blimp CanonVCC4 CarChassis ClodBuster Factory GarminGPS GroundPlane LightSource MonoCam ObserverCam PeopleBot Pioneer2AT Pioneer2DX Pioneer2Gripper Pioneer2Sonars Road SegwayRMP Shrimp SickLMS200 SimpleSolid SkyDome SonyVID30 StereoHead Terrain TruthWidget WheelChair List of all members.

Public Member Functions

 Model (World *world)
virtual ~Model ()
int MasterLoad (WorldFile *file, WorldFileNode *node)
virtual int Load (WorldFile *file, WorldFileNode *node)=0
virtual int Init (WorldFile *file, WorldFileNode *node)=0
virtual int Fini ()=0
virtual void Update (double step)=0
void MasterUpdate (double step)
GzPose GetPose ()
void SetPose (GzPose pose)
void LogPose ()
void SetParent (Model *parent, Body *parentBody)
void Attach ()
void Detach ()
BodyGetBody (const char *bodyName=NULL)
int GetNumBodies ()
Body ** GetBodies ()
void SetId (const char *id)
const char * GetId () const
void SetName (const char *name)
const char * GetName ()
void SetPickId (GLuint id)
GLuint GetPickId () const
int GetIntId () const
int GetParentIntId () const
virtual void Render (int pass, RenderOptions *renderOpt)

Public Attributes

Worldworld
WorldFileNodenode
Modelparent
BodyparentBody
GzPose initPose
 Initial pose (for reseting).
HingeJointjoint
GzPose relPose
bool fixed
dSpaceID modelSpaceId
bool logPoses
int poseCount
int poseMaxCount
GzPoseposes

Protected Member Functions

void AddBody (Body *body, bool canonical=false)

Protected Attributes

int bodyCount
int bodyMaxCount
Body ** bodies

Constructor & Destructor Documentation

Model::Model World world  ) 
 

Model::~Model  )  [virtual]
 


Member Function Documentation

int Model::MasterLoad WorldFile file,
WorldFileNode node
 

virtual int Model::Load WorldFile file,
WorldFileNode node
[pure virtual]
 

Implemented in Atrv, AvatarHeli, B21R, Bandit, Blimp, CanonVCC4, CarChassis, ClodBuster, Factory, GarminGPS, GroundPlane, LightSource, MonoCam, ObserverCam, PeopleBot, Pioneer2AT, Pioneer2DX, Pioneer2Gripper, Pioneer2Sonars, Road, SegwayRMP, Shrimp, SickLMS200, SimpleSolid, SkyDome, SonyVID30, StereoHead, Terrain, TruthWidget, and WheelChair.

virtual int Model::Init WorldFile file,
WorldFileNode node
[pure virtual]
 

Implemented in Atrv, AvatarHeli, B21R, Bandit, Blimp, CanonVCC4, CarChassis, ClodBuster, Factory, GarminGPS, GroundPlane, LightSource, MonoCam, ObserverCam, PeopleBot, Pioneer2AT, Pioneer2DX, Pioneer2Gripper, Pioneer2Sonars, Road, SegwayRMP, Shrimp, SickLMS200, SimpleSolid, SkyDome, SonyVID30, StereoHead, Terrain, TruthWidget, and WheelChair.

virtual int Model::Fini  )  [pure virtual]
 

Implemented in Atrv, AvatarHeli, B21R, Bandit, Blimp, CanonVCC4, CarChassis, ClodBuster, Factory, GarminGPS, GroundPlane, LightSource, MonoCam, ObserverCam, PeopleBot, Pioneer2AT, Pioneer2DX, Pioneer2Gripper, Pioneer2Sonars, Road, SegwayRMP, Shrimp, SickLMS200, SimpleSolid, SkyDome, SonyVID30, StereoHead, Terrain, TruthWidget, and WheelChair.

virtual void Model::Update double  step  )  [pure virtual]
 

Implemented in Atrv, AvatarHeli, B21R, Bandit, Blimp, CanonVCC4, CarChassis, ClodBuster, Factory, GarminGPS, GroundPlane, LightSource, MonoCam, ObserverCam, PeopleBot, Pioneer2AT, Pioneer2DX, Pioneer2Gripper, Pioneer2Sonars, Road, SegwayRMP, Shrimp, SickLMS200, SimpleSolid, SkyDome, SonyVID30, StereoHead, Terrain, TruthWidget, and WheelChair.

void Model::MasterUpdate double  step  ) 
 

GzPose Model::GetPose  ) 
 

void Model::SetPose GzPose  pose  ) 
 

void Model::LogPose  ) 
 

void Model::SetParent Model parent,
Body parentBody
 

void Model::Attach  ) 
 

void Model::Detach  ) 
 

void Model::AddBody Body body,
bool  canonical = false
[protected]
 

Body * Model::GetBody const char *  bodyName = NULL  ) 
 

int Model::GetNumBodies  )  [inline]
 

Body** Model::GetBodies  )  [inline]
 

void Model::SetId const char *  id  ) 
 

const char* Model::GetId  )  const [inline]
 

void Model::SetName const char *  name  ) 
 

const char * Model::GetName  ) 
 

void Model::SetPickId GLuint  id  ) 
 

GLuint Model::GetPickId  )  const
 

int Model::GetIntId  )  const
 

int Model::GetParentIntId  )  const
 

void Model::Render int  pass,
RenderOptions renderOpt
[virtual]
 


Member Data Documentation

World* Model::world
 

WorldFileNode* Model::node
 

Model* Model::parent
 

Body* Model::parentBody
 

GzPose Model::initPose
 

Initial pose (for reseting).

HingeJoint* Model::joint
 

GzPose Model::relPose
 

bool Model::fixed
 

dSpaceID Model::modelSpaceId
 

int Model::bodyCount [protected]
 

int Model::bodyMaxCount [protected]
 

Body** Model::bodies [protected]
 

bool Model::logPoses
 

int Model::poseCount
 

int Model::poseMaxCount
 

GzPose* Model::poses
 


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

Last updated 12 September 2005 21:38:45