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;
78 public:
void GetGeoReferenceOrigin(
math::Angle &_latitude,
85 public:
void GetGeoReferenceOrigin(ignition::math::Angle &_latitude,
86 ignition::math::Angle &_longitude)
const;
95 public:
unsigned int GetHeight()
const;
104 public:
unsigned int GetWidth()
const;
108 public:
double GetWorldWidth()
const;
112 public:
double GetWorldHeight()
const;
126 public:
void FillHeightMap(
int _subSampling,
unsigned int _vertSize,
140 public:
void FillHeightMap(
const int _subSampling,
141 const unsigned int _vertSize,
142 const ignition::math::Vector3d &_size,
143 const ignition::math::Vector3d &_scale,
145 std::vector<float> &_heights);
153 private:
void GetGeoReference(
double _x,
double _y,
154 ignition::math::Angle &_latitude,
155 ignition::math::Angle &_longitude)
const;
161 private:
int LoadData();
Private data for the Dem class.
Definition: DemPrivate.hh:37
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
Encapsulates a generic heightmap data file.
Definition: HeightmapData.hh:37
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:47
#define GZ_COMMON_VISIBLE
Definition: system.hh:91
An angle and related functions.
Definition: Angle.hh:53