Gazebo

Joint Class Reference
[Physics]

#include <Joint.hh>

Inheritance diagram for Joint:

BallJoint Hinge2Joint HingeJoint SliderJoint UniversalJoint List of all members.

Detailed Description

Base class for all joints.


Public Types

enum  Type {
  SLIDER, HINGE, HINGE2, BALL,
  UNIVERSAL
}
 Type of joint.

Public Member Functions

 Joint ()
 Constructor.
virtual ~Joint ()
 Destructor.
void Load (XMLConfigNode *node)
 Load a joint.
void Update ()
 Update the joint.
void Reset ()
 Reset the joint.
void SetModel (Model *model)
 Set the model this joint belongs too.
Joint::Type GetType () const
 Get the type of the joint.
BodyGetJointBody (int index) const
 Get the body to which the joint is attached according the _index.
bool AreConnected (Body *one, Body *two) const
 Determines of the two bodies are connected by a joint.
virtual double GetParam (int parameter) const
 Get the _parameter.
void SetFixed ()
 Make this joint a fixed joint Use this only when absolutely necessary.
void Attach (Body *one, Body *two)
 Attach the two bodies with this joint.
void Detach ()
 Detach this joint from all bodies.
virtual void SetAnchor (const gazebo::Vector3 &)
 Set the anchor point.
virtual gazebo::Vector3 GetAnchor () const
 Get the anchor point.
virtual void SetParam (int parameter, double value)
 Set the _parameter to _value.
std::string GetName () const
 Get the name of this joint.
void SetName (const std::string &name)
 Set the name of this joint.
void SetERP (double newERP)
 Set the ERP of this joint.
double GetERP ()
 Get the ERP of this joint.
void SetCFM (double newERP)
 Set the CFM of this joint.
double GetCFM ()
 Get the CFM of this joint.
double GetHighStop (int index=0)
 Get the high stop of an axis(index).
double GetLowStop (int index=0)
 Get the low stop of an axis(index).

Protected Member Functions

virtual void LoadChild (XMLConfigNode *node)
 Load child joint.
virtual void ResetChild ()
 Reset the child joint.

Protected Attributes

dJointID jointId
 This is our id.
Type type
 Type of Joint.


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

Last updated Aug 04 2007