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()
- See also
- TSetOfMetricMapInitializers, mrpt::maps::CMultiMetricMap
Definition at line 32 of file TMetricMapInitializer.h.
#include <mrpt/maps/TMetricMapInitializer.h>
|
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...
|
|
|
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) |
|
§ TMetricMapInitializer()
§ dumpToConsole()
void mrpt::utils::CLoadableOptions::dumpToConsole |
( |
| ) |
const |
|
inherited |
§ dumpToTextStream()
§ dumpToTextStream_map_specific()
virtual void mrpt::maps::TMetricMapInitializer::dumpToTextStream_map_specific |
( |
mrpt::utils::CStream & |
out | ) |
const |
|
protectedpure virtual |
Implemented in mrpt::maps::COccupancyGridMap2D::TMapDefinition, mrpt::maps::CLandmarksMap::TMapDefinition, mrpt::maps::CColouredPointsMap::TMapDefinition, mrpt::maps::CBeaconMap::TMapDefinition, mrpt::maps::CHeightGridMap2D::TMapDefinition, mrpt::maps::CGasConcentrationGridMap2D::TMapDefinition, mrpt::maps::CSimplePointsMap::TMapDefinition, mrpt::maps::CWeightedPointsMap::TMapDefinition, mrpt::maps::CReflectivityGridMap2D::TMapDefinition, mrpt::maps::CWirelessPowerGridMap2D::TMapDefinition, mrpt::maps::CColouredOctoMap::TMapDefinition, and mrpt::maps::COctoMap::TMapDefinition.
§ dumpVar_bool()
static void mrpt::utils::CLoadableOptions::dumpVar_bool |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
bool |
v |
|
) |
| |
|
staticprotectedinherited |
§ dumpVar_double()
static void mrpt::utils::CLoadableOptions::dumpVar_double |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
double |
v |
|
) |
| |
|
staticprotectedinherited |
§ dumpVar_float()
static void mrpt::utils::CLoadableOptions::dumpVar_float |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
float |
v |
|
) |
| |
|
staticprotectedinherited |
§ dumpVar_int()
static void mrpt::utils::CLoadableOptions::dumpVar_int |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
int |
v |
|
) |
| |
|
staticprotectedinherited |
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.
§ dumpVar_string()
static void mrpt::utils::CLoadableOptions::dumpVar_string |
( |
CStream & |
out, |
|
|
const char * |
varName, |
|
|
const std::string & |
v |
|
) |
| |
|
staticprotectedinherited |
§ factory()
static TMetricMapInitializer* mrpt::maps::TMetricMapInitializer::factory |
( |
const std::string & |
mapClassName | ) |
|
|
static |
Looks up in the registry of known map types and call the corresponding <metric_map_class>::MapDefinition()
.
§ getMetricMapClassType()
Query the map type (C++ class), as set by the factory method MapDefinition()
Definition at line 50 of file TMetricMapInitializer.h.
§ loadFromConfigFile()
void mrpt::maps::TMetricMapInitializer::loadFromConfigFile |
( |
const mrpt::utils::CConfigFileBase & |
source, |
|
|
const std::string & |
sectionNamePrefix |
|
) |
| |
|
virtual |
§ loadFromConfigFile_map_specific()
virtual void mrpt::maps::TMetricMapInitializer::loadFromConfigFile_map_specific |
( |
const mrpt::utils::CConfigFileBase & |
source, |
|
|
const std::string & |
sectionNamePrefix |
|
) |
| |
|
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::CHeightGridMap2D::TMapDefinition, mrpt::maps::CGasConcentrationGridMap2D::TMapDefinition, mrpt::maps::CSimplePointsMap::TMapDefinition, mrpt::maps::CWeightedPointsMap::TMapDefinition, mrpt::maps::CReflectivityGridMap2D::TMapDefinition, mrpt::maps::CWirelessPowerGridMap2D::TMapDefinition, mrpt::maps::CColouredOctoMap::TMapDefinition, and mrpt::maps::COctoMap::TMapDefinition.
§ loadFromConfigFileName()
void mrpt::utils::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
§ saveToConfigFile()
§ saveToConfigFileName()
void mrpt::utils::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
§ TSetOfMetricMapInitializers
§ genericMapParams
Common params for all maps: These are automatically set in TMetricMapTypesRegistry::factoryMapObjectFromDefinition()
Definition at line 37 of file TMetricMapInitializer.h.
§ metricMapClassType