![]() |
Visual Servoing Platform
version 3.1.0
|
#include <vpForceTwistMatrix.h>
Inheritance diagram for vpForceTwistMatrix:Public Member Functions | |
| vpForceTwistMatrix () | |
| vpForceTwistMatrix (const vpForceTwistMatrix &F) | |
| vpForceTwistMatrix (const vpHomogeneousMatrix &M, bool full=true) | |
| vpForceTwistMatrix (const vpTranslationVector &t, const vpRotationMatrix &R) | |
| vpForceTwistMatrix (const vpTranslationVector &t, const vpThetaUVector &thetau) | |
| vpForceTwistMatrix (const double tx, const double ty, const double tz, const double tux, const double tuy, const double tuz) | |
| vpForceTwistMatrix (const vpRotationMatrix &R) | |
| vpForceTwistMatrix (const vpThetaUVector &thetau) | |
| virtual | ~vpForceTwistMatrix () |
| vpForceTwistMatrix | buildFrom (const vpTranslationVector &t, const vpRotationMatrix &R) |
| vpForceTwistMatrix | buildFrom (const vpTranslationVector &t, const vpThetaUVector &thetau) |
| vpForceTwistMatrix | buildFrom (const vpHomogeneousMatrix &M, bool full=true) |
| vpForceTwistMatrix | buildFrom (const vpRotationMatrix &R) |
| vpForceTwistMatrix | buildFrom (const vpThetaUVector &thetau) |
| void | eye () |
| vpForceTwistMatrix | operator* (const vpForceTwistMatrix &F) const |
| vpMatrix | operator* (const vpMatrix &M) const |
| vpColVector | operator* (const vpColVector &H) const |
| vpForceTwistMatrix & | operator= (const vpForceTwistMatrix &H) |
| int | print (std::ostream &s, unsigned int length, char const *intro=0) const |
| void | resize (const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true) |
Deprecated functions | |
| vp_deprecated void | init () |
| vp_deprecated void | setIdentity () |
Inherited functionalities from vpArray2D | |
| unsigned int | getCols () const |
| double | getMaxValue () const |
| double | getMinValue () const |
| unsigned int | getRows () const |
| unsigned int | size () const |
| void | resize (const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true, const bool recopy_=true) |
| double * | operator[] (unsigned int i) |
| double * | operator[] (unsigned int i) const |
| vpArray2D< double > | hadamard (const vpArray2D< double > &m) const |
Static Public Member Functions | |
Inherited I/O from vpArray2D with Static Public Member Functions | |
| static bool | load (const std::string &filename, vpArray2D< double > &A, const bool binary=false, char *header=NULL) |
| static bool | loadYAML (const std::string &filename, vpArray2D< double > &A, char *header=NULL) |
| static bool | save (const std::string &filename, const vpArray2D< double > &A, const bool binary=false, const char *header="") |
| static bool | saveYAML (const std::string &filename, const vpArray2D< double > &A, const char *header="") |
Public Attributes | |
| double * | data |
Protected Attributes | |
| unsigned int | rowNum |
| unsigned int | colNum |
| double ** | rowPtrs |
| unsigned int | dsize |
Related Functions | |
(Note that these are not member functions.) | |
| enum | vpGEMMmethod |
| void | vpGEMM (const vpArray2D< double > &A, const vpArray2D< double > &B, const double &alpha, const vpArray2D< double > &C, const double &beta, vpArray2D< double > &D, const unsigned int &ops=0) |
This class derived from vpArray2D<double> implements the 6 by 6 matrix which transforms force/torque from one frame to another. This matrix is also called force/torque twist transformation matrix.
The full force/torque twist transformation matrix allows to compute the force/torque at point a expressed in frame a knowing its force/torque at point b expressed in frame b. This matrix is defined as:
where
is a rotation matrix and
is a translation vector.
When the point where the velocity is expressed doesn't change, the matrix becomes block diagonal. It allows than to compute the force/torque at point b expressed in frame a knowing its force/torque at point b expressed in frame b :
The code belows shows for example how to convert a force/torque skew from probe frame to a sensor frame.
Definition at line 115 of file vpForceTwistMatrix.h.
| vpForceTwistMatrix::vpForceTwistMatrix | ( | ) |
Initialize a force/torque twist transformation matrix to identity.
Definition at line 89 of file vpForceTwistMatrix.cpp.
References eye().
| vpForceTwistMatrix::vpForceTwistMatrix | ( | const vpForceTwistMatrix & | F | ) |
Initialize a force/torque twist transformation matrix from another force/torque twist matrix.
| F | : Force/torque twist matrix used as initializer. |
Definition at line 98 of file vpForceTwistMatrix.cpp.
|
explicit |
Initialize a force/torque twist transformation matrix from an homogeneous matrix
with
| M | : Homogeneous matrix used to initialize the twist transformation matrix. |
| full | : Boolean used to indicate which matrix should be filled.
|
Definition at line 129 of file vpForceTwistMatrix.cpp.
References buildFrom(), and vpHomogeneousMatrix::getRotationMatrix().
| vpForceTwistMatrix::vpForceTwistMatrix | ( | const vpTranslationVector & | t, |
| const vpRotationMatrix & | R | ||
| ) |
Initialize a force/torque twist transformation matrix from a translation vector t and a rotation matrix R.
| t | : Translation vector. |
| R | : Rotation matrix. |
Definition at line 200 of file vpForceTwistMatrix.cpp.
References buildFrom().
| vpForceTwistMatrix::vpForceTwistMatrix | ( | const vpTranslationVector & | t, |
| const vpThetaUVector & | thetau | ||
| ) |
Initialize a force/torque twist transformation matrix from a translation vector t and a rotation vector with
parametrization.
| t | : Translation vector. |
| thetau | : rotation vector used to initialize . |
Definition at line 156 of file vpForceTwistMatrix.cpp.
References buildFrom().
| vpForceTwistMatrix::vpForceTwistMatrix | ( | const double | tx, |
| const double | ty, | ||
| const double | tz, | ||
| const double | tux, | ||
| const double | tuy, | ||
| const double | tuz | ||
| ) |
Initialize a force/torque twist transformation matrix from a translation vector
and a rotation vector with
parametrization.
| tx,ty,tz | : Translation vector in meters. |
| tux,tuy,tuz | : rotation vector expressed in radians used to initialize . |
Definition at line 245 of file vpForceTwistMatrix.cpp.
References buildFrom().
| vpForceTwistMatrix::vpForceTwistMatrix | ( | const vpRotationMatrix & | R | ) |
Initialize a force/torque block diagonal twist transformation matrix from a rotation matrix R.
| R | : Rotation matrix. |
Definition at line 223 of file vpForceTwistMatrix.cpp.
References buildFrom().
| vpForceTwistMatrix::vpForceTwistMatrix | ( | const vpThetaUVector & | thetau | ) |
Initialize a force/torque block diagonal twist transformation matrix from a rotation vector with
parametrization.
| thetau | : rotation vector used to initialize . |
Definition at line 179 of file vpForceTwistMatrix.cpp.
References buildFrom().
|
inlinevirtual |
Destructor.
Definition at line 138 of file vpForceTwistMatrix.h.
References operator*(), and vpArray2D< Type >::operator=().
| vpForceTwistMatrix vpForceTwistMatrix::buildFrom | ( | const vpTranslationVector & | t, |
| const vpRotationMatrix & | R | ||
| ) |
Build a force/torque twist transformation matrix from a translation vector t and a rotation matrix R.
| t | : Translation vector. |
| R | : Rotation matrix. |
Definition at line 402 of file vpForceTwistMatrix.cpp.
References vpTranslationVector::skew().
Referenced by buildFrom(), and vpForceTwistMatrix().
| vpForceTwistMatrix vpForceTwistMatrix::buildFrom | ( | const vpTranslationVector & | tv, |
| const vpThetaUVector & | thetau | ||
| ) |
Initialize a force/torque twist transformation matrix from a translation vector t and a rotation vector with
parametrization.
| tv | : Translation vector. |
| thetau | : rotation vector used to initialise . |
Definition at line 465 of file vpForceTwistMatrix.cpp.
References buildFrom().
| vpForceTwistMatrix vpForceTwistMatrix::buildFrom | ( | const vpHomogeneousMatrix & | M, |
| bool | full = true |
||
| ) |
Initialize a force/torque twist transformation matrix from an homogeneous matrix
with
| M | : Homogeneous matrix used to initialize the velocity twist transformation matrix. |
| full | : Boolean used to indicate which matrix should be filled.
|
Definition at line 523 of file vpForceTwistMatrix.cpp.
References buildFrom(), vpHomogeneousMatrix::getRotationMatrix(), and vpHomogeneousMatrix::getTranslationVector().
| vpForceTwistMatrix vpForceTwistMatrix::buildFrom | ( | const vpRotationMatrix & | R | ) |
Build a block diagonal force/torque twist transformation matrix from a rotation matrix R.
| R | : Rotation matrix. |
Definition at line 433 of file vpForceTwistMatrix.cpp.
| vpForceTwistMatrix vpForceTwistMatrix::buildFrom | ( | const |