6 #ifndef __eigenpy_geometry_conversion_hpp__ 7 #define __eigenpy_geometry_conversion_hpp__ 10 #include <Eigen/Geometry> 17 template<
typename Scalar,
int Options=0>
21 typedef typename Eigen::Matrix<Scalar,3,1,Options>
Vector3;
22 typedef typename Eigen::Matrix<Scalar,3,3,Options>
Matrix3;
23 typedef typename Vector3::Index
Index;
25 typedef typename Eigen::AngleAxis<Scalar>
AngleAxis;
30 bp::args(
"mat (dim 3x3)",
"a0",
"a1",
"a2"),
31 "It returns the Euler-angles of the rotation matrix mat using the convention defined by the triplet (a0,a1,a2).");
34 bp::args(
"ea (vector of Euler angles)",
"a0",
"a1",
"a2"),
35 "It returns the rotation matrix associated to the Euler angles using the convention defined by the triplet (a0,a1,a2).");
43 return mat.eulerAngles(a0,a1,a2);
62 #endif // define __eigenpy_geometry_conversion_hpp__ 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::Matrix< Scalar, 3, 1, Options > Vector3
Eigen::AngleAxis< Scalar > AngleAxis