43 #ifndef GEODETICCOORDS_H_ 44 #define GEODETICCOORDS_H_ 48 #include <opencv2/core/core.hpp> 56 GeodeticCoords(
double latitude,
double longitude,
double altitude);
58 const double &
latitude()
const {
return latitude_;}
59 const double &
longitude()
const {
return longitude_;}
60 const double &
altitude()
const {
return altitude_;}
66 cv::Point3d toGeocentric_WGS84()
const;
69 void fromGeocentric_WGS84(
const cv::Point3d& geocentric);
70 void fromENU_WGS84(
const cv::Point3d & enu,
const GeodeticCoords & origin);
72 static cv::Point3d ENU_WGS84ToGeocentric_WGS84(
const cv::Point3d & enu,
const GeodeticCoords & origin);
91 GPS(
const double & stamp,
92 const double & longitude,
93 const double & latitude,
94 const double & altitude,
96 const double & bearing):
98 longitude_(longitude),
104 const double &
stamp()
const {
return stamp_;}
106 const double &
latitude()
const {
return latitude_;}
107 const double &
altitude()
const {
return altitude_;}
108 const double &
error()
const {
return error_;}
109 const double &
bearing()
const {
return bearing_;}
GPS(const double &stamp, const double &longitude, const double &latitude, const double &altitude, const double &error, const double &bearing)
void setLongitude(const double &value)
const double & altitude() const
const double & longitude() const
const double & error() const
const double & latitude() const
GeodeticCoords toGeodeticCoords() const
const double & longitude() const
const double & altitude() const
void setLatitude(const double &value)
void setAltitude(const double &value)
const double & latitude() const
const double & bearing() const
const double & stamp() const