10 #ifndef CHeightGridMap2D_H
11 #define CHeightGridMap2D_H
97 TMapRepresentation mapType = mrSimpleAverage,
102 float resolution = 0.1
107 bool isEmpty()
const;
122 void loadFromConfigFile(
124 const std::string §ion);
128 void dumpToTextStream(
CStream &out)
const;
145 float compute3DMatchingRatio(
148 float maxDistForCorr = 0.10f,
149 float maxMahaDistForCorr = 2.0f
154 void saveMetricMapRepresentationToFile(
155 const std::string &filNamePrefix
161 void getAs3DObject ( mrpt::opengl::CSetOfObjectsPtr &outObj )
const;
175 bool getMinMaxHeight(
float &z_min,
float &z_max)
const;
178 size_t countObservedCells()
const;
188 virtual void internal_clear();
197 virtual bool internal_insertObservation(
const CObservation *obs,
const CPose3D *robotPose = NULL );
205 namespace global_settings
static void fill(bimap< enum_t, std::string > &m_map)
void clear()
Erase all the contents of the map.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
float var
The current standard deviation of the height (in meters).
Standard object for storing any 3D lightweight object.
A mesh representation of a surface which keeps the estimated height for each (x,y) location...
Only specializations of this class are defined for each enum type of interest.
float cell2float(const THeightGridmapCell &c) const
The contents of each cell in a CHeightGridMap2D map.
float h
The current average height (in meters).
This class allows loading and storing values and vectors of different types from a configuration text...
Declares a virtual base class for all metric maps storage classes.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
float u
Auxiliary variable for storing the incremental mean value (in meters).
TColormap
Different colormaps.
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...
float minDistBetweenPointsWhenInserting
When inserting a scan, a point cloud is first created with this minimum distance between the 3D point...
Declares a class that represents any robot's observation.
A bidirectional version of std::map, declared as bimap and which actually contains two std...
slam::CHeightGridMap2D::TMapRepresentation enum_t
bool filterByHeight
Wether to perform filtering by z-coordinate (default=false): coordinates are always RELATIVE to the r...
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...
uint32_t w
[mrSimpleAverage model] The accumulated weight: initially zero if un-observed, increased by one for e...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
float z_min
Only when filterByHeight is true: coordinates are always RELATIVE to the robot for this filter...
THeightGridmapCell()
Constructor.
Parameters related with inserting observations into the map.
void insert(const KEY &k, const VALUE &v)
Insert a new pair KEY<->VALUE in the bi-map.
TMapRepresentation
The type of map representation to be used.
float v
Auxiliary (in meters).
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
MAPS_IMPEXP bool HEIGHTGRIDMAP_EXPORT3D_AS_MESH
If set to true (default), mrpt::slam::CHeightGridMap2D will be exported as a opengl::CMesh, otherwise, as a opengl::CPointCloudColoured Affects to:
TMapRepresentation m_mapType
The map representation type of this map.
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
mrpt::utils::TColormap colorMap
3D line, represented by a base point and a director vector.