6 #include "../contrib/gtest/gtest.h"
42 PM::get().InspectorRegistrar.create(
44 {{
"baseFileName",
"./unitTest"}}
53 const BOOST_AUTO(validTrans,
validT2d.block(0,
dim-1,
dim-1, 1).norm());
54 const BOOST_AUTO(testTrans, testT.block(0,
dim-1,
dim-1, 1).norm());
56 const BOOST_AUTO(validAngle, acos(
validT2d(0,0)));
57 const BOOST_AUTO(testAngle, acos(testT(0,0)));
70 const BOOST_AUTO(validTrans,
validT3d.block(0,
dim-1,
dim-1, 1).norm());
71 const BOOST_AUTO(testTrans, testT.block(0,
dim-1,
dim-1, 1).norm());
73 const BOOST_AUTO(testRotation, Eigen::Quaternion<NumericType>(Eigen::Matrix<NumericType,3,3>(testT.topLeftCorner(3,3))));
74 const BOOST_AUTO(validRotation, Eigen::Quaternion<NumericType>(Eigen::Matrix<NumericType,3,3>(
validT3d.topLeftCorner(3,3))));
76 const BOOST_AUTO(angleDist, validRotation.angularDistance(testRotation));