HingeJoint Class Reference

#include <joint.h>

Inherits OneAxisJoint.

Inheritance diagram for HingeJoint:

Inheritance graph
[legend]
Collaboration diagram for HingeJoint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HingeJoint (Primitive *part1, Primitive *part2, const osg::Vec3 &anchor, const Axis &axis1)
virtual ~HingeJoint ()
virtual void init (const OdeHandle &odeHandle, const OsgHandle &osgHandle, bool withVisual=true, double visualSize=0.2)
 initialises (and creates) the joint.
virtual void update ()
 should syncronise the Ode stuff and the OSG notes (if any)
virtual void addTorque (double t)
virtual double getPosition1 () const
virtual double getPosition1Rate () const
virtual void setParam (int parameter, double value)
 sets the ODE joint parameter (see ODE manual)
virtual double getParam (int parameter) const
 return the ODE joint parameter (see ODE manual)

Protected Attributes

OSGPrimitivevisual

Constructor & Destructor Documentation

HingeJoint Primitive part1,
Primitive part2,
const osg::Vec3 anchor,
const Axis axis1
 

~HingeJoint  )  [virtual]
 


Member Function Documentation

void addTorque double  t  )  [virtual]
 

double getParam int  parameter  )  const [virtual]
 

return the ODE joint parameter (see ODE manual)

Implements Joint.

double getPosition1  )  const [virtual]
 

Implements OneAxisJoint.

double getPosition1Rate  )  const [virtual]
 

Implements OneAxisJoint.

void init const OdeHandle odeHandle,
const OsgHandle osgHandle,
bool  withVisual = true,
double  visualSize = 0.2
[virtual]
 

initialises (and creates) the joint.

If visual is true then the axis of the joints is also drawn as a slim cylinder. visualSize is the length of the cylinder.

Implements Joint.

void setParam int  parameter,
double  value
[virtual]
 

sets the ODE joint parameter (see ODE manual)

Implements Joint.

void update  )  [virtual]
 

should syncronise the Ode stuff and the OSG notes (if any)

Implements Joint.


Member Data Documentation

OSGPrimitive* visual [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Jan 16 02:14:51 2007 for Robotsystem of the Robot Group Leipzig by doxygen 1.3.8