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") ;
323 for (
unsigned int i=0;i<6;i++) {
324 for (
unsigned int j=0;j<6;j++) {
352 for (i=0 ; i < 3 ; i++)
353 for (j=0 ; j < 3 ; j++)
355 (*this)[i][j] = R[i][j] ;
356 (*this)[i+3][j+3] = R[i][j] ;
357 (*this)[i][j+3] = skewaR[i][j] ;
434 for (
unsigned int i=0 ; i < 3 ; i++)
435 for (
unsigned int j=0 ; j < 3; j++)
436 R[i][j] = (*
this)[i][j];
445 for (
unsigned int i=0 ; i < 3 ; i++)
446 for (
unsigned int j=0 ; j < 3; j++)
447 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.
vpRotationMatrix buildFrom(const vpThetaUVector &v)
Transform a vector vpThetaUVector into an 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)
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.
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