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