odometry_typedefs.hpp
Go to the documentation of this file.
1 
4 /*****************************************************************************
5 ** Ifdefs
6 *****************************************************************************/
7 
8 #ifndef ECL_ODOMETRY_ODOMETRY_TYPEDEFS_HPP_
9 #define ECL_ODOMETRY_ODOMETRY_TYPEDEFS_HPP_
10 
11 /*****************************************************************************
12 ** Includes
13 *****************************************************************************/
14 
15 #include <ecl/config/macros.hpp>
16 #include <ecl/linear_algebra.hpp>
17 
18 #if defined(ECL_CXX11_FOUND)
19  #include <memory>
20 #endif
21 
22 /*****************************************************************************
23 ** Namespaces
24 *****************************************************************************/
25 
26 namespace ecl {
27 namespace odometry {
28 
29 /*****************************************************************************
30 ** Methods
31 *****************************************************************************/
32 
38 typedef Eigen::Vector2f Position2D;
39 
46 typedef Eigen::Matrix2Xf Path2D;
47 
54 typedef Eigen::Vector3f Pose2D;
55 
62 typedef Eigen::Matrix3Xf Trajectory2D;
63 
71 typedef Eigen::Vector3f Twist2D;
72 
79 typedef Eigen::Matrix3Xf Twist2DVector;
80 
90 typedef Eigen::Matrix<float, 6, 1> Odom2D;
91 
101 typedef Eigen::Matrix<float, 6, Eigen::Dynamic> Odom2DTrajectory;
102 
103 
104 /*****************************************************************************
105 ** c++11 shared_ptr typedefs
106 *****************************************************************************/
107 
108 #if defined(ECL_CXX11_FOUND)
109 
111  typedef std::shared_ptr<Position2D> Position2DPtr;
113  typedef std::shared_ptr<Path2D> Path2DPtr;
114 
116  typedef std::shared_ptr<Pose2D> Pose2DPtr;
118  typedef std::shared_ptr<Trajectory2D> Trajectory2DPtr;
119 
121  typedef std::shared_ptr<Twist2D> Twist2DPtr;
123  typedef std::shared_ptr<Twist2DVector> Twist2DVectorPtr;
124 
126  typedef std::shared_ptr<Odom2D> Odom2DPtr;
128  typedef std::shared_ptr<Odom2DTrajectory> Odom2DTrajectoryPtr;
129 
130 #endif /*ECL_CXX11_FOUND*/
131 
132 /*****************************************************************************
133 ** Trailers
134 *****************************************************************************/
135 
136 } // namespace odometry
137 } // namespace ecl
138 
139 #endif /*ECL_ODOMETRY_ODOMETRY_TYPEDEFS_HPP_*/
ecl::odometry::Pose2D
Eigen::Vector3f Pose2D
Float representation of a pose in 2D (x, y, heading).
Definition: odometry_typedefs.hpp:66
ecl::odometry::Twist2DVector
Eigen::Matrix3Xf Twist2DVector
Float collection of 2D twists (twist: v_x, v_y, w).
Definition: odometry_typedefs.hpp:91
linear_algebra.hpp
ecl::odometry::Trajectory2D
Eigen::Matrix3Xf Trajectory2D
Float representation of a trajectory in 2D (poses in 2D).
Definition: odometry_typedefs.hpp:74
ecl::odometry::Twist2D
Eigen::Vector3f Twist2D
Float representation of velocities in 2D (v_x, v_y, w).
Definition: odometry_typedefs.hpp:83
ecl::odometry::Path2D
Eigen::Matrix2Xf Path2D
Float representation of a path in 2D (x1,y1; x2,y2; ..; xn,yn).
Definition: odometry_typedefs.hpp:58
ecl::odometry::Odom2D
Eigen::Matrix< float, 6, 1 > Odom2D
Float representation of 2D odometry (x, y, heading, v_x, v_y, w).
Definition: odometry_typedefs.hpp:102
ecl::odometry::Position2D
Eigen::Vector2f Position2D
Float representation for a 2D position (x-, y-position).
Definition: odometry_typedefs.hpp:50
ecl::odometry::Odom2DTrajectory
Eigen::Matrix< float, 6, Eigen::Dynamic > Odom2DTrajectory
Float collection of 2D odometries (x, y, heading, v_x, v_y, w).
Definition: odometry_typedefs.hpp:113
macros.hpp
ecl
Embedded control libraries.


ecl_geometry
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:39