10 #ifndef CHeightGridMap2D_H 11 #define CHeightGridMap2D_H 83 TMapRepresentation mapType = mrSimpleAverage,
84 double x_min = -2,
double x_max = 2,
85 double y_min = -2,
double y_max = 2,
86 double resolution = 0.1
112 void getAs3DObject(mrpt::opengl::CSetOfObjectsPtr &outObj)
const MRPT_OVERRIDE;
118 size_t countObservedCells()
const;
124 virtual
bool dem_get_z_by_cell(const
size_t cx, const
size_t cy,
double &z_out) const
MRPT_OVERRIDE;
125 virtual
bool dem_get_z(const
double x, const
double y,
double &z_out) const
MRPT_OVERRIDE;
132 bool internal_insertObservation( const
mrpt::obs::CObservation *obs, const
mrpt::poses::CPose3D *robotPose = NULL )
MRPT_OVERRIDE;
133 double internal_computeObservationLikelihood( const
mrpt::obs::CObservation *obs, const
mrpt::poses::CPose3D &takenFrom )
MRPT_OVERRIDE;
136 double min_x,max_x,min_y,max_y,resolution;
145 namespace global_settings
Digital Elevation Model (DEM), a mesh or grid representation of a surface which keeps the estimated h...
void clear()
Erase all the contents of the map.
float var
The current standard deviation of the height (in meters)
float h
The current average height (in meters)
Parameters for CMetricMap::compute3DMatchingRatio()
Extra params for insertIndividualPoint()
#define MAP_DEFINITION_END(_CLASS_NAME_, _LINKAGE_)
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
TColormap
Different colormaps for use in mrpt::utils::colormap()
TMapRepresentation
The type of map representation to be used.
The contents of each cell in a CHeightGridMap2D map.
Only specializations of this class are defined for each enum type of interest.
uint32_t w
[For mrSimpleAverage model] The accumulated weight: initially zero if un-observed, increased by one for each observation
float v
Auxiliary (in meters)
void clear()
Calls the base CMetricMap::clear Declared here to avoid ambiguity between the two clear() in both bas...
GLubyte GLubyte GLubyte GLubyte w
This class allows loading and storing values and vectors of different types from a configuration text...
MAPS_IMPEXP bool HEIGHTGRIDMAP_EXPORT3D_AS_MESH
If set to true (default), mrpt::maps::CHeightGridMap2D will be exported as a opengl::CMesh, otherwise, as a opengl::CPointCloudColoured Affects to:
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
mrpt::utils::TColormap colorMap
A 2D grid of dynamic size which stores any kind of data at each cell.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
Parameters related with inserting observations into the map.
A bidirectional version of std::map, declared as bimap<KEY,VALUE> and which actually contains two std...
float u
Auxiliary variable for storing the incremental mean value (in meters).
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
static void fill(bimap< enum_t, std::string > &m_map)
Declares a virtual base class for all metric maps storage classes.
bool filterByHeight
Whether to perform filtering by z-coordinate (default=false): coordinates are always RELATIVE to the ...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
float cell2float(const THeightGridmapCell &c) const MRPT_OVERRIDE
Virtual base class for Digital Elevation Model (DEM) maps.
GLsizei GLsizei GLchar * source
void insert(const KEY &k, const VALUE &v)
Insert a new pair KEY<->VALUE in the bi-map.
maps::CHeightGridMap2D::TMapRepresentation enum_t
unsigned __int32 uint32_t
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
GLenum const GLfloat * params
#define MAP_DEFINITION_START(_CLASS_NAME_, _LINKAGE_)
Add a MAP_DEFINITION_START() ...