Main MRPT website > C++ reference for MRPT 1.4.0
Classes | Namespaces | Enumerations
[mrpt-maps]

Detailed Description

Back to list of all libraries | See all modules

Library mrpt-maps


This library includes (almost) all the maps usable for localization or mapping in the rest of MRPT classes.

Interesting starting points:

Please, note that there is another very important map class (mrpt::maps::CMultiMetricMap) which is not in mrpt-maps, but in the library mrpt-slam (the reason is that there is not another reasonable way to factor MRPT into small libraries).

See the list of classes in mrpt::maps

Collaboration diagram for [mrpt-maps]:

Classes

class  mrpt::maps::CBeacon
 The class for storing individual "beacon landmarks" under a variety of 3D position PDF distributions. More...
 
class  mrpt::maps::CBeaconMap
 A class for storing a map of 3D probabilistic beacons, using a Montecarlo, Gaussian, or Sum of Gaussians (SOG) representation (for range-only SLAM). More...
 
struct  mrpt::maps::CBeaconMap::TLikelihoodOptions
 With this struct options are provided to the likelihood computations. More...
 
struct  mrpt::maps::CBeaconMap::TInsertionOptions
 This struct contains data for choosing the method by which new beacons are inserted in the map. More...
 
struct  mrpt::maps::CBeaconMap::TMapDefinitionBase
 
struct  mrpt::maps::CBeaconMap::TMapDefinition
 
class  mrpt::maps::CColouredOctoMap
 A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ library. More...
 
class  mrpt::maps::CColouredPointsMap
 A map of 2D/3D points with individual colours (RGB). More...
 
struct  mrpt::maps::CColouredPointsMap::TColourOptions
 The definition of parameters for generating colors from laser scans. More...
 
class  mrpt::maps::CGasConcentrationGridMap2D
 CGasConcentrationGridMap2D represents a PDF of gas concentrations over a 2D area. More...
 
struct  mrpt::maps::CGasConcentrationGridMap2D::TGaussianCell
 
struct  mrpt::maps::CGasConcentrationGridMap2D::TGaussianWindTable
 
class  mrpt::maps::CHeightGridMap2D
 Digital Elevation Model (DEM), a mesh or grid representation of a surface which keeps the estimated height for each (x,y) location. More...
 
class  mrpt::maps::CHeightGridMap2D_Base
 Virtual base class for Digital Elevation Model (DEM) maps. More...
 
struct  mrpt::maps::CHeightGridMap2D_Base::TPointInsertParams
 Extra params for insertIndividualPoint() More...
 
class  mrpt::maps::CHeightGridMap2D_MRF
 CHeightGridMap2D_MRF represents a PDF of gas concentrations over a 2D area. More...
 
struct  mrpt::maps::CLogOddsGridMap2D< TCELL >
 A generic provider of log-odds grid-map maintainance functions. More...
 
struct  mrpt::maps::CLogOddsGridMapLUT< TCELL >
 One static instance of this struct should exist in any class implementing CLogOddsGridMap2D to hold the Look-up-tables (LUTs) for log-odss Bayesian update. More...
 
class  mrpt::maps::COccupancyGridMap2D
 A class for storing an occupancy grid map. More...
 
struct  mrpt::maps::COccupancyGridMap2D::TUpdateCellsInfoChangeOnly
 An internal structure for storing data related to counting the new information apported by some observation. More...
 
struct  mrpt::maps::COccupancyGridMap2D::TEntropyInfo
 Used for returning entropy related information. More...
 
class  mrpt::maps::COccupancyGridMap2D::TLikelihoodOutput
 Some members of this struct will contain intermediate or output data after calling "computeObservationLikelihood" for some likelihood functions. More...
 
struct  mrpt::maps::COccupancyGridMap2D::TLaserSimulUncertaintyParams
 Input params for laserScanSimulatorWithUncertainty() More...
 
struct  mrpt::maps::COccupancyGridMap2D::TLaserSimulUncertaintyResult
 Output params for laserScanSimulatorWithUncertainty() More...
 
struct  mrpt::maps::COccupancyGridMap2D::TCriticalPointsList
 The structure used to store the set of Voronoi diagram critical points. More...
 
class  mrpt::maps::COctoMap
 A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ library. More...
 
class  mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >
 A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ library. More...
 
struct  mrpt::maps::COctoMapBase< OCTREE, OCTREE_NODE >::TRenderingOptions
 Options for the conversion of a mrpt::maps::COctoMap into a mrpt::opengl::COctoMapVoxels. More...
 
class  mrpt::maps::CPointsMap
 A cloud of points in 2D or 3D, which can be built from a sequence of laser scans or other sensors. More...
 
struct  mrpt::maps::CPointsMap::TLaserRange2DInsertContext
 Helper struct used for internal_loadFromRangeScan2D_prepareOneRange() More...
 
struct  mrpt::maps::CPointsMap::TLaserRange3DInsertContext
 Helper struct used for internal_loadFromRangeScan3D_prepareOneRange() More...
 
struct  mrpt::maps::CPointsMap::LAS_WriteParams
 Optional settings for saveLASFile() More...
 
struct  mrpt::maps::CPointsMap::LAS_LoadParams
 Optional settings for loadLASFile() More...
 
struct  mrpt::maps::CPointsMap::LAS_HeaderInfo
 Extra information gathered from the LAS file header. More...
 
struct  mrpt::maps::TRandomFieldCell
 The contents of each cell in a CRandomFieldGridMap2D map. More...
 
class  mrpt::maps::CRandomFieldGridMap2D
 CRandomFieldGridMap2D represents a 2D grid map where each cell is associated one real-valued property which is estimated by this map, either as a simple value or as a probility distribution (for each cell). More...
 
struct  mrpt::maps::CRandomFieldGridMap2D::TInsertionOptionsCommon
 Parameters common to any derived class. More...
 
struct  mrpt::maps::CRandomFieldGridMap2D::TobservationGMRF
 
class  mrpt::maps::CReflectivityGridMap2D
 A 2D grid map representing the reflectivity of the environment (for example, measured with an IR proximity sensor). More...
 
class  mrpt::maps::CSimplePointsMap
 A cloud of points in 2D or 3D, which can be built from a sequence of laser scans. More...
 
class  mrpt::maps::CWeightedPointsMap
 A cloud of points in 2D or 3D, which can be built from a sequence of laser scans. More...
 
class  mrpt::maps::CWirelessPowerGridMap2D
 CWirelessPowerGridMap2D represents a PDF of wifi concentrations over a 2D area. More...
 
class  mrpt::opengl::CAngularObservationMesh
 A mesh built from a set of 2D laser scan observations. More...
 
struct  mrpt::opengl::CAngularObservationMesh::TDoubleRange
 Range specification type, with several uses. More...
 
union  mrpt::opengl::CAngularObservationMesh::TDoubleRange::rd
 Union type with the actual data. More...
 
class  mrpt::opengl::CAngularObservationMesh::FTrace1D< T >
 Internal functor class to trace a ray. More...
 
class  mrpt::opengl::CAngularObservationMesh::FTrace2D< T >
 Internal functor class to trace a set of rays. More...
 
class  mrpt::opengl::CPlanarLaserScan
 This object renders a 2D laser scan by means of three elements: the points, the line along end-points and the 2D scanned surface. More...
 

Namespaces

 mrpt::maps
 
 mrpt::maps::detail
 
 mrpt::opengl
 The namespace for 3D scene representation and rendering.
 

Enumerations

enum  mrpt::maps::CBeacon::TTypePDF { mrpt::maps::CBeacon::pdfMonteCarlo = 0, mrpt::maps::CBeacon::pdfGauss, mrpt::maps::CBeacon::pdfSOG }
 See m_typePDF. More...
 
enum  mrpt::maps::CColouredOctoMap::TColourUpdate { mrpt::maps::CColouredOctoMap::INTEGRATE = 0, mrpt::maps::CColouredOctoMap::SET, mrpt::maps::CColouredOctoMap::AVERAGE }
 This allows the user to select the desired method to update voxels colour. More...
 
enum  mrpt::maps::CColouredPointsMap::TColouringMethod { mrpt::maps::CColouredPointsMap::cmFromHeightRelativeToSensor = 0, mrpt::maps::CColouredPointsMap::cmFromHeightRelativeToSensorJet = 0, mrpt::maps::CColouredPointsMap::cmFromHeightRelativeToSensorGray = 1, mrpt::maps::CColouredPointsMap::cmFromIntensityImage = 2 }
 The choices for coloring schemes: More...
 
enum  mrpt::maps::CHeightGridMap2D::TMapRepresentation { mrpt::maps::CHeightGridMap2D::mrSimpleAverage = 0 }
 The type of map representation to be used. More...
 
enum  mrpt::maps::COccupancyGridMap2D::TLikelihoodMethod {
  mrpt::maps::COccupancyGridMap2D::lmMeanInformation = 0, mrpt::maps::COccupancyGridMap2D::lmRayTracing, mrpt::maps::COccupancyGridMap2D::lmConsensus, mrpt::maps::COccupancyGridMap2D::lmCellsDifference,
  mrpt::maps::COccupancyGridMap2D::lmLikelihoodField_Thrun, mrpt::maps::COccupancyGridMap2D::lmLikelihoodField_II, mrpt::maps::COccupancyGridMap2D::lmConsensusOWA
}
 The type for selecting a likelihood computation method. More...
 
enum  mrpt::maps::CRandomFieldGridMap2D::TMapRepresentation {
  mrpt::maps::CRandomFieldGridMap2D::mrKernelDM = 0, mrpt::maps::CRandomFieldGridMap2D::mrAchim = 0, mrpt::maps::CRandomFieldGridMap2D::mrKalmanFilter, mrpt::maps::CRandomFieldGridMap2D::mrKalmanApproximate,
  mrpt::maps::CRandomFieldGridMap2D::mrKernelDMV, mrpt::maps::CRandomFieldGridMap2D::mrGMRF_G, mrpt::maps::CRandomFieldGridMap2D::mrGMRF_SD
}
 The type of map representation to be used, see CRandomFieldGridMap2D for a discussion. More...
 
enum  mrpt::maps::CRandomFieldGridMap2D::TGridInterpolationMethod { mrpt::maps::CRandomFieldGridMap2D::gimNearest = 0, mrpt::maps::CRandomFieldGridMap2D::gimBilinear }
 

Sensor simulators

enum  mrpt::maps::COccupancyGridMap2D::TLaserSimulUncertaintyMethod { mrpt::maps::COccupancyGridMap2D::sumUnscented = 0, mrpt::maps::COccupancyGridMap2D::sumMonteCarlo }
 Methods for TLaserSimulUncertaintyParams in laserScanSimulatorWithUncertainty() More...
 
void mrpt::maps::COccupancyGridMap2D::laserScanSimulator (mrpt::obs::CObservation2DRangeScan &inout_Scan, const mrpt::poses::CPose2D &robotPose, float threshold=0.6f, size_t N=361, float noiseStd=0, unsigned int decimation=1, float angleNoiseStd=mrpt::utils::DEG2RAD(0)) const
 Simulates a laser range scan into the current grid map. More...
 
void mrpt::maps::COccupancyGridMap2D::sonarSimulator (mrpt::obs::CObservationRange &inout_observation, const mrpt::poses::CPose2D &robotPose, float threshold=0.5f, float rangeNoiseStd=0.f, float angleNoiseStd=mrpt::utils::DEG2RAD(0.f)) const
 Simulates the observations of a sonar rig into the current grid map. More...
 
void mrpt::maps::COccupancyGridMap2D::simulateScanRay (const double x, const double y, const double angle_direction, float &out_range, bool &out_valid, const double max_range_meters, const float threshold_free=0.4f, const double noiseStd=.0, const double angleNoiseStd=.0) const
 Simulate just one "ray" in the grid map. More...
 
void mrpt::maps::COccupancyGridMap2D::laserScanSimulatorWithUncertainty (const TLaserSimulUncertaintyParams &in_params, TLaserSimulUncertaintyResult &out_results) const
 Like laserScanSimulatorWithUncertainty() (see it for a discussion of most parameters) but taking into account the robot pose uncertainty and generating a vector of predicted variances for each ray. More...
 

Enumeration Type Documentation

The choices for coloring schemes:

  • cmFromHeightRelativeToSensor: The Z coordinate wrt the sensor will be used to obtain the color using the limits z_min,z_max.
  • cmFromIntensityImage: When inserting 3D range scans, take the color from the intensity image channel, if available.
    See also
    TColourOptions
Enumerator
cmFromHeightRelativeToSensor 
cmFromHeightRelativeToSensorJet 
cmFromHeightRelativeToSensorGray 
cmFromIntensityImage 

Definition at line 195 of file maps/CColouredPointsMap.h.

This allows the user to select the desired method to update voxels colour.

SET = Set the colour of the voxel at (x,y,z) directly AVERAGE = Set the colour of the voxel at (x,y,z) as the mean of its previous colour and the new observed one. INTEGRATE = Calculate the new colour of the voxel at (x,y,z) using this formula: prev_color*node_prob + new_color*(0.99-node_prob) If there isn't any previous color, any method is equivalent to SET. INTEGRATE is the default option

Enumerator
INTEGRATE 
SET 
AVERAGE 

Definition at line 47 of file maps/CColouredOctoMap.h.

Enumerator
gimNearest 
gimBilinear 

Definition at line 272 of file maps/CRandomFieldGridMap2D.h.

Methods for TLaserSimulUncertaintyParams in laserScanSimulatorWithUncertainty()

Enumerator
sumUnscented 

Performs an unscented transform.

sumMonteCarlo 

Montecarlo-based estimation.

Definition at line 587 of file maps/COccupancyGridMap2D.h.

The type for selecting a likelihood computation method.

Enumerator
lmMeanInformation 
lmRayTracing 
lmConsensus 
lmCellsDifference 
lmLikelihoodField_Thrun 
lmLikelihoodField_II 
lmConsensusOWA 

Definition at line 379 of file maps/COccupancyGridMap2D.h.

The type of map representation to be used.

See mrpt::maps::CHeightGridMap2D for discussion.

Enumerator
mrSimpleAverage 

Definition at line 76 of file maps/CHeightGridMap2D.h.

The type of map representation to be used, see CRandomFieldGridMap2D for a discussion.

Enumerator
mrKernelDM 

Gaussian kernel-based estimator (see discussion in mrpt::maps::CRandomFieldGridMap2D)

mrAchim 

Another alias for "mrKernelDM", for backwards compatibility (see discussion in mrpt::maps::CRandomFieldGridMap2D)

mrKalmanFilter 

"Brute-force" Kalman filter (see discussion in mrpt::maps::CRandomFieldGridMap2D)

mrKalmanApproximate 

(see discussion in mrpt::maps::CRandomFieldGridMap2D)

mrKernelDMV 

Double mean + variance Gaussian kernel-based estimator (see discussion in mrpt::maps::CRandomFieldGridMap2D)

mrGMRF_G 

Gaussian Markov Random Field, Gaussian prior weights between neighboring cells up to a certain distance (see discussion in mrpt::maps::CRandomFieldGridMap2D)

mrGMRF_SD 

Gaussian Markov Random Field, squared differences prior weights between 4 neighboring cells (see discussion in mrpt::maps::CRandomFieldGridMap2D)

Definition at line 135 of file maps/CRandomFieldGridMap2D.h.

See m_typePDF.

Enumerator
pdfMonteCarlo 
pdfGauss 
pdfSOG 

Definition at line 52 of file maps/CBeacon.h.

Function Documentation

void mrpt::maps::COccupancyGridMap2D::laserScanSimulator ( mrpt::obs::CObservation2DRangeScan &  inout_Scan,
const mrpt::poses::CPose2D &  robotPose,
float  threshold = 0.6f,
size_t  N = 361,
float  noiseStd = 0,
unsigned int  decimation = 1,
float  angleNoiseStd = mrpt::utils::DEG2RAD(0) 
) const

Simulates a laser range scan into the current grid map.

The simulated scan is stored in a CObservation2DRangeScan object, which is also used to pass some parameters: all previously stored characteristics (as aperture,...) are taken into account for simulation. Only a few more parameters are needed. Additive gaussian noise can be optionally added to the simulated scan.

Parameters
inout_Scan[IN/OUT] This must be filled with desired parameters before calling, and will contain the scan samples on return.
robotPose[IN] The robot pose in this map coordinates. Recall that sensor pose relative to this robot pose must be specified in the observation object.
threshold[IN] The minimum occupancy threshold to consider a cell to be occupied (Default: 0.5f)
N[IN] The count of range scan "rays", by default to 361.
noiseStd[IN] The standard deviation of measurement noise. If not desired, set to 0.
decimation[IN] The rays that will be simulated are at indexes: 0, D, 2D, 3D, ... Default is D=1
angleNoiseStd[IN] The sigma of an optional Gaussian noise added to the angles at which ranges are measured (in radians).
See also
laserScanSimulatorWithUncertainty(), sonarSimulator(), COccupancyGridMap2D::RAYTRACE_STEP_SIZE_IN_CELL_UNITS
void mrpt::maps::COccupancyGridMap2D::laserScanSimulatorWithUncertainty ( const TLaserSimulUncertaintyParams &  in_params,
TLaserSimulUncertaintyResult &  out_results 
) const

Like laserScanSimulatorWithUncertainty() (see it for a discussion of most parameters) but taking into account the robot pose uncertainty and generating a vector of predicted variances for each ray.

Range uncertainty includes both, sensor noise and large non-linear effects caused by borders and discontinuities in the environment as seen from different robot poses.

Parameters
in_params[IN] Input settings. See TLaserSimulUncertaintyParams
in_params[OUT] Output range + uncertainty.
See also
laserScanSimulator(), COccupancyGridMap2D::RAYTRACE_STEP_SIZE_IN_CELL_UNITS
void mrpt::maps::COccupancyGridMap2D::simulateScanRay ( const double  x,
const double  y,
const double  angle_direction,
float &  out_range,
bool &  out_valid,
const double  max_range_meters,
const float  threshold_free = 0.4f,
const double  noiseStd = .0,
const double  angleNoiseStd = .0 
) const

Simulate just one "ray" in the grid map.

This method is used internally to sonarSimulator and laserScanSimulator.

See also
COccupancyGridMap2D::RAYTRACE_STEP_SIZE_IN_CELL_UNITS
void mrpt::maps::COccupancyGridMap2D::sonarSimulator ( mrpt::obs::CObservationRange &  inout_observation,
const mrpt::poses::CPose2D &  robotPose,
float  threshold = 0.5f,
float  rangeNoiseStd = 0.f,
float  angleNoiseStd = mrpt::utils::DEG2RAD(0.f) 
) const

Simulates the observations of a sonar rig into the current grid map.

The simulated ranges are stored in a CObservationRange object, which is also used to pass in some needed parameters, as the poses of the sonar sensors onto the mobile robot.

Parameters
inout_observation[IN/OUT] This must be filled with desired parameters before calling, and will contain the simulated ranges on return.
robotPose[IN] The robot pose in this map coordinates. Recall that sensor pose relative to this robot pose must be specified in the observation object.
threshold[IN] The minimum occupancy threshold to consider a cell to be occupied (Default: 0.5f)
rangeNoiseStd[IN] The standard deviation of measurement noise. If not desired, set to 0.
angleNoiseStd[IN] The sigma of an optional Gaussian noise added to the angles at which ranges are measured (in radians).
See also
laserScanSimulator(), COccupancyGridMap2D::RAYTRACE_STEP_SIZE_IN_CELL_UNITS



Page generated by Doxygen 1.8.8 for MRPT 1.4.0 SVN: at Sun Mar 12 00:47:13 UTC 2023