43 #include <visp/vpForceTwistMatrix.h>
46 #include <visp/vpException.h>
47 #include <visp/vpMatrixException.h>
50 #include <visp/vpDebug.h>
72 for (
int i=0; i<6; i++) {
73 for (
int j=0; j<6; j++) {
99 for (i=0 ; i < 6 ; i++) {
100 for (j=0 ; j < 6; j++) {
102 (*this)[i][j] = 1.0 ;
251 for (
unsigned int i=0;i<6;i++) {
252 for (
unsigned int j=0;j<6;j++) {
254 for (
unsigned int k=0;k<6;k++)
274 vpERROR_TRACE(
"vpForceTwistMatrix mismatch in vpForceTwistMatrix/vpMatrix multiply") ;
279 for (
unsigned int i=0;i<6;i++) {
280 for (
unsigned int j=0;j<M.
getCols();j++) {
282 for (
unsigned int k=0;k<6;k++)
347 vpERROR_TRACE(
"vpForceTwistMatrix mismatch in vpForceTwistMatrix/vector multiply") ;
353 for (
unsigned int i=0;i<6;i++) {
354 for (
unsigned int j=0;j<6;j++) {
380 for (i=0 ; i < 3 ; i++) {
381 for (j=0 ; j < 3 ; j++) {
382 (*this)[i][j] = R[i][j] ;
383 (*this)[i+3][j+3] = R[i][j] ;
384 (*this)[i+3][j] = skewaR[i][j] ;
vpForceTwistMatrix buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
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...
vpForceTwistMatrix & operator=(const vpForceTwistMatrix &H)
error that can be emited by ViSP classes.
The vpRotationMatrix considers the particular case of a rotation matrix.
vpRotationMatrix buildFrom(const vpThetaUVector &v)
Transform a vector vpThetaUVector into an rotation matrix.
double ** rowPtrs
address of the first element of each rows
vpForceTwistMatrix operator*(const vpForceTwistMatrix &F) const
void extract(vpRotationMatrix &R) const
Class that consider the particular case of twist transformation matrix that allows to transform a for...
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.
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.