Test some vpExponentialMap functionalities.
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpExponentialMap.h>
#include <visp3/core/vpHomogeneousMatrix.h>
#include <visp3/core/vpRotationVector.h>
#include <visp3/core/vpRxyzVector.h>
#include <visp3/core/vpThetaUVector.h>
#include <visp3/core/vpTranslationVector.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;
}
}