cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
osaODEJoint Class Reference

#include <osaODEJoint.h>

Public Member Functions

 osaODEJoint (dWorldID world, dBodyID body1, dBodyID body2, int type, const vctFixedSizeVector< double, 3 > &anchor, const vctFixedSizeVector< double, 3 > &axis, double qmin, double qmax)
 Default constructor. More...
 
dBodyID GetProximalBody () const
 
dBodyID GetDistalBody () const
 
dJointID JointID () const
 Return the ODE ID of the joint. More...
 
dJointID FrictionID () const
 Return the ODE ID of the joint friction. More...
 
int GetType () const
 Return the ODE joint type. More...
 
double GetPosition () const
 Return the position. More...
 
double GetVelocity () const
 Return the velocity. More...
 
double GetForceTorque () const
 Get the force/torque. More...
 
void SetForceTorque (double ft)
 Set the force/torque. More...
 
void ApplyForceTorque ()
 Apply the force/torque. More...
 

Constructor & Destructor Documentation

osaODEJoint::osaODEJoint ( dWorldID  world,
dBodyID  body1,
dBodyID  body2,
int  type,
const vctFixedSizeVector< double, 3 > &  anchor,
const vctFixedSizeVector< double, 3 > &  axis,
double  qmin,
double  qmax 
)

Default constructor.

Parameters
worldThe world the joint lives in
body1The 1st ODE body attached to the joint
body2The 2nd ODE body attached to the joint
typeThe ODE joint type
anchorThe position of the joint
axisThe axis of motion of the joint
qminThe minimum joint position
qminThe maximum joint position

Member Function Documentation

void osaODEJoint::ApplyForceTorque ( )

Apply the force/torque.

Apply the set force/torque to the joint. This method is called by the ODE world to apply a force/torque previously set.

dJointID osaODEJoint::FrictionID ( ) const

Return the ODE ID of the joint friction.

dBodyID osaODEJoint::GetDistalBody ( ) const
double osaODEJoint::GetForceTorque ( ) const

Get the force/torque.

double osaODEJoint::GetPosition ( ) const

Return the position.

Returns the joint position given by ODE

Returns
The joint position (no unit)
dBodyID osaODEJoint::GetProximalBody ( ) const
int osaODEJoint::GetType ( void  ) const
inline

Return the ODE joint type.

double osaODEJoint::GetVelocity ( ) const

Return the velocity.

Returns the joint velocity given by ODE

Returns
The joint velocity (no unit)
dJointID osaODEJoint::JointID ( ) const

Return the ODE ID of the joint.

void osaODEJoint::SetForceTorque ( double  ft)

Set the force/torque.

Set the force/torque. The new value is NOT cliped at the limit.

Parameters
ftThe new force/torque (no unit)

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