Go to the documentation of this file.
26 TMetricMapTypesRegistry& mmr = TMetricMapTypesRegistry::Instance();
27 return mmr.factoryMapDefinition(mapClassName);
30 TMetricMapInitializer::TMetricMapInitializer(
32 : metricMapClassType(classID)
61 out <<
"-----------------TMetricMapInitializer --------------------\n";
62 out <<
"================ C++ Class: '"
79 TMetricMapTypesRegistry& mmr = TMetricMapTypesRegistry::Instance();
81 const TMetricMapTypesRegistry::TListRegisteredMaps& allMapKinds =
82 mmr.getAllRegistered();
84 itMapKind = allMapKinds.begin();
85 itMapKind != allMapKinds.end(); ++itMapKind)
92 ini.
read_uint64_t(sectionName, sMapName +
string(
"_count"), 0);
93 for (
unsigned int i = 0; i <
n; i++)
105 "%s_%s_%02u", sectionName.c_str(), sMapName.c_str(), i);
121 for (
auto & mi : *
this)
122 mi->saveToConfigFile(target, section);
128 out <<
"===============================================================\n\n"
129 " Set of internal maps for 'CMultiMetricMap' object\n\n"
130 "=================================================================\n"
133 << this->
size() <<
" internal maps:\n\n";
136 for (
auto it =
begin(); it !=
end(); ++it, i++)
139 "------- Internal map %u out of %u:\n", i + 1, (
int)
size());
140 (*it)->dumpToTextStream(out);
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ionNamePrefix) override
This method load the options from a ".ini"-like file or memory-stored string list.
void saveToConfigFile(mrpt::config::CConfigFileBase &target, const std::string §ion) const override
This method saves the options to a ".ini"-like file or memory-stored string list.
const Scalar * const_iterator
const mrpt::rtti::TRuntimeClassId::Ptr metricMapClassType
Derived classes set this to CLASS_ID(< class >) where < class > is any CMetricMap derived class.
A structure that holds runtime class type information.
virtual void dumpToTextStream_map_specific(std::ostream &out) const =0
void saveToConfigFile(mrpt::config::CConfigFileBase &target, const std::string §ion) const override
This method saves the options to a ".ini"-like file or memory-stored string list.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Virtual base for specifying the kind and parameters of one map (normally, to be inserted into mrpt::m...
mrpt::maps::TMapGenericParams genericMapParams
Common params for all maps: These are automatically set in TMetricMapTypesRegistry::factoryMapObjectF...
#define ASSERT_(f)
Defines an assertion mechanism.
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form,...
GLsizei GLsizei GLchar * source
std::shared_ptr< TMetricMapInitializer > Ptr
Smart pointer to TMetricMapInitializer.
This class allows loading and storing values and vectors of different types from a configuration text...
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
void loadFromConfigFile(const mrpt::config::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.
uint64_t read_uint64_t(const std::string §ion, const std::string &name, uint64_t defaultValue, bool failIfNotFound=false) const
void saveToConfigFile(mrpt::config::CConfigFileBase &target, const std::string §ion) const override
This method saves the options to a ".ini"-like file or memory-stored string list.
void push_back(const MAP_DEFINITION &o)
Class factory & registry for map classes.
virtual void loadFromConfigFile_map_specific(const mrpt::config::CConfigFileBase &source, const std::string §ionNamePrefix)=0
Load all map-specific params.
GLsizei const GLchar ** string
void dumpToTextStream(std::ostream &out) const override
This method dumps the options of the multi-metric map AND those of every internal map.
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ionNamePrefix) override
Load all params from a config file/source.
virtual void dumpToTextStream(std::ostream &out) const
This method should clearly display all the contents of the structure in textual form,...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |