42 #include <visp/vpVelocityTwistMatrix.h>
45 #include <visp/vpException.h>
46 #include <visp/vpMatrixException.h>
49 #include <visp/vpDebug.h>
71 for (
int i=0; i<6; i++)
73 for (
int j=0; j<6; j++)
101 for (i=0 ; i < 6 ; i++)
102 for (j=0 ; j < 6; j++)
104 (*this)[i][j] = 1.0 ;
223 for (
unsigned int i=0;i<6;i++)
224 for (
unsigned int j=0;j<6;j++)
227 for (
int k=0;k<6;k++)
280 vpERROR_TRACE(
"vpVelocityTwistMatrix mismatch in vpVelocityTwistMatrix/vpMatrix multiply") ;
285 for (
unsigned int i=0;i<6;i++)
286 for (
unsigned int j=0;j<M.
getCols();j++)
289 for (
unsigned int k=0;k<6;k++)
317 vpERROR_TRACE(
"vpVelocityTwistMatrix mismatch in vpVelocityTwistMatrix/vector multiply") ;
319 "Mismatch in vpVelocityTwistMatrix/vector multiply")) ;
324 for (
unsigned int i=0;i<6;i++) {
325 for (
unsigned int j=0;j<6;j++) {
353 for (i=0 ; i < 3 ; i++)
354 for (j=0 ; j < 3 ; j++)
356 (*this)[i][j] = R[i][j] ;
357 (*this)[i+3][j+3] = R[i][j] ;
358 (*this)[i][j+3] = skewaR[i][j] ;
435 for (
unsigned int i=0 ; i < 3 ; i++)
436 for (
unsigned int j=0 ; j < 3; j++)
437 R[i][j] = (*
this)[i][j];
446 for (
unsigned int i=0 ; i < 3 ; i++)
447 for (
unsigned int j=0 ; j < 3; j++)
448 skTR[i][j] = (*
this)[i][j+3];
Definition of the vpMatrix class.
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
error that can be emited by ViSP classes.
vpRotationMatrix t() const
transpose
The vpRotationMatrix considers the particular case of a rotation matrix.
vpVelocityTwistMatrix operator*(const vpVelocityTwistMatrix &V) const
double ** rowPtrs
address of the first element of each rows
vpVelocityTwistMatrix buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
vpRotationMatrix buildFrom(const vpHomogeneousMatrix &M)
Build a rotation matrix from an homogeneous matrix.
void extract(vpRotationMatrix &R) const
Class that consider the particular case of twist transformation matrix that allows to transform a vel...
vpVelocityTwistMatrix inverse() const
invert the twist matrix
Class that provides a data structure for the column vectors as well as a set of operations on these v...
unsigned int getCols() const
Return the number of columns of the matrix.
error that can be emited by the vpMatrix class and its derivates
vpVelocityTwistMatrix & operator=(const vpVelocityTwistMatrix &V)
unsigned int getRows() const
Return the number of rows of the matrix.
Class that consider the case of a translation vector.
Class that consider the case of the parameterization for the rotation.
void extract(vpRotationMatrix &R) const
extract the rotational matrix from the twist matrix