27 #include <Eigen/Geometry>
32 inline Eigen::Vector2f
33 to2D(
const Eigen::Vector3f& v2)
35 return Eigen::Vector2f{v2.x(), v2.y()};
38 inline Eigen::Vector3f
39 to3D(
const Eigen::Vector2f& v2)
41 return Eigen::Vector3f{v2.x(), v2.y(), 0.F};
44 inline Eigen::Isometry3f
45 to3D(
const Eigen::Affine2f& p2)
48 pose.linear().block<2, 2>(0, 0) = p2.linear();
49 pose.translation().head<2>() = p2.translation();
54 std::vector<Eigen::Vector3f>
to3D(
const std::vector<Eigen::Vector2f>&
v);