6 #include "../contrib/gtest/gtest.h" 11 #include "boost/filesystem.hpp" 12 #include "boost/filesystem/path.hpp" 13 #include "boost/filesystem/operations.hpp" 16 typedef PM::DataPoints
DP;
43 PM::get().InspectorRegistrar.create(
45 {{
"baseFileName",
"./unitTest"}}
54 const BOOST_AUTO(validTrans,
validT2d.block(0, dim-1, dim-1, 1).norm());
55 const BOOST_AUTO(testTrans, testT.block(0, dim-1, dim-1, 1).norm());
58 const BOOST_AUTO(testAngle,
acos(testT(0,0)));
71 const BOOST_AUTO(validTrans,
validT3d.block(0, dim-1, dim-1, 1).norm());
72 const BOOST_AUTO(testTrans, testT.block(0, dim-1, dim-1, 1).norm());
74 const BOOST_AUTO(testRotation, Eigen::Quaternion<float>(Eigen::Matrix<float,3,3>(testT.topLeftCorner(3,3))));
75 const BOOST_AUTO(validRotation, Eigen::Quaternion<float>(Eigen::Matrix<float,3,3>(
validT3d.topLeftCorner(3,3))));
77 const BOOST_AUTO(angleDist, validRotation.angularDistance(testRotation));
void validate2dTransformation()
PM::TransformationParameters validT2d
Parametrizable::Parameters Parameters
alias
#define EXPECT_NEAR(val1, val2, abs_error)
void validate3dTransformation()
static const PointMatcher & get()
Return instances.
PM::TransformationParameters validT3d
INLINE Rall1d< T, V, S > acos(const Rall1d< T, V, S > &x)
std::shared_ptr< Inspector > inspector
inspector
Matrix TransformationParameters
A matrix holding the parameters a transformation.