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());
57 const BOOST_AUTO(validAngle, acos(
validT2d(0,0)));
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));