6 #include "../contrib/gtest/gtest.h" 11 #include "boost/filesystem.hpp" 12 #include "boost/filesystem/path.hpp" 13 #include "boost/filesystem/operations.hpp" 44 PM::get().InspectorRegistrar.create(
46 {{
"baseFileName",
"./unitTest"}}
55 const BOOST_AUTO(validTrans,
validT2d.block(0, dim-1, dim-1, 1).norm());
56 const BOOST_AUTO(testTrans, testT.block(0, dim-1, dim-1, 1).norm());
58 const BOOST_AUTO(validAngle, acos(
validT2d(0,0)));
59 const BOOST_AUTO(testAngle, acos(testT(0,0)));
72 const BOOST_AUTO(validTrans,
validT3d.block(0, dim-1, dim-1, 1).norm());
73 const BOOST_AUTO(testTrans, testT.block(0, dim-1, dim-1, 1).norm());
75 const BOOST_AUTO(testRotation, Eigen::Quaternion<float>(Eigen::Matrix<float,3,3>(testT.topLeftCorner(3,3))));
76 const BOOST_AUTO(validRotation, Eigen::Quaternion<float>(Eigen::Matrix<float,3,3>(
validT3d.topLeftCorner(3,3))));
78 const BOOST_AUTO(angleDist, validRotation.angularDistance(testRotation));
void validate2dTransformation()
PM::TransformationParameters validT2d
PM::DataPoints DataPoints
Parametrizable::Parameters Parameters
alias
#define EXPECT_NEAR(val1, val2, abs_error)
Functions and classes that are dependant on scalar type are defined in this templatized class...
void validate3dTransformation()
static const PointMatcher & get()
Return instances.
PM::TransformationParameters validT3d
std::shared_ptr< Inspector > inspector
inspector
PointMatcher< NumericType > PM
Matrix TransformationParameters
A matrix holding the parameters a transformation.