Go to the documentation of this file.
10 #ifndef CHeightGridMap2D_H
11 #define CHeightGridMap2D_H
91 double x_max = 2,
double y_min = -2,
double y_max = 2,
92 double resolution = 0.1);
107 std::ostream& out)
const override;
142 const double x,
const double y,
const double z,
149 const size_t cx,
const size_t cy,
double& z_out)
const override;
151 const double x,
const double y,
double& z_out)
const override;
168 double min_x, max_x, min_y, max_y, resolution;
178 namespace global_settings
float v
Auxiliary (in meters)
TColormap
Different colormaps for use in mrpt::img::colormap()
mrpt::maps::CHeightGridMap2D::TInsertionOptions insertionOptions
#define MRPT_ENUM_TYPE_END()
Parameters related with inserting observations into the map.
bool HEIGHTGRIDMAP_EXPORT3D_AS_MESH()
void internal_clear() override
Internal method called by clear()
float z_min
Only when filterByHeight is true: coordinates are always RELATIVE to the robot for this filter.
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ion) override
This method load the options from a ".ini"-like file or memory-stored string list.
Extra params for insertIndividualPoint()
Virtual base class for Digital Elevation Model (DEM) maps.
bool internal_insertObservation(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D *robotPose=nullptr) override
Internal method called by insertObservation()
virtual bool dem_get_z_by_cell(const size_t cx, const size_t cy, double &z_out) const override
Get cell 'z' by (cx,cy) cell indices.
Parameters for CMetricMap::compute3DMatchingRatio()
bool isEmpty() const override
Returns true if the map is empty/no observation has been inserted.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLubyte GLubyte GLubyte GLubyte w
#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)
The contents of each cell in a CHeightGridMap2D map.
float cell2float(const THeightGridmapCell &c) const override
MRPT_FILL_ENUM_MEMBER(maps::CHeightGridMap2D::TMapRepresentation, mrSimpleAverage)
GLsizei GLsizei GLchar * source
TMapRepresentation m_mapType
The map representation type of this map.
bool filterByHeight
Whether to perform filtering by z-coordinate (default=false): coordinates are always RELATIVE to the ...
float var
The current standard deviation of the height (in meters)
void saveMetricMapRepresentationToFile(const std::string &filNamePrefix) const override
This virtual method saves the map to a file "filNamePrefix"+< some_file_extension >,...
Declares a virtual base class for all metric maps storage classes.
Digital Elevation Model (DEM), a mesh or grid representation of a surface which keeps the estimated h...
size_t countObservedCells() const
Return the number of cells with at least one height data inserted.
This class allows loading and storing values and vectors of different types from a configuration text...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
TMapRepresentation getMapType()
Return the type of the gas distribution map, according to parameters passed on construction.
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
TMapRepresentation
The type of map representation to be used.
float h
The current average height (in meters)
float compute3DMatchingRatio(const mrpt::maps::CMetricMap *otherMap, const mrpt::poses::CPose3D &otherMapPose, const TMatchingRatioParams ¶ms) const override
See docs in base class: in this class it always returns 0.
virtual bool insertIndividualPoint(const double x, const double y, const double z, const CHeightGridMap2D_Base::TPointInsertParams ¶ms=CHeightGridMap2D_Base::TPointInsertParams()) override
Update the DEM with one new point.
std::shared_ptr< CSetOfObjects > Ptr
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form,...
virtual void dem_update_map() override
Ensure that all observations are reflected in the map estimate.
#define MAP_DEFINITION_START(_CLASS_NAME_)
Add a MAP_DEFINITION_START() ...
virtual size_t dem_get_size_y() const override
void clear()
Calls the base CMetricMap::clear Declared here to avoid ambiguity between the two clear() in both bas...
void getAs3DObject(mrpt::opengl::CSetOfObjects::Ptr &outObj) const override
Returns a 3D object representing the map: by default, it will be a mrpt::opengl::CMesh object,...
A 2D grid of dynamic size which stores any kind of data at each cell.
#define MAP_DEFINITION_END(_CLASS_NAME_)
double internal_computeObservationLikelihood(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D &takenFrom) override
Internal method called by computeObservationLikelihood()
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
float u
Auxiliary variable for storing the incremental mean value (in meters).
GLsizei const GLfloat * value
virtual bool dem_get_z(const double x, const double y, double &z_out) const override
Get cell 'z' (x,y) by metric coordinates.
mrpt::img::TColormap colorMap
Declares a class that represents any robot's observation.
TInsertionOptions()
Default values loader.
GLsizei const GLchar ** string
void clear()
Erase all the contents of the map.
uint32_t w
[For mrSimpleAverage model] The accumulated weight: initially zero if un-observed,...
CHeightGridMap2D(TMapRepresentation mapType=mrSimpleAverage, double x_min=-2, double x_max=2, double y_min=-2, double y_max=2, double resolution=0.1)
Constructor.
virtual double dem_get_resolution() const override
unsigned __int32 uint32_t
virtual size_t dem_get_size_x() const override
GLenum const GLfloat * params
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |