Go to the documentation of this file.
10 #ifndef CReflectivityGridMap2D_H
11 #define CReflectivityGridMap2D_H
64 double x_min = -2,
double x_max = 2,
double y_min = -2,
65 double y_max = 2,
double resolution = 0.1);
81 std::ostream& out)
const override;
105 bool forceRGB =
false)
const;
119 double min_x, max_x, min_y, max_y, resolution;
Parameters related with inserting observations into the map.
bool internal_insertObservation(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D *robotPose=nullptr) override
Internal method called by insertObservation()
bool isEmpty() const override
Returns true if the map is empty/no observation has been inserted.
int16_t channel
The reflectivity channel for this map.
float l2p(const cell_t l)
Scales an integer representation of the log-odd into a real valued probability in [0,...
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form,...
TInsertionOptions()
Default values loader.
Parameters for CMetricMap::compute3DMatchingRatio()
double internal_computeObservationLikelihood(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D &takenFrom) override
Internal method called by computeObservationLikelihood()
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CReflectivityGridMap2D(double x_min=-2, double x_max=2, double y_min=-2, double y_max=2, double resolution=0.1)
Constructor
GLsizei GLsizei GLchar * source
A generic provider of log-odds grid-map maintainance functions.
Declares a virtual base class for all metric maps storage classes.
void clear()
Calls the base CMetricMap::clear Declared here to avoid ambiguity between the two clear() in both bas...
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).
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
static CLogOddsGridMapLUT< cell_t > m_logodd_lut
Lookup tables for log-odds.
std::shared_ptr< CSetOfObjects > Ptr
void getAsImage(mrpt::img::CImage &img, bool verticalFlip=false, bool forceRGB=false) const
Returns the grid as a 8-bit graylevel image, where each pixel is a cell (output image is RGB only if ...
A class for storing images as grayscale or RGB bitmaps.
#define MAP_DEFINITION_START(_CLASS_NAME_)
Add a MAP_DEFINITION_START() ...
float cell2float(const int8_t &c) const override
The user must implement this in order to provide "saveToTextFile" a way to convert each cell into a n...
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.
A 2D grid of dynamic size which stores any kind of data at each cell.
#define MAP_DEFINITION_END(_CLASS_NAME_)
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A 2D grid map representing the reflectivity of the environment (for example, measured with an IR prox...
Declares a class that represents any robot's observation.
GLsizei const GLchar ** string
mrpt::maps::CReflectivityGridMap2D::TInsertionOptions insertionOptions
void clear()
Erase all the contents of the map.
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 this always returns 0.
void internal_clear() override
Internal method called by clear()
GLenum const GLfloat * params
void saveMetricMapRepresentationToFile(const std::string &filNamePrefix) const override
This virtual method saves the map to a file "filNamePrefix"+< some_file_extension >,...
void getAs3DObject(mrpt::opengl::CSetOfObjects::Ptr &outObj) const override
Returns a 3D object representing the map.
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 | |