pose_estimation
GeographicProjection.hpp
Go to the documentation of this file.
1 #ifndef _POSE_ESTIMATION_PROJECTED_COORDINATE_SYSTEM_HPP
2 #define _POSE_ESTIMATION_PROJECTED_COORDINATE_SYSTEM_HPP
3 
4 #include <boost/noncopyable.hpp>
5 #include <Eigen/Core>
6 
7 class OGRCoordinateTransformation;
8 
9 namespace pose_estimation
10 {
11 
16 class GeographicProjection : private boost::noncopyable
17 {
18 public:
19  GeographicProjection(double latitude, double longitude, double x = 0., double y = 0.);
20  virtual ~GeographicProjection();
21 
22  bool worldToNav(double latitude, double longitude, double &x, double &y);
23  bool navToWorld(double x, double y, double &latitude, double &longitude);
24 
25 protected:
26  OGRCoordinateTransformation *world2nav;
27  OGRCoordinateTransformation *nav2world;
28  Eigen::Vector2d offset;
29 };
30 
31 }
32 
33 #endif
bool worldToNav(double latitude, double longitude, double &x, double &y)
Definition: GeographicProjection.cpp:29
OGRCoordinateTransformation * nav2world
Definition: GeographicProjection.hpp:27
OGRCoordinateTransformation * world2nav
Definition: GeographicProjection.hpp:26
GeographicProjection(double latitude, double longitude, double x=0., double y=0.)
Definition: GeographicProjection.cpp:6
bool navToWorld(double x, double y, double &latitude, double &longitude)
Definition: GeographicProjection.cpp:39
virtual ~GeographicProjection()
Definition: GeographicProjection.cpp:23
Definition: GeographicProjection.hpp:16
Eigen::Vector2d offset
Definition: GeographicProjection.hpp:28