Virtual base for specifying the kind and parameters of one map (normally, to be inserted into mrpt::maps::CMultiMetricMap) See mrpt::maps::TSetOfMetricMapInitializers::loadFromConfigFile()
as an easy way of initialize this object, or construct with the factory methods <metric_map_class>::MapDefinition()
and TMetricMapInitializer::factory()
Definition at line 32 of file TMetricMapInitializer.h.
#include <mrpt/maps/TMetricMapInitializer.h>
Public Member Functions | |
void | loadFromConfigFile (const mrpt::utils::CConfigFileBase &source, const std::string §ionNamePrefix) MRPT_OVERRIDE |
Load all params from a config file/source. More... | |
void | dumpToTextStream (mrpt::utils::CStream &out) const MRPT_OVERRIDE |
Dump the options of the metric map in human-readable format. More... | |
const mrpt::utils::TRuntimeClassIdPtr & | getMetricMapClassType () const |
Query the map type (C++ class), as set by the factory method MapDefinition() More... | |
void | loadFromConfigFileName (const std::string &config_file, const std::string §ion) |
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::utils::CConfigFileBase &target, const std::string §ion) 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 §ion) 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... | |
Static Public Member Functions | |
static TMetricMapInitializer * | factory (const std::string &mapClassName) |
Looks up in the registry of known map types and call the corresponding <metric_map_class>::MapDefinition() . More... | |
Public Attributes | |
mrpt::maps::TMapGenericParams | genericMapParams |
Common params for all maps: These are automatically set in TMetricMapTypesRegistry::factoryMapObjectFromDefinition() More... | |
Protected Member Functions | |
TMetricMapInitializer (const mrpt::utils::TRuntimeClassId *classID) | |
virtual void | loadFromConfigFile_map_specific (const mrpt::utils::CConfigFileBase &source, const std::string §ionNamePrefix)=0 |
Load all map-specific params. More... | |
virtual void | dumpToTextStream_map_specific (mrpt::utils::CStream &out) const =0 |
Static Protected Member Functions | |
static void | dumpVar_int (CStream &out, const char *varName, int v) |
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR. More... | |
static void | dumpVar_float (CStream &out, const char *varName, float v) |
static void | dumpVar_double (CStream &out, const char *varName, double v) |
static void | dumpVar_bool (CStream &out, const char *varName, bool v) |
static void | dumpVar_string (CStream &out, const char *varName, const std::string &v) |
Protected Attributes | |
const mrpt::utils::TRuntimeClassIdPtr | metricMapClassType |
Derived classes set this to CLASS_ID(< class >) where < class > is any CMetricMap derived class. More... | |
Friends | |
class | TSetOfMetricMapInitializers |
|
protected |
Definition at line 29 of file TMetricMapInitializer.cpp.
|
inherited |
Just like dumpToTextStream() but sending the text to the console (std::cout)
Definition at line 47 of file CLoadableOptions.cpp.
References mrpt::utils::CLoadableOptions::dumpToTextStream(), and loadable_opts_my_cout.
Referenced by mrpt::hmtslam::CTopLCDetector_GridMatching::computeTopologicalObservationModel(), mrpt::hmtslam::CHMTSLAM::loadOptions(), and mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::printParams().
|
virtual |
Dump the options of the metric map in human-readable format.
Reimplemented from mrpt::utils::CLoadableOptions.
Definition at line 46 of file TMetricMapInitializer.cpp.
References mrpt::maps::TMapGenericParams::dumpToTextStream(), dumpToTextStream_map_specific(), genericMapParams, metricMapClassType, and mrpt::utils::CStream::printf().
|
protectedpure virtual |
Implemented in mrpt::maps::COccupancyGridMap2D::TMapDefinition, mrpt::maps::CLandmarksMap::TMapDefinition, mrpt::maps::CColouredPointsMap::TMapDefinition, mrpt::maps::CBeaconMap::TMapDefinition, mrpt::maps::CGasConcentrationGridMap2D::TMapDefinition, mrpt::maps::CHeightGridMap2D::TMapDefinition, mrpt::maps::CWeightedPointsMap::TMapDefinition, mrpt::maps::CSimplePointsMap::TMapDefinition, mrpt::maps::CReflectivityGridMap2D::TMapDefinition, mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition, mrpt::maps::CWirelessPowerGridMap2D::TMapDefinition, mrpt::maps::CColouredOctoMap::TMapDefinition, and mrpt::maps::COctoMap::TMapDefinition.
Referenced by dumpToTextStream().
|
staticprotectedinherited |
Definition at line 67 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Definition at line 62 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Definition at line 57 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.
Definition at line 52 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
staticprotectedinherited |
Definition at line 72 of file CLoadableOptions.cpp.
References LOADABLEOPTS_COLUMN_WIDTH, and mrpt::utils::CStream::printf().
|
static |
Looks up in the registry of known map types and call the corresponding <metric_map_class>::MapDefinition()
.
Definition at line 22 of file TMetricMapInitializer.cpp.
|
inline |
Query the map type (C++ class), as set by the factory method MapDefinition()
Definition at line 49 of file TMetricMapInitializer.h.
Referenced by mrpt::maps::internal::TMetricMapTypesRegistry::factoryMapObjectFromDefinition().
|
virtual |
Load all params from a config file/source.
For examples and format, read the docs of mrpt::maps::CMultiMetricMap Typical section names:
<sectionNamePrefix>_creationOpts
<sectionNamePrefix>_insertOpts
<sectionNamePrefix>_likelihoodOpts
For examples and format, read the docs of mrpt::maps::CMultiMetricMap
Implements mrpt::utils::CLoadableOptions.
Definition at line 35 of file TMetricMapInitializer.cpp.
References genericMapParams, mrpt::maps::TMapGenericParams::loadFromConfigFile(), and loadFromConfigFile_map_specific().
Referenced by mrpt::maps::TSetOfMetricMapInitializers::loadFromConfigFile(), mrpt::maps::CSimplePointsMap::TMapDefinition::loadFromConfigFile_map_specific(), mrpt::maps::CWeightedPointsMap::TMapDefinition::loadFromConfigFile_map_specific(), and mrpt::maps::CColouredPointsMap::TMapDefinition::loadFromConfigFile_map_specific().
|
protectedpure virtual |
Load all map-specific params.
Implemented in mrpt::maps::COccupancyGridMap2D::TMapDefinition, mrpt::maps::CLandmarksMap::TMapDefinition, mrpt::maps::CColouredPointsMap::TMapDefinition, mrpt::maps::CBeaconMap::TMapDefinition, mrpt::maps::CGasConcentrationGridMap2D::TMapDefinition, mrpt::maps::CHeightGridMap2D::TMapDefinition, mrpt::maps::CWeightedPointsMap::TMapDefinition, mrpt::maps::CSimplePointsMap::TMapDefinition, mrpt::maps::CReflectivityGridMap2D::TMapDefinition, mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition, mrpt::maps::CWirelessPowerGridMap2D::TMapDefinition, mrpt::maps::CColouredOctoMap::TMapDefinition, and mrpt::maps::COctoMap::TMapDefinition.
Referenced by loadFromConfigFile().
|
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.
Definition at line 23 of file CLoadableOptions.cpp.
References mrpt::utils::CLoadableOptions::loadFromConfigFile().
Referenced by mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::loadParams().
|
virtualinherited |
This method saves the options to a ".ini"-like file or memory-stored string list.
Reimplemented in mrpt::vision::TMultiResDescOptions, mrpt::vision::TMultiResDescMatchOptions, mrpt::nav::CPTG_RobotShape_Circular, mrpt::nav::CPTG_RobotShape_Polygonal, mrpt::nav::CParameterizedTrajectoryGenerator, mrpt::nav::CAbstractNavigator::TAbstractNavigatorParams, mrpt::nav::CAbstractPTGBasedReactive::TAbstractPTGNavigatorParams, mrpt::nav::CPTG_DiffDrive_CollisionGridBased, mrpt::nav::CHolonomicND::TOptions, mrpt::nav::CWaypointsNavigator::TWaypointsNavigatorParams, mrpt::nav::CHolonomicFullEval::TOptions, mrpt::nav::CReactiveNavigationSystem::TReactiveNavigatorParams, mrpt::nav::CHolonomicVFF::TOptions, mrpt::nav::CMultiObjectiveMotionOptimizerBase::TParamsBase, mrpt::maps::CPointCloudFilterByDistance::TOptions, mrpt::nav::CPTG_DiffDrive_C, 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 31 of file CLoadableOptions.cpp.
References MRPT_UNUSED_PARAM.
Referenced by mrpt::utils::CLoadableOptions::dumpToTextStream(), and mrpt::utils::CLoadableOptions::saveToConfigFileName().
|
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.
Definition at line 39 of file CLoadableOptions.cpp.
References mrpt::utils::CLoadableOptions::saveToConfigFile().
|
friend |
Definition at line 34 of file TMetricMapInitializer.h.
mrpt::maps::TMapGenericParams mrpt::maps::TMetricMapInitializer::genericMapParams |
Common params for all maps: These are automatically set in TMetricMapTypesRegistry::factoryMapObjectFromDefinition()
Definition at line 37 of file TMetricMapInitializer.h.
Referenced by dumpToTextStream(), mrpt::maps::internal::TMetricMapTypesRegistry::factoryMapObjectFromDefinition(), and loadFromConfigFile().
|
protected |
Derived classes set this to CLASS_ID(< class >) where < class > is any CMetricMap derived class.
Definition at line 56 of file TMetricMapInitializer.h.
Referenced by dumpToTextStream().
Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020 |