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