Hinge2Joint Class Reference

#include <joint.h>

Inherits TwoAxisJoint.

Inheritance diagram for Hinge2Joint:

Inheritance graph
[legend]
Collaboration diagram for Hinge2Joint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Hinge2Joint (Primitive *part1, Primitive *part2, const osg::Vec3 &anchor, const Axis &axis1, const Axis &axis2)
virtual ~Hinge2Joint ()
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 addForce1 (double t1)
 add torque to axis 1
virtual void addForce2 (double t2)
 add torque to axis 1
virtual double getPosition1 () const
virtual double getPosition2 () const
virtual double getPosition1Rate () const
 This is not supported by the joint!
virtual double getPosition2Rate () 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

Hinge2Joint ( Primitive part1,
Primitive part2,
const osg::Vec3 anchor,
const Axis axis1,
const Axis axis2 
)

~Hinge2Joint (  )  [virtual]


Member Function Documentation

void addForce1 ( double  t1  )  [virtual]

add torque to axis 1

Implements OneAxisJoint.

void addForce2 ( double  t2  )  [virtual]

add torque to axis 1

Implements TwoAxisJoint.

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]

This is not supported by the joint!

Implements OneAxisJoint.

double getPosition2 (  )  const [virtual]

Implements TwoAxisJoint.

double getPosition2Rate (  )  const [virtual]

Implements TwoAxisJoint.

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 axis2 of the joints is also drawn as a slim cylinder. visualSize is the length of the cylinder.

Reimplemented from 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 Fri Oct 30 16:29:03 2009 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.4.7