26 TMetricMapTypesRegistry& mmr = TMetricMapTypesRegistry::Instance();
27 return mmr.factoryMapDefinition(mapClassName);
30 TMetricMapInitializer::TMetricMapInitializer(
32 : metricMapClassType(classID)
55 "-------------------------TMetricMapInitializer "
56 "--------------------------\n");
58 "================ C++ Class: '%s'\n",
78 TMetricMapTypesRegistry& mmr = TMetricMapTypesRegistry::Instance();
80 const TMetricMapTypesRegistry::TListRegisteredMaps& allMapKinds =
81 mmr.getAllRegistered();
83 itMapKind = allMapKinds.begin();
84 itMapKind != allMapKinds.end(); ++itMapKind)
91 ini.
read_uint64_t(sectionName, sMapName +
string(
"_count"), 0);
92 for (
unsigned int i = 0; i <
n; i++)
104 "%s_%s_%02u", sectionName.c_str(), sMapName.c_str(), i);
125 "===================================================================="
127 out.
printf(
" Set of internal maps for 'CMultiMetricMap' object\n\n");
129 "===================================================================="
133 out.
printf(
"Showing next the %u internal maps:\n\n", (
int)
size());
139 "------------------------- Internal map %u out of %u "
140 "--------------------------\n",
142 (*it)->dumpToTextStream(out);
void loadFromConfigFile(const mrpt::utils::CConfigFileBase &source, const std::string §ionNamePrefix) override
This method load the options from a ".ini"-like file or memory-stored string list.
void dumpToTextStream(mrpt::utils::CStream &out) const override
This method should clearly display all the contents of the structure in textual form,...
void dumpToTextStream(mrpt::utils::CStream &out) const override
This method dumps the options of the multi-metric map AND those of every internal map.
std::deque< TMetricMapInitializer::Ptr >::const_iterator const_iterator
void loadFromConfigFile(const mrpt::utils::CConfigFileBase &source, const std::string §ionName) override
Loads the configuration for the set of internal maps from a textual definition in an INI-like file.
void push_back(const MAP_DEFINITION &o)
This class allows loading and storing values and vectors of different types from a configuration text...
uint64_t read_uint64_t(const std::string §ion, const std::string &name, uint64_t defaultValue, bool failIfNotFound=false) const
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
virtual int printf(const char *fmt,...) MRPT_printf_format_check(2
Writes a string to the stream in a textual form.
const Scalar * const_iterator
GLsizei const GLchar ** string
GLsizei GLsizei GLchar * source
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
Virtual base for specifying the kind and parameters of one map (normally, to be inserted into mrpt::m...
const mrpt::utils::TRuntimeClassId::Ptr metricMapClassType
Derived classes set this to CLASS_ID(< class >) where < class > is any CMetricMap derived class.
std::shared_ptr< TMetricMapInitializer > Ptr
Smart pointer to TMetricMapInitializer.
virtual void loadFromConfigFile_map_specific(const mrpt::utils::CConfigFileBase &source, const std::string §ionNamePrefix)=0
Load all map-specific params.
virtual void dumpToTextStream_map_specific(mrpt::utils::CStream &out) const =0
void dumpToTextStream(mrpt::utils::CStream &out) const override
Dump the options of the metric map in human-readable format.
void loadFromConfigFile(const mrpt::utils::CConfigFileBase &source, const std::string §ionNamePrefix) override
Load all params from a config file/source.
mrpt::maps::TMapGenericParams genericMapParams
Common params for all maps: These are automatically set in TMetricMapTypesRegistry::factoryMapObjectF...
Class factory & registry for map classes.
A structure that holds runtime class type information.