MRPT  2.0.0
List of all members | Classes | Public Member Functions | Static Protected Member Functions
mrpt::maps::CLandmarksMap::TLikelihoodOptions Struct Reference

Detailed Description

With this struct options are provided to the likelihood computations.

Definition at line 344 of file CLandmarksMap.h.

#include <mrpt/maps/CLandmarksMap.h>

Inheritance diagram for mrpt::maps::CLandmarksMap::TLikelihoodOptions:

Classes

struct  TGPSOrigin
 This struct store de GPS longitude, latitude (in degrees ) and altitude (in meters) for the first GPS observation compose with de sensor position on the robot. More...
 

Public Member Functions

 TLikelihoodOptions ()
 
void loadFromConfigFile (const mrpt::config::CConfigFileBase &source, const std::string &section) override
 This method load the options from a ".ini"-like file or memory-stored string list. More...
 
void dumpToTextStream (std::ostream &out) const override
 This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream. More...
 
void loadFromConfigFileName (const std::string &config_file, const std::string &section)
 Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file. More...
 
virtual void saveToConfigFile (mrpt::config::CConfigFileBase &target, const std::string &section) const
 This method saves the options to a ".ini"-like file or memory-stored string list. More...
 
void saveToConfigFileName (const std::string &config_file, const std::string &section) const
 Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file. More...
 
void dumpToConsole () const
 Just like dumpToTextStream() but sending the text to the console (std::cout) More...
 

Public Attributes

Parameters for: 2D LIDAR scans
unsigned int rangeScan2D_decimation {20}
 The number of rays from a 2D range scan will be decimated by this factor (default = 1, no decimation) More...
 
Parameters for: images
double SIFTs_sigma_euclidean_dist {0.30f}
 
double SIFTs_sigma_descriptor_dist {100.0f}
 
float SIFTs_mahaDist_std {4.0f}
 
float SIFTnullCorrespondenceDistance {4.0f}
 
int SIFTs_decimation {1}
 Considers 1 out of "SIFTs_decimation" visual landmarks in the observation during the likelihood computation. More...
 
mrpt::vision::CFeatureExtraction::TOptions SIFT_feat_options
 Parameters of the SIFT feature detector/descriptors while inserting images in the landmark map. More...
 
Parameters for: Range-only observation
float beaconRangesStd {0.08f}
 The standard deviation used for Beacon ranges likelihood (default=0.08) [meters]. More...
 
bool beaconRangesUseObservationStd {false}
 (Default: false) If true, beaconRangesStd is ignored and each individual CObservationBeaconRanges::stdError field is used instead. More...
 
Parameters for: External robot poses observation
float extRobotPoseStd {0.05f}
 The standard deviation used for external robot poses likelihood (default=0.05) [meters]. More...
 
Parameters for: GPS readings
struct mrpt::maps::CLandmarksMap::TLikelihoodOptions::TGPSOrigin GPSOrigin
 
float GPS_sigma {1.0f}
 A constant "sigma" for GPS localization data (in meters) More...
 

Static Protected Member Functions

static void dumpVar_int (std::ostream &out, const char *varName, int v)
 Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR. More...
 
static void dumpVar_float (std::ostream &out, const char *varName, float v)
 
static void dumpVar_double (std::ostream &out, const char *varName, double v)
 
static void dumpVar_bool (std::ostream &out, const char *varName, bool v)
 
static void dumpVar_string (std::ostream &out, const char *varName, const std::string &v)
 

Constructor & Destructor Documentation

◆ TLikelihoodOptions()

CLandmarksMap::TLikelihoodOptions::TLikelihoodOptions ( )

Definition at line 2251 of file CLandmarksMap.cpp.

Member Function Documentation

◆ dumpToConsole()

void CLoadableOptions::dumpToConsole ( ) const
inherited

Just like dumpToTextStream() but sending the text to the console (std::cout)

Definition at line 43 of file CLoadableOptions.cpp.

References mrpt::config::CLoadableOptions::dumpToTextStream().

Referenced by mrpt::hmtslam::CTopLCDetector_GridMatching::computeTopologicalObservationModel(), mrpt::ros1bridge::MapHdl::loadMap(), mrpt::graphslam::deciders::CICPCriteriaNRD< GRAPH_T >::printParams(), and mrpt::apps::CGridMapAlignerApp::run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dumpToTextStream()

void CLandmarksMap::TLikelihoodOptions::dumpToTextStream ( std::ostream &  out) const
overridevirtual

This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream.

The default implementation in this base class relies on saveToConfigFile() to generate a plain text representation of all the parameters.

Reimplemented from mrpt::config::CLoadableOptions.

Definition at line 2266 of file CLandmarksMap.cpp.

References mrpt::format(), and out.

Here is the call graph for this function:

◆ dumpVar_bool()

void CLoadableOptions::dumpVar_bool ( std::ostream &  out,
const char *  varName,
bool  v 
)
staticprotectedinherited

Definition at line 62 of file CLoadableOptions.cpp.

References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.

Here is the call graph for this function:

◆ dumpVar_double()

void CLoadableOptions::dumpVar_double ( std::ostream &  out,
const char *  varName,
double  v 
)
staticprotectedinherited

Definition at line 56 of file CLoadableOptions.cpp.

References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.

Here is the call graph for this function:

◆ dumpVar_float()

void CLoadableOptions::dumpVar_float ( std::ostream &  out,
const char *  varName,
float  v 
)
staticprotectedinherited

Definition at line 50 of file CLoadableOptions.cpp.

References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.

Here is the call graph for this function:

◆ dumpVar_int()

void CLoadableOptions::dumpVar_int ( std::ostream &  out,
const char *  varName,
int  v 
)
staticprotectedinherited

Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.

Definition at line 44 of file CLoadableOptions.cpp.

References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.

Here is the call graph for this function:

◆ dumpVar_string()

void CLoadableOptions::dumpVar_string ( std::ostream &  out,
const char *  varName,
const std::string &  v 
)
staticprotectedinherited

Definition at line 69 of file CLoadableOptions.cpp.

References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.

Here is the call graph for this function:

◆ loadFromConfigFile()

void CLandmarksMap::TLikelihoodOptions::loadFromConfigFile ( const mrpt::config::CConfigFileBase source,
const std::string &  section 
)
overridevirtual

This method load the options from a ".ini"-like file or memory-stored string list.

Only those parameters found in the given "section" and having the same name that the variable are loaded. Those not found in the file will stay with their previous values (usually the default values loaded at initialization). An example of an ".ini" file:

[section]
resolution = 0.10 // blah blah...
modeSelection = 1 // 0=blah, 1=blah,...
See also
loadFromConfigFileName, saveToConfigFile

Implements mrpt::config::CLoadableOptions.

Definition at line 2322 of file CLandmarksMap.cpp.

References iniFile(), and M_PI.

Here is the call graph for this function:

◆ loadFromConfigFileName()

void CLoadableOptions::loadFromConfigFileName ( const std::string &  config_file,
const std::string &  section 
)
inherited

Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file.

See also
loadFromConfigFile

Definition at line 22 of file CLoadableOptions.cpp.

References mrpt::config::CLoadableOptions::loadFromConfigFile().

Referenced by mrpt::graphslam::deciders::CICPCriteriaNRD< GRAPH_T >::loadParams().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveToConfigFile()

void CLoadableOptions::saveToConfigFile ( mrpt::config::CConfigFileBase target,
const std::string &  section 
) const
virtualinherited

This method saves the options to a ".ini"-like file or memory-stored string list.

See also
loadFromConfigFile, saveToConfigFileName

Reimplemented in mrpt::vision::TMultiResDescOptions, mrpt::nav::CPTG_RobotShape_Circular, mrpt::vision::TMultiResDescMatchOptions, mrpt::nav::CPTG_RobotShape_Polygonal, mrpt::nav::CParameterizedTrajectoryGenerator, mrpt::maps::TSetOfMetricMapInitializers, mrpt::maps::COccupancyGridMap3D::TLikelihoodOptions, mrpt::nav::CAbstractNavigator::TAbstractNavigatorParams, mrpt::nav::CAbstractPTGBasedReactive::TAbstractPTGNavigatorParams, mrpt::maps::COccupancyGridMap3D::TInsertionOptions, mrpt::nav::CPTG_DiffDrive_CollisionGridBased, mrpt::nav::CWaypointsNavigator::TWaypointsNavigatorParams, mrpt::nav::CHolonomicFullEval::TOptions, mrpt::bayes::CParticleFilter::TParticleFilterOptions, mrpt::nav::CHolonomicND::TOptions, mrpt::nav::CReactiveNavigationSystem::TReactiveNavigatorParams, mrpt::maps::TMapGenericParams, mrpt::nav::CMultiObjectiveMotionOptimizerBase::TParamsBase, mrpt::nav::CHolonomicVFF::TOptions, mrpt::slam::CICP::TConfigParams, mrpt::slam::CIncrementalMapPartitioner::TOptions, mrpt::maps::CPointCloudFilterByDistance::TOptions, mrpt::nav::CPTG_DiffDrive_C, mrpt::maps::TMetricMapInitializer, mrpt::nav::CPTG_DiffDrive_alpha, mrpt::nav::CMultiObjMotionOpt_Scalarization::TParams, mrpt::nav::CPTG_DiffDrive_CC, mrpt::nav::CPTG_DiffDrive_CCS, mrpt::nav::CPTG_DiffDrive_CS, and mrpt::nav::CPTG_Holo_Blend.

Definition at line 29 of file CLoadableOptions.cpp.

Referenced by mrpt::config::CLoadableOptions::dumpToTextStream(), and mrpt::config::CLoadableOptions::saveToConfigFileName().

Here is the caller graph for this function:

◆ saveToConfigFileName()

void CLoadableOptions::saveToConfigFileName ( const std::string &  config_file,
const std::string &  section 
) const
inherited

Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file.

See also
saveToConfigFile, loadFromConfigFileName

Definition at line 36 of file CLoadableOptions.cpp.

References mrpt::config::CLoadableOptions::saveToConfigFile().

Here is the call graph for this function:

Member Data Documentation

◆ beaconRangesStd

float mrpt::maps::CLandmarksMap::TLikelihoodOptions::beaconRangesStd {0.08f}

The standard deviation used for Beacon ranges likelihood (default=0.08) [meters].

See also
beaconRangesUseObservationStd

Definition at line 385 of file CLandmarksMap.h.

◆ beaconRangesUseObservationStd

bool mrpt::maps::CLandmarksMap::TLikelihoodOptions::beaconRangesUseObservationStd {false}

(Default: false) If true, beaconRangesStd is ignored and each individual CObservationBeaconRanges::stdError field is used instead.

Definition at line 389 of file CLandmarksMap.h.

◆ extRobotPoseStd

float mrpt::maps::CLandmarksMap::TLikelihoodOptions::extRobotPoseStd {0.05f}

The standard deviation used for external robot poses likelihood (default=0.05) [meters].

Definition at line 396 of file CLandmarksMap.h.

◆ GPS_sigma

float mrpt::maps::CLandmarksMap::TLikelihoodOptions::GPS_sigma {1.0f}

A constant "sigma" for GPS localization data (in meters)

Definition at line 425 of file CLandmarksMap.h.

◆ GPSOrigin

struct mrpt::maps::CLandmarksMap::TLikelihoodOptions::TGPSOrigin mrpt::maps::CLandmarksMap::TLikelihoodOptions::GPSOrigin

◆ rangeScan2D_decimation

unsigned int mrpt::maps::CLandmarksMap::TLikelihoodOptions::rangeScan2D_decimation {20}

The number of rays from a 2D range scan will be decimated by this factor (default = 1, no decimation)

Definition at line 359 of file CLandmarksMap.h.

◆ SIFT_feat_options

mrpt::vision::CFeatureExtraction::TOptions mrpt::maps::CLandmarksMap::TLikelihoodOptions::SIFT_feat_options

Parameters of the SIFT feature detector/descriptors while inserting images in the landmark map.

Note
There exists another SIFT_feat_options field in the insertionOptions member.
All parameters of this field can be loaded from a config file. See mrpt::vision::CFeatureExtraction::TOptions for the names of the expected fields.

Definition at line 378 of file CLandmarksMap.h.

◆ SIFTnullCorrespondenceDistance

float mrpt::maps::CLandmarksMap::TLikelihoodOptions::SIFTnullCorrespondenceDistance {4.0f}

◆ SIFTs_decimation

int mrpt::maps::CLandmarksMap::TLikelihoodOptions::SIFTs_decimation {1}

Considers 1 out of "SIFTs_decimation" visual landmarks in the observation during the likelihood computation.

Definition at line 370 of file CLandmarksMap.h.

Referenced by mrpt::maps::CLandmarksMap::computeLikelihood_SIFT_LandmarkMap().

◆ SIFTs_mahaDist_std

float mrpt::maps::CLandmarksMap::TLikelihoodOptions::SIFTs_mahaDist_std {4.0f}

◆ SIFTs_sigma_descriptor_dist

double mrpt::maps::CLandmarksMap::TLikelihoodOptions::SIFTs_sigma_descriptor_dist {100.0f}

◆ SIFTs_sigma_euclidean_dist

double mrpt::maps::CLandmarksMap::TLikelihoodOptions::SIFTs_sigma_euclidean_dist {0.30f}

Definition at line 364 of file CLandmarksMap.h.




Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020