Encapsulates a generic heightmap data file.
More...
#include <common/common.hh>
Encapsulates a generic heightmap data file.
virtual gazebo::common::HeightmapData::~HeightmapData |
( |
) | |
|
|
inlinevirtual |
virtual void gazebo::common::HeightmapData::FillHeightMap |
( |
int |
_subSampling, |
|
|
unsigned int |
_vertSize, |
|
|
const math::Vector3 & |
_size, |
|
|
const math::Vector3 & |
_scale, |
|
|
bool |
_flipY, |
|
|
std::vector< float > & |
_heights |
|
) |
| |
|
pure virtual |
Create a lookup table of the terrain's height.
- Parameters
-
[in] | _subsampling | Multiplier used to increase the resolution. Ex: A subsampling of 2 in a terrain of 129x129 means that the height vector will be 257 * 257. |
[in] | _vertSize | Number of points per row. |
[in] | _size | Real dimmensions of the terrain. |
[in] | _scale | Vector3 used to scale the height. |
[in] | _flipY | If true, it inverts the order in which the vector is filled. |
[out] | _heights | Vector containing the terrain heights. |
Implemented in gazebo::common::ImageHeightmap.
virtual unsigned int gazebo::common::HeightmapData::GetHeight |
( |
) | |
const |
|
pure virtual |
virtual float gazebo::common::HeightmapData::GetMaxElevation |
( |
) | |
const |
|
pure virtual |
virtual unsigned int gazebo::common::HeightmapData::GetWidth |
( |
) | |
const |
|
pure virtual |
The documentation for this class was generated from the following file: