|
Blender V4.3
|
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 149 of file joint.cpp.
References None, Sphere, and Swing.
Referenced by iTaSC::Armature::addLimitConstraint(), iTaSC::Armature::addSegment(), iTaSC::Armature::getSegment(), KDL::ChainFkSolverPos_recursive::JntToCart(), and KDL::ChainJntToJacSolver::JntToJac().
|
inline |
Request the type of the joint.
Definition at line 88 of file joint.hpp.
Referenced by iTaSC::Armature::addLimitConstraint(), iTaSC::Armature::addSegment(), base_callback(), and execute_scene().
|
inline |
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(), RotX, KDL::Rotation::RotX(), RotY, KDL::Rotation::RotY(), RotZ, KDL::Rotation::RotZ(), Sphere, Swing, TransX, TransY, and TransZ.
Referenced by KDL::Segment::pose().
Request the resulting 6D-velocity with a joint velocity qdot
| qdot | the 1D joint velocity |
Definition at line 104 of file joint.cpp.
References RotX, RotY, RotZ, Sphere, Swing, TransX, TransY, TransZ, and KDL::Twist::Zero().
Referenced by KDL::Segment::twist(), KDL::Segment::twist(), and KDL::Segment::twist().