18 #ifndef _GAZEBO_DEM_HH_
19 #define _GAZEBO_DEM_HH_
21 #include <ignition/math/Vector3.hh>
22 #include <ignition/math/Angle.hh>
24 #include <gazebo/gazebo_config.h>
51 public:
virtual ~
Dem();
56 public:
int Load(
const std::string &_filename=
"");
62 public:
double GetElevation(
double _x,
double _y);
66 public:
float GetMinElevation()
const;
70 public:
float GetMaxElevation()
const;
76 public:
void GetGeoReferenceOrigin(ignition::math::Angle &_latitude,
77 ignition::math::Angle &_longitude)
const;
86 public:
unsigned int GetHeight()
const;
95 public:
unsigned int GetWidth()
const;
99 public:
double GetWorldWidth()
const;
103 public:
double GetWorldHeight()
const;
115 public:
void FillHeightMap(
const int _subSampling,
116 const unsigned int _vertSize,
117 const ignition::math::Vector3d &_size,
118 const ignition::math::Vector3d &_scale,
120 std::vector<float> &_heights);
128 private:
void GetGeoReference(
double _x,
double _y,
129 ignition::math::Angle &_latitude,
130 ignition::math::Angle &_longitude)
const;
136 private:
int LoadData();
Private data for the Dem class.
Definition: DemPrivate.hh:37
Encapsulates a generic heightmap data file.
Definition: HeightmapData.hh:37
#define GZ_COMMON_VISIBLE
Definition: system.hh:84