Blender V2.61 - r43446
|
This class encapsulates a simple joint, that is with one parameterized degree of freedom and with scalar dynamic properties. More...
#include <joint.hpp>
Public Types | |
enum | JointType { RotX, RotY, RotZ, TransX, TransY, TransZ, Sphere, Swing, None } |
Public Member Functions | |
Joint (const JointType &type=None, const double &scale=1, const double &offset=0, const double &inertia=0, const double &damping=0, const double &stiffness=0) | |
Joint (const Joint &in) | |
Joint & | operator= (const Joint &arg) |
Frame | pose (const double &q) const |
Twist | twist (const double &qdot, int dof=0) const |
const JointType & | getType () const |
const std::string | getTypeName () const |
unsigned int | getNDof () const |
virtual | ~Joint () |
This class encapsulates a simple joint, that is with one parameterized degree of freedom and with scalar dynamic properties.
A simple joint is described by the following properties :
KDL::Joint::Joint | ( | const JointType & | type = None , |
const double & | scale = 1 , |
||
const double & | offset = 0 , |
||
const double & | inertia = 0 , |
||
const double & | damping = 0 , |
||
const double & | stiffness = 0 |
||
) |
Constructor of a joint.
type | type of the joint, default: Joint::None |
scale | scale between joint input and actual geometric movement, default: 1 |
offset | offset between joint input and actual geometric input, default: 0 |
inertia | 1D inertia along the joint axis, default: 0 |
damping | 1D damping along the joint axis, default: 0 |
stiffness | 1D stiffness along the joint axis, default: 0 |
unsigned int KDL::Joint::getNDof | ( | ) | const |
Definition at line 141 of file joint.cpp.
References None, Sphere, and Swing.
Referenced by iTaSC::addLimitConstraint(), KDL::Chain::addSegment(), KDL::Tree::addSegment(), KDL::ChainFkSolverPos_recursive::JntToCart(), and KDL::ChainJntToJacSolver::JntToJac().
const JointType& KDL::Joint::getType | ( | void | ) | const [inline] |
Request the type of the joint.
Definition at line 88 of file joint.hpp.
Referenced by iTaSC::addLimitConstraint(), base_callback(), and execute_scene().
const std::string KDL::Joint::getTypeName | ( | ) | const [inline] |
Frame KDL::Joint::pose | ( | const double & | q | ) | const |
Request the 6D-pose between the beginning and the end of the joint at joint position q
q | the 1D joint position |
Definition at line 58 of file joint.cpp.
References KDL::Frame::Identity(), Rot(), KDL::Rotation::RotX(), RotX, KDL::Rotation::RotY(), RotY, KDL::Rotation::RotZ(), RotZ, Sphere, Swing, TransX, TransY, and TransZ.
Referenced by KDL::ChainJntToJacSolver::JntToJac(), and KDL::Segment::pose().
Twist KDL::Joint::twist | ( | const double & | qdot, |
int | dof = 0 |
||
) | const |
Request the resulting 6D-velocity with a joint velocity qdot
qdot | the 1D joint velocity |
Definition at line 96 of file joint.cpp.
References RotX, RotY, RotZ, Sphere, Swing, TransX, TransY, TransZ, and KDL::Twist::Zero().
Referenced by KDL::Segment::twist().