pose_estimation
GravitationalModel.hpp
Go to the documentation of this file.
1 #ifndef _POSE_ESTIMATION_GRAVITATIONAL_MODEL_HPP
2 #define _POSE_ESTIMATION_GRAVITATIONAL_MODEL_HPP
3 
4 #include <math.h>
5 
6 namespace pose_estimation
7 {
8 
10 static const double EQUATORIAL_RADIUS = 6378137.0;
11 static const double ECC = 0.0818191908426;
12 static const double GRAVITY = 9.79766542;
13 static const double GRAVITY_SI = 9.80665;
14 static const double GWGS0 = 9.7803267714;
15 static const double GWGS1 = 0.00193185138639;
16 static const double EARTHW = ((2.0*M_PI)/86164.0); //7.292115e-05; /** Earth angular velocity in rad/s **/
17 
18 
20 {
21 public:
33  static double WGS_84(double latitude, double altitude)
34  {
35  double g;
38  g = GWGS0*((1+GWGS1*pow(sin(latitude),2))/sqrt(1-pow(ECC,2)*pow(sin(latitude),2)));
39 
41  g = g*pow(EQUATORIAL_RADIUS/(EQUATORIAL_RADIUS+altitude), 2);
42 
43  return g;
44  }
45 };
46 
47 }
48 
49 #endif
Definition: GravitationalModel.hpp:19
static double WGS_84(double latitude, double altitude)
This computes the theoretical gravity value according to the WGS-84 ellipsoid earth model...
Definition: GravitationalModel.hpp:33
Definition: GeographicProjection.hpp:9