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

Joint types. More...

#include <robJoint.h>

Inheritance diagram for robJoint:
robKinematics robDH robHayati robModifiedDH robModifiedHayati

Public Types

enum  Type {
  UNDEFINED, HINGE, SLIDER, UNIVERSAL,
  BALLSOCKET
}
 
enum  Mode { ACTIVE, PASSIVE }
 Joint modes. More...
 
enum  Errno { ESUCCESS, EFAILURE }
 

Public Member Functions

 robJoint ()
 Default constructor. More...
 
 robJoint (robJoint::Type type, robJoint::Mode mode, double offset, double min, double max, double ftmax)
 
robJoint::Type GetType () const
 Return the type of the joint. More...
 
robJoint::Mode GetMode () const
 Return the mode of the joint. More...
 
double GetPosition () const
 Return the joint position. More...
 
double GetVelocity () const
 Return the joint velocity. More...
 
double GetForceTorque () const
 Return the joint force or torque. More...
 
void SetPosition (double q)
 Set the joint position. More...
 
void SetVelocity (double qd)
 Set the joint velocity. More...
 
void SetForceTorque (double ft)
 Set the force/torque. More...
 
double PositionOffset () const
 Return the offset position. More...
 
double PositionMin () const
 Return the minimum position. More...
 
double PositionMax () const
 Return the maximum position. More...
 
double ForceTorqueMax () const
 Return the maximum force/torque. More...
 
virtual robJoint::Errno Read (std::istream &is)
 Read from an input stream. More...
 
virtual robJoint::Errno Write (std::ostream &os) const
 Read from an input stream. More...
 

Detailed Description

Joint types.

These are used to identify the type of joints.

Member Enumeration Documentation

Enumerator
ESUCCESS 
EFAILURE 

Joint modes.

Each joint can be active (powered by a motor) or passive

Enumerator
ACTIVE 
PASSIVE 
Enumerator
UNDEFINED 
HINGE 
SLIDER 
UNIVERSAL 
BALLSOCKET 

Constructor & Destructor Documentation

robJoint::robJoint ( )

Default constructor.

robJoint::robJoint ( robJoint::Type  type,
robJoint::Mode  mode,
double  offset,
double  min,
double  max,
double  ftmax 
)

Member Function Documentation

double robJoint::ForceTorqueMax ( ) const

Return the maximum force/torque.

Returns
The absolute value for the maximum force or torque that can be applied by the joint.
double robJoint::GetForceTorque ( ) const

Return the joint force or torque.

If supported, this returns the joint force or torque.

Returns
The joint torque or force (no unit)
robJoint::Mode robJoint::GetMode ( ) const

Return the mode of the joint.

Returns
The mode of the joint (active or passive)
double robJoint::GetPosition ( ) const

Return the joint position.

If supported, this returns the joint position.

Returns
The joint angular or linear position (no unit)
robJoint::Type robJoint::GetType ( ) const

Return the type of the joint.

Returns
The type of the joint (hinge, slider, universal, ball and socket)
double robJoint::GetVelocity ( ) const

Return the joint velocity.

If supported, this returns the joint velocity.

Returns
The joint angular or linear velocity (no unit)
double robJoint::PositionMax ( ) const

Return the maximum position.

Returns
The maximum position of the joint. This value has no unit.
double robJoint::PositionMin ( ) const

Return the minimum position.

Returns
The minimum position of the joint. This value has no unit.
double robJoint::PositionOffset ( ) const

Return the offset position.

Returns
The offset position of the joint. This value has no unit.
virtual robJoint::Errno robJoint::Read ( std::istream &  is)
virtual

Read from an input stream.

Use this method to configure the parameters of the joints from an input stream. The parameters are in the following order: type, mode, position offset, min position, max position, max force/torque.

Parameters
is[in]The input stream

Reimplemented in robKinematics.

void robJoint::SetForceTorque ( double  ft)

Set the force/torque.

If supported, this sets the force/torque. The new value is NOT clipped to the force/torque limit.

Parameters
ftThe new force/torque
void robJoint::SetPosition ( double  q)

Set the joint position.

If supported, this sets the joint position. The position is NOT clipped to the position limits.

Parameters
qThe new joint angular or linear position
void robJoint::SetVelocity ( double  qd)

Set the joint velocity.

If supported, this sets the joint velocity. The velocity is NOT clipped to the velocity limit.

Parameters
qdThe new joint angular or linear velocity.
virtual robJoint::Errno robJoint::Write ( std::ostream &  os) const
virtual

Read from an input stream.

Use this method to write the parameters of the joints to an output stream. This method can be overloaded for more specific joints.

Parameters
os[in]The output stream

Reimplemented in robKinematics.


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