#include <visp3/core/vpConfig.h>
#include <visp3/core/vpDebug.h>
#include <stdio.h>
#include <stdlib.h>
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpMath.h>
#include <visp3/core/vpMatrix.h>
#include <visp3/core/vpRotationMatrix.h>
#include <visp3/core/vpRxyzVector.h>
#include <visp3/core/vpTranslationVector.h>
#include <visp3/core/vpVelocityTwistMatrix.h>
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
try {
vpTRACE("--------------------------");
vpTRACE("--- TEST vpVelocityTwistMatrix ---");
vpTRACE("--------------------------");
cte[0] = 1.;
cte[1] = 0.5;
cte[2] = -1.;
cre[0] = M_PI / 2.;
cre[1] = -M_PI / 2.;
cre[2] = -M_PI / 4.;
vpTRACE("cVe twist matrix:");
ev[0] = 1.;
ev[1] = 0.1;
ev[2] = -0.5;
ev[3] = M_PI / 180.;
ev[4] = M_PI / 18.;
ev[5] = M_PI / 10.;
vpTRACE("ev colvector:");
cv = cVe * ev;
vpTRACE("cv = cVe * ev:");
return EXIT_SUCCESS;
}
std::cout << "Catch an exception: " << e << std::endl;
return EXIT_FAILURE;
}
}
Implementation of column vector and the associated operations.
int print(std::ostream &s, unsigned int length, char const *intro=0) const
error that can be emitted by ViSP classes.
Implementation of a rotation matrix and operations on such kind of matrices.
Implementation of a rotation vector as Euler angle minimal representation.
Class that consider the case of a translation vector.
int print(std::ostream &s, unsigned int length, char const *intro=0) const