10 #ifndef CReflectivityGridMap2D_H 11 #define CReflectivityGridMap2D_H 43 public utils::CDynamicGrid<
int8_t>,
61 return m_logodd_lut.
l2p(
c);
65 CReflectivityGridMap2D(
double x_min = -2,
double x_max = 2,
double y_min = -2,
double y_max = 2,
double resolution = 0.1);
87 void getAs3DObject(mrpt::opengl::CSetOfObjectsPtr &outObj)
const MRPT_OVERRIDE;
90 void getAsImage(
utils::CImage &
img,
bool verticalFlip =
false,
bool forceRGB=
false)
const;
96 bool internal_insertObservation( const
mrpt::obs::CObservation *obs, const
mrpt::poses::CPose3D *robotPose = NULL )
MRPT_OVERRIDE;
97 double internal_computeObservationLikelihood( const
mrpt::obs::CObservation *obs, const
mrpt::poses::CPose3D &takenFrom )
MRPT_OVERRIDE;
100 double min_x,max_x,min_y,max_y,resolution;
void clear()
Erase all the contents of the map.
Parameters for CMetricMap::compute3DMatchingRatio()
#define MAP_DEFINITION_END(_CLASS_NAME_, _LINKAGE_)
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
A class for storing images as grayscale or RGB bitmaps.
A 2D grid map representing the reflectivity of the environment (for example, measured with an IR prox...
This class allows loading and storing values and vectors of different types from a configuration text...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
#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...
void clear()
Calls the base CMetricMap::clear Declared here to avoid ambiguity between the two clear() in both bas...
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...
Parameters related with inserting observations into the map.
Declares a virtual base class for all metric maps storage classes.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
GLsizei GLsizei GLchar * source
A generic provider of log-odds grid-map maintainance functions.
static CLogOddsGridMapLUT< cell_t > m_logodd_lut
Lookup tables for log-odds.
float l2p(const cell_t l)
Scales an integer representation of the log-odd into a real valued probability in [0...
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
float cell2float(const int8_t &c) const MRPT_OVERRIDE
The user must implement this in order to provide "saveToTextFile" a way to convert each cell into a n...
GLenum const GLfloat * params
#define MAP_DEFINITION_START(_CLASS_NAME_, _LINKAGE_)
Add a MAP_DEFINITION_START() ...