6 #ifndef __eigenpy_geometry_conversion_hpp__ 7 #define __eigenpy_geometry_conversion_hpp__ 13 template <
typename Scalar,
int Options = 0>
15 typedef typename Eigen::Matrix<Scalar, 3, 1, Options>
Vector3;
16 typedef typename Eigen::Matrix<Scalar, 3, 3, Options>
Matrix3;
17 typedef typename Vector3::Index
Index;
19 typedef typename Eigen::AngleAxis<Scalar>
AngleAxis;
23 bp::args(
"rotation_matrix",
"a0",
"a1",
"a2"),
24 "It returns the Euler-angles of the rotation matrix mat using the " 25 "convention defined by the triplet (a0,a1,a2).");
28 bp::args(
"euler_angles",
"a0",
"a1",
"a2"),
29 "It returns the rotation matrix associated to the Euler angles " 30 "using the convention defined by the triplet (a0,a1,a2).");
35 return mat.eulerAngles(a0, a1, a2);
41 mat =
AngleAxis(ea[0], Vector3::Unit(a0)) *
50 #endif // define __eigenpy_geometry_conversion_hpp__ Eigen::Matrix< Scalar, 3, 1, Options > Vector3
static Matrix3 fromEulerAngles(const Vector3 &ea, Index a0, Index a1, Index a2)
Eigen::Matrix< Scalar, 3, 3, Options > Matrix3
static Vector3 toEulerAngles(const Matrix3 &mat, Index a0, Index a1, Index a2)
Eigen::AngleAxis< Scalar > AngleAxis