Test some vpExponentialMap functionalities.
#include <visp/vpTranslationVector.h>
#include <visp/vpRotationVector.h>
#include <visp/vpThetaUVector.h>
#include <visp/vpRxyzVector.h>
#include <visp/vpColVector.h>
#include <visp/vpHomogeneousMatrix.h>
#include <visp/vpExponentialMap.h>
int
main()
{
try {
t[0] = 0.1;
t[1] = 0.2f;
t[2] = 0.f;
v[0] = t[0];
v[1] = t[1];
v[2] = t[2];
v[3] = tu[0];
v[4] = tu[1];
v[5] = tu[2];
std::cout << "Considered velocity : \n" << v << std::endl;
{
std::cout << "Displacement if velocity is applied during 1 s : \n"
<< dt << " " << drxyz << std::endl;
}
{
std::cout << "Displacement if velocity is applied during 2 s : \n"
<< dt << " " << drxyz << std::endl;
}
std::cout << "Velocity from displacement observed during 2 s: \n"
<< v << std::endl;
return 0;
}
std::cout << "Catch an exception: " << e << std::endl;
return 1;
}
}