Main MRPT website > C++ reference for MRPT 1.9.9
metric_map_types.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
14 #include <mrpt/obs/obs_frwds.h>
15 
16 namespace mrpt
17 {
18 namespace maps
19 {
20 /** Parameters for the determination of matchings between point clouds, etc. \sa
21  * CMetricMap::determineMatching2D, CMetricMap::determineMatching3D */
23 {
24  /** Maximum linear distance between two points to be paired (meters) */
26  /** Allowed "angular error" (in radians): this permits larger pairing
27  * threshold distances to more distant points. */
29  /** If set to true (default), only the closest correspondence will be
30  * returned. If false all are returned. */
32  /** Additional consistency filter: "onlyKeepTheClosest" allows one
33  * correspondence for each "local map" point, but many of them may have as
34  * corresponding pair the same "global point", which this flag avoids. */
36  /** (Default=1) Only consider 1 out of this number of points from the
37  * "other" map. */
39  /** Index of the first point in the "other" map to start checking for
40  * correspondences (Default=0) */
42  /** The point used to calculate angular distances: e.g. the coordinates of
43  * the sensor for a 2D laser scanner. */
45 
46  /** Ctor: default values */
48  : maxDistForCorrespondence(0.50f),
50  onlyKeepTheClosest(true),
51  onlyUniqueRobust(false),
54  angularDistPivotPoint(0, 0, 0)
55  {
56  }
57 };
58 
59 /** Additional results from the determination of matchings between point clouds,
60  * etc., apart from the pairings themselves \sa CMetricMap::determineMatching2D,
61  * CMetricMap::determineMatching3D */
63 {
64  /** The ratio [0,1] of points in otherMap with at least one correspondence.
65  */
67  /** The sum of all matched points squared distances.If undesired, set to
68  * nullptr, as default. */
69  float sumSqrDist;
70 
72 };
73 
74 /** Parameters for CMetricMap::compute3DMatchingRatio() */
76 {
77  /** (Default: 0.10f) The minimum distance between 2 non-probabilistic map
78  * elements for counting them as a correspondence. */
80  /** (Default: 2.0f) The minimum Mahalanobis distance between 2 probabilistic
81  * map elements for counting them as a correspondence. */
83 
85 };
86 
87 /** Common params to all maps derived from mrpt::maps::CMetricMap */
90 {
92  public:
93  /** (Default=true) If false, calling CMetricMap::getAs3DObject() will have
94  * no effects */
96  /** (Default=true) Enable computing observation likelihoods with this map */
98  /** (Default=true) Enable inserting observations in this map */
100 
101  void loadFromConfigFile(
103  const std::string& sectionNamePrefix) override; // See base docs
104  void saveToConfigFile(
106  const std::string& section) const override;
107 };
108 
109 } // namespace maps
110 } // namespace mrpt
mrpt::maps::TMapGenericParams::loadFromConfigFile
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string &sectionNamePrefix) override
This method load the options from a ".ini"-like file or memory-stored string list.
Definition: metric_map_types.cpp:22
mrpt::maps::TMatchingParams::TMatchingParams
TMatchingParams()
Ctor: default values.
Definition: metric_map_types.h:47
mrpt::maps::TMatchingParams::decimation_other_map_points
size_t decimation_other_map_points
(Default=1) Only consider 1 out of this number of points from the "other" map.
Definition: metric_map_types.h:38
mrpt::maps::TMapGenericParams::enableSaveAs3DObject
bool enableSaveAs3DObject
(Default=true) If false, calling CMetricMap::getAs3DObject() will have no effects
Definition: metric_map_types.h:95
mrpt::maps::TMapGenericParams::saveToConfigFile
void saveToConfigFile(mrpt::config::CConfigFileBase &target, const std::string &section) const override
This method saves the options to a ".ini"-like file or memory-stored string list.
Definition: metric_map_types.cpp:29
mrpt::maps::TMatchingExtraResults::TMatchingExtraResults
TMatchingExtraResults()
Definition: metric_map_types.h:71
mrpt::maps::TMatchingRatioParams
Parameters for CMetricMap::compute3DMatchingRatio()
Definition: metric_map_types.h:75
mrpt::maps::TMatchingRatioParams::maxDistForCorr
float maxDistForCorr
(Default: 0.10f) The minimum distance between 2 non-probabilistic map elements for counting them as a...
Definition: metric_map_types.h:79
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::maps::TMapGenericParams
Common params to all maps derived from mrpt::maps::CMetricMap
Definition: metric_map_types.h:88
mrpt::maps::TMatchingExtraResults::correspondencesRatio
float correspondencesRatio
The ratio [0,1] of points in otherMap with at least one correspondence.
Definition: metric_map_types.h:66
mrpt::maps::TMatchingParams::onlyUniqueRobust
bool onlyUniqueRobust
Additional consistency filter: "onlyKeepTheClosest" allows one correspondence for each "local map" po...
Definition: metric_map_types.h:35
mrpt::maps::TMatchingExtraResults::sumSqrDist
float sumSqrDist
The sum of all matched points squared distances.If undesired, set to nullptr, as default.
Definition: metric_map_types.h:69
source
GLsizei GLsizei GLchar * source
Definition: glext.h:4082
lightweight_geom_data.h
mrpt::maps::TMatchingParams::maxDistForCorrespondence
float maxDistForCorrespondence
Maximum linear distance between two points to be paired (meters)
Definition: metric_map_types.h:25
mrpt::config::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: config/CConfigFileBase.h:44
mrpt::config::CLoadableOptions
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
Definition: config/CLoadableOptions.h:28
mrpt::serialization::CSerializable
The virtual base class which provides a unified interface for all persistent objects in MRPT.
Definition: CSerializable.h:32
obs_frwds.h
mrpt::maps::TMatchingRatioParams::maxMahaDistForCorr
float maxMahaDistForCorr
(Default: 2.0f) The minimum Mahalanobis distance between 2 probabilistic map elements for counting th...
Definition: metric_map_types.h:82
mrpt::maps::TMapGenericParams::enableObservationInsertion
bool enableObservationInsertion
(Default=true) Enable inserting observations in this map
Definition: metric_map_types.h:99
mrpt::maps::TMatchingParams
Parameters for the determination of matchings between point clouds, etc.
Definition: metric_map_types.h:22
mrpt::math::TPoint3D
Lightweight 3D point.
Definition: lightweight_geom_data.h:378
mrpt::maps::TMatchingParams::offset_other_map_points
size_t offset_other_map_points
Index of the first point in the "other" map to start checking for correspondences (Default=0)
Definition: metric_map_types.h:41
mrpt::maps::TMapGenericParams::enableObservationLikelihood
bool enableObservationLikelihood
(Default=true) Enable computing observation likelihoods with this map
Definition: metric_map_types.h:97
CLoadableOptions.h
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition: CSerializable.h:102
mrpt::maps::TMatchingParams::onlyKeepTheClosest
bool onlyKeepTheClosest
If set to true (default), only the closest correspondence will be returned.
Definition: metric_map_types.h:31
mrpt::maps::TMatchingRatioParams::TMatchingRatioParams
TMatchingRatioParams()
Definition: metric_map_types.h:84
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::maps::TMatchingParams::angularDistPivotPoint
mrpt::math::TPoint3D angularDistPivotPoint
The point used to calculate angular distances: e.g.
Definition: metric_map_types.h:44
mrpt::maps::TMatchingExtraResults
Additional results from the determination of matchings between point clouds, etc.,...
Definition: metric_map_types.h:62
CSerializable.h
mrpt::maps::TMatchingParams::maxAngularDistForCorrespondence
float maxAngularDistForCorrespondence
Allowed "angular error" (in radians): this permits larger pairing threshold distances to more distant...
Definition: metric_map_types.h:28



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