1 #ifndef MOVEIT_OPW_KINEMATICS_TEST_UTILS_ 2 #define MOVEIT_OPW_KINEMATICS_TEST_UTILS_ 4 #include <Eigen/Geometry> 15 using Transform = Eigen::Transform<T, 3, Eigen::Affine>;
22 using Matrix = Eigen::Matrix<T, 3, 3>;
23 using Vector = Eigen::Matrix<T, 3, 1>;
25 Matrix Ra = Ta.rotation(), Rb = Tb.rotation();
26 for (
int i = 0; i < Ra.rows(); ++i)
28 for (
int j = 0; j < Ra.cols(); ++j)
34 Vector pa = Ta.translation(), pb = Tb.translation();
Eigen::Transform< T, 3, Eigen::Affine > Transform
#define EXPECT_NEAR(a, b, prec)
void comparePoses(const Transform< T > &Ta, const Transform< T > &Tb)
Compare every element of two eigen affine3 poses.