Test some vpMatrix functionalities.
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpDebug.h>
#include <stdlib.h>
#include <stdio.h>
#include <visp3/core/vpMath.h>
#include <visp3/core/vpMatrix.h>
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpRxyzVector.h>
#include <visp3/core/vpTranslationVector.h>
#include <visp3/core/vpRotationMatrix.h>
#include <visp3/core/vpVelocityTwistMatrix.h>
int
main()
{
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.;
cVe.
print (std::cout, 6);
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.;
cv = cVe * ev;
return 0;
}
std::cout << "Catch an exception: " << e << std::endl;
return 1;
}
}