9 #ifndef CGridMapAligner_H
10 #define CGridMapAligner_H
49 float* runningTime =
nullptr,
void* info =
nullptr);
57 float* runningTime =
nullptr,
void* info =
nullptr);
86 std::ostream& out)
const override;
232 float* runningTime =
nullptr,
234 void* info =
nullptr);
240 float* runningTime =
nullptr,
void* info =
nullptr);
MRPT_FILL_ENUM_MEMBER(CGridMapAligner, amRobustMatch)
#define MRPT_ENUM_TYPE_END()
#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)
This class allows loading and storing values and vectors of different types from a configuration text...
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
std::shared_ptr< CLandmarksMap > Ptr
Declares a virtual base class for all metric maps storage classes.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle.
Declares a class that represents a Probability Density function (PDF) of a 3D pose .
std::shared_ptr< CPose3DPDF > Ptr
Declares a class that represents a Probability Density function (PDF) of a 2D pose .
std::shared_ptr< CPosePDF > Ptr
The ICP algorithm configuration data.
float threshold_delta
Correspondences are considered if their distances to the best match are below this threshold (in the ...
float ransac_minSetSizeRatio
RANSAC-step options:
mrpt::vision::TDescriptorType feature_descriptor
The feature descriptor to use: 0=detector already has descriptor, 1= SIFT, 2=SURF,...
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form,...
bool save_feat_coors
DEBUG - Dump all feature correspondences in a directory "grid_feats".
double max_ICP_mahadist
The maximum Mahalanobis distance between the initial and final poses in the ICP not to discard the hy...
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.
bool debug_save_map_pairs
DEBUG - Save the pair of maps with all the pairings.
float featsPerSquareMeter
Features extraction from grid map: How many features to extract.
double maxKLd_for_merge
Maximum KL-divergence for merging modes of the SOG (default=0.9)
double ransac_chi2_quantile
[amModifiedRANSAC method only] The quantile used for chi-square thresholding (default=0....
bool debug_show_corrs
DEBUG - Show graphs with the details of each feature correspondences.
mrpt::vision::CFeatureExtraction::TOptions feature_detector_options
All the parameters for the feature detector.
float ransac_mahalanobisDistanceThreshold
[amRobustMatch method only] RANSAC-step options:
float min_ICP_goodness
The minimum goodness (0-1) of the post-matching ICP to accept a hypothesis as good (default=0....
TAlignerMethod methodSelection
The aligner method:
float threshold_max
Correspondences are considered if their distances are below this threshold (in the range [0,...
TConfigParams()
Initializer for default values:
double ransac_prob_good_inliers
Probability of having a good inliers (def:0,9999), used for automatic number of iterations.
float ransac_SOG_sigma_m
The square root of the uncertainty normalization variance var_m (see papers...)
A class for aligning two multi-metric maps (with an occupancy grid maps and a points map,...
mrpt::poses::CPosePDF::Ptr AlignPDF(const mrpt::maps::CMetricMap *m1, const mrpt::maps::CMetricMap *m2, const mrpt::poses::CPosePDFGaussian &initialEstimationPDF, float *runningTime=nullptr, void *info=nullptr)
The method for aligning a pair of 2D points map.
mrpt::poses::CPosePDF::Ptr AlignPDF_correlation(const mrpt::maps::CMetricMap *m1, const mrpt::maps::CMetricMap *m2, const mrpt::poses::CPosePDFGaussian &initialEstimationPDF, float *runningTime=nullptr, void *info=nullptr)
Private member, implements one the algorithms.
COccupancyGridMapFeatureExtractor m_grid_feat_extr
Grid map features extractor.
mrpt::slam::CGridMapAligner::TConfigParams options
mrpt::poses::CPosePDF::Ptr AlignPDF_robustMatch(const mrpt::maps::CMetricMap *m1, const mrpt::maps::CMetricMap *m2, const mrpt::poses::CPosePDFGaussian &initialEstimationPDF, float *runningTime=nullptr, void *info=nullptr)
Private member, implements both, the "robustMatch" and the newer "modifiedRANSAC" algorithms.
TAlignerMethod
The type for selecting the grid-map alignment algorithm.
mrpt::poses::CPose3DPDF::Ptr Align3DPDF(const mrpt::maps::CMetricMap *m1, const mrpt::maps::CMetricMap *m2, const mrpt::poses::CPose3DPDFGaussian &initialEstimationPDF, float *runningTime=nullptr, void *info=nullptr)
Not applicable in this class, will launch an exception.
A base class for any algorithm able of maps alignment.
GLsizei const GLchar ** string
GLsizei GLsizei GLchar * source
TDescriptorType
The bitwise OR combination of values of TDescriptorType are used in CFeatureExtraction::computeDescri...
TPairPlusDistance(size_t i1, size_t i2, float d)
The ICP algorithm return information.
std::vector< TPairPlusDistance > correspondences_dists_maha
Mahalanobis distance for each potential correspondence.
mrpt::containers::deepcopy_poly_ptr< mrpt::poses::CPosePDFSOG::Ptr > sog2
std::vector< double > icp_goodness_all_sog_modes
The ICP goodness of all potential SOG modes at the stage "sog2", thus before the removing of "bad" IC...
mrpt::maps::CLandmarksMap::Ptr landmarks_map2
float goodness
A goodness measure for the alignment, it is a [0,1] range indicator of percentage of correspondences.
mrpt::tfest::TMatchingPairList correspondences
All the found correspondences (not consistent)
mrpt::containers::deepcopy_poly_ptr< mrpt::poses::CPosePDFSOG::Ptr > sog1
The different SOG densities at different steps of the algorithm:
mrpt::containers::deepcopy_poly_ptr< mrpt::poses::CPosePDFSOG::Ptr > sog3
mrpt::poses::CPose2D noRobustEstimation
The "brute" estimation from using all the available correspondences, provided just for comparison pur...
mrpt::maps::CLandmarksMap::Ptr landmarks_map1
The landmarks of each map (the indices of these landmarks correspond to those in "correspondences")