18 #ifndef _GAZEBO_DEM_HH_
19 #define _GAZEBO_DEM_HH_
21 #include <gazebo/gazebo_config.h>
25 # include <gdal/gdal_priv.h>
48 public:
virtual ~Dem();
53 public:
int Load(
const std::string &_filename=
"");
59 public:
double GetElevation(
double _x,
double _y);
63 public:
float GetMinElevation()
const;
67 public:
float GetMaxElevation()
const;
73 public:
void GetGeoReferenceOrigin(math::Angle &_latitude,
74 math::Angle &_longitude);
83 public:
unsigned int GetHeight()
const;
92 public:
unsigned int GetWidth()
const;
96 public:
double GetWorldWidth()
const;
100 public:
double GetWorldHeight()
const;
112 public:
void FillHeightMap(
int _subSampling,
unsigned int _vertSize,
113 const math::Vector3 &_size,
const math::Vector3 &_scale,
bool _flipY,
114 std::vector<float> &_heights);
122 private:
void GetGeoReference(
double _x,
double _y,
123 math::Angle &_latitude,
124 math::Angle &_longitude);
130 private:
int LoadData();
134 private: DemPrivate *dataPtr;