mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
conversions_eigen.h
1 #ifndef GEOMETRY_CONVERSIONS_EIGEN_H
2 #define GEOMETRY_CONVERSIONS_EIGEN_H
3 
4 #include <geometry_msgs/PoseStamped.h>
5 #include <geometry_msgs/Vector3.h>
6 
7 #include <Eigen/Core>
8 #include <Eigen/Geometry>
9 
10 namespace mrs_lib
11 {
12  namespace geometry
13  {
14 
15  /* conversions from/to Eigen //{ */
16 
17  geometry_msgs::Point fromEigen(const Eigen::Vector3d& what);
18 
19  geometry_msgs::Vector3 fromEigenVec(const Eigen::Vector3d& what);
20 
21  Eigen::Vector3d toEigen(const geometry_msgs::Point& what);
22 
23  Eigen::Vector3d toEigen(const geometry_msgs::Vector3& what);
24 
25  Eigen::Matrix<double, 6, 6> toEigenMatrix(const boost::array<double, 36>& what);
26 
27  geometry_msgs::Quaternion fromEigen(const Eigen::Quaterniond& what);
28 
29  Eigen::Quaterniond toEigen(const geometry_msgs::Quaternion& what);
30 
31  //}
32 
33  }
34 }
35 
36 #endif // GEOMETRY_CONVERSIONS_EIGEN_H
mrs_lib
All mrs_lib functions, classes, variables and definitions are contained in this namespace.
Definition: attitude_converter.h:29