Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes
mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition Struct Reference

Detailed Description

Definition at line 103 of file CHeightGridMap2D_MRF.h.

#include <mrpt/maps/CHeightGridMap2D_MRF.h>

Inheritance diagram for mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition:
Inheritance graph

Public Types

using Ptr = std::shared_ptr< TMetricMapInitializer >
 Smart pointer to TMetricMapInitializer. More...
 

Public Member Functions

 TMapDefinition ()
 
void loadFromConfigFile (const mrpt::config::CConfigFileBase &source, const std::string &sectionNamePrefix) override
 Load all params from a config file/source. More...
 
void saveToConfigFile (mrpt::config::CConfigFileBase &target, const std::string &section) const override
 This method saves the options to a ".ini"-like file or memory-stored string list. More...
 
void dumpToTextStream (std::ostream &out) const override
 This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream. More...
 
const mrpt::rtti::TRuntimeClassId::PtrgetMetricMapClassType () 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 &section)
 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...
 
void saveToConfigFileName (const std::string &config_file, const std::string &section) 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 TMetricMapInitializerfactory (const std::string &mapClassName)
 Looks up in the registry of known map types and call the corresponding <metric_map_class>::MapDefinition(). More...
 

Public Attributes

bool run_map_estimation_at_ctor
 Runs map estimation at start up (Default:true) More...
 
double min_x
 See CHeightGridMap2D_MRF::CHeightGridMap2D_MRF. More...
 
double max_x
 
double min_y
 
double max_y
 
double resolution
 
mrpt::maps::CHeightGridMap2D_MRF::TMapRepresentation mapType
 The kind of map representation (see CHeightGridMap2D_MRF::CHeightGridMap2D_MRF) More...
 
mrpt::maps::CHeightGridMap2D_MRF::TInsertionOptions insertionOpts
 Observations insertion options. More...
 
mrpt::maps::TMapGenericParams genericMapParams
 Common params for all maps: These are automatically set in TMetricMapTypesRegistry::factoryMapObjectFromDefinition()
More...
 

Protected Member Functions

void loadFromConfigFile_map_specific (const mrpt::config::CConfigFileBase &source, const std::string &sectionNamePrefix) override
 Load all map-specific params. More...
 
void dumpToTextStream_map_specific (std::ostream &out) const override
 

Static Protected Member Functions

static void dumpVar_int (std::ostream &out, const char *varName, int v)
 Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR. More...
 
static void dumpVar_float (std::ostream &out, const char *varName, float v)
 
static void dumpVar_double (std::ostream &out, const char *varName, double v)
 
static void dumpVar_bool (std::ostream &out, const char *varName, bool v)
 
static void dumpVar_string (std::ostream &out, const char *varName, const std::string &v)
 

Protected Attributes

const mrpt::rtti::TRuntimeClassId::Ptr metricMapClassType
 Derived classes set this to CLASS_ID(< class >) where < class > is any CMetricMap derived class. More...
 

Member Typedef Documentation

◆ Ptr

Smart pointer to TMetricMapInitializer.

Definition at line 38 of file TMetricMapInitializer.h.

Constructor & Destructor Documentation

◆ TMapDefinition()

CHeightGridMap2D_MRF::TMapDefinition::TMapDefinition ( )

Definition at line 26 of file CHeightGridMap2D_MRF.cpp.

Member Function Documentation

◆ dumpToConsole()

void CLoadableOptions::dumpToConsole ( ) const
inherited

Just like dumpToTextStream() but sending the text to the console (std::cout)

Definition at line 44 of file CLoadableOptions.cpp.

References mrpt::config::CLoadableOptions::dumpToTextStream().

Referenced by mrpt::hmtslam::CTopLCDetector_GridMatching::computeTopologicalObservationModel().

◆ dumpToTextStream()

void TMetricMapInitializer::dumpToTextStream ( std::ostream &  out) const
overridevirtualinherited

This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream.

The default implementation in this base class relies on saveToConfigFile() to generate a plain text representation of all the parameters.

Reimplemented from mrpt::config::CLoadableOptions.

Definition at line 59 of file TMetricMapInitializer.cpp.

References mrpt::config::CLoadableOptions::dumpToTextStream(), mrpt::maps::TMetricMapInitializer::dumpToTextStream_map_specific(), mrpt::maps::TMetricMapInitializer::genericMapParams, and mrpt::maps::TMetricMapInitializer::metricMapClassType.

◆ dumpToTextStream_map_specific()

void CHeightGridMap2D_MRF::TMapDefinition::dumpToTextStream_map_specific ( std::ostream &  out) const
overrideprotectedvirtual

Implements mrpt::maps::TMetricMapInitializer.

Definition at line 58 of file CHeightGridMap2D_MRF.cpp.

References mrpt::format(), and LOADABLEOPTS_DUMP_VAR.

◆ dumpVar_bool()

void CLoadableOptions::dumpVar_bool ( std::ostream &  out,
const char *  varName,
bool  v 
)
staticprotectedinherited

Definition at line 63 of file CLoadableOptions.cpp.

References mrpt::format(), and LOADABLEOPTS_COLUMN_WIDTH.

◆ dumpVar_double()

void CLoadableOptions::dumpVar_double ( std::ostream &  out,
const char *  varName,
double  v 
)
staticprotectedinherited

Definition at line 57 of file CLoadableOptions.cpp.

References mrpt::format(), and LOADABLEOPTS_COLUMN_WIDTH.

◆ dumpVar_float()

void CLoadableOptions::dumpVar_float ( std::ostream &  out,
const char *  varName,
float  v 
)
staticprotectedinherited

Definition at line 51 of file CLoadableOptions.cpp.

References mrpt::format(), and LOADABLEOPTS_COLUMN_WIDTH.

◆ dumpVar_int()

void CLoadableOptions::dumpVar_int ( std::ostream &  out,
const char *  varName,
int  v 
)
staticprotectedinherited

Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.

Definition at line 45 of file CLoadableOptions.cpp.

References mrpt::format(), and LOADABLEOPTS_COLUMN_WIDTH.

◆ dumpVar_string()

void CLoadableOptions::dumpVar_string ( std::ostream &  out,
const char *  varName,
const std::string v 
)
staticprotectedinherited

Definition at line 70 of file CLoadableOptions.cpp.

References mrpt::format(), and LOADABLEOPTS_COLUMN_WIDTH.

◆ factory()

TMetricMapInitializer * TMetricMapInitializer::factory ( const std::string mapClassName)
staticinherited

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.

◆ getMetricMapClassType()

const mrpt::rtti::TRuntimeClassId::Ptr& mrpt::maps::TMetricMapInitializer::getMetricMapClassType ( ) const
inlineinherited

Query the map type (C++ class), as set by the factory method MapDefinition()

Definition at line 61 of file TMetricMapInitializer.h.

References mrpt::maps::TMetricMapInitializer::metricMapClassType.

Referenced by mrpt::maps::internal::TMetricMapTypesRegistry::factoryMapObjectFromDefinition().

◆ loadFromConfigFile()

void TMetricMapInitializer::loadFromConfigFile ( const mrpt::config::CConfigFileBase source,
const std::string sectionNamePrefix 
)
overridevirtualinherited

◆ loadFromConfigFile_map_specific()

void CHeightGridMap2D_MRF::TMapDefinition::loadFromConfigFile_map_specific ( const mrpt::config::CConfigFileBase source,
const std::string sectionNamePrefix 
)
overrideprotectedvirtual

Load all map-specific params.

Implements mrpt::maps::TMetricMapInitializer.

Definition at line 37 of file CHeightGridMap2D_MRF.cpp.

References MRPT_LOAD_CONFIG_VAR.

◆ loadFromConfigFileName()

void 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

Definition at line 22 of file CLoadableOptions.cpp.

References mrpt::config::CLoadableOptions::loadFromConfigFile().

◆ saveToConfigFile()

void TMetricMapInitializer::saveToConfigFile ( mrpt::config::CConfigFileBase target,
const std::string section 
) const
overridevirtualinherited

This method saves the options to a ".ini"-like file or memory-stored string list.

See also
loadFromConfigFile, saveToConfigFileName

Reimplemented from mrpt::config::CLoadableOptions.

Definition at line 51 of file TMetricMapInitializer.cpp.

References mrpt::maps::TMetricMapInitializer::genericMapParams, mrpt::maps::TMetricMapInitializer::metricMapClassType, and mrpt::maps::TMapGenericParams::saveToConfigFile().

◆ saveToConfigFileName()

void 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

Definition at line 37 of file CLoadableOptions.cpp.

References mrpt::config::CLoadableOptions::saveToConfigFile().

Member Data Documentation

◆ genericMapParams

mrpt::maps::TMapGenericParams mrpt::maps::TMetricMapInitializer::genericMapParams
inherited

◆ insertionOpts

mrpt::maps::CHeightGridMap2D_MRF::TInsertionOptions mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition::insertionOpts

Observations insertion options.

Definition at line 112 of file CHeightGridMap2D_MRF.h.

Referenced by mrpt::maps::CHeightGridMap2D_MRF::internal_CreateFromMapDefinition().

◆ mapType

mrpt::maps::CHeightGridMap2D_MRF::TMapRepresentation mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition::mapType

◆ max_x

double mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition::max_x

◆ max_y

double mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition::max_y

◆ metricMapClassType

const mrpt::rtti::TRuntimeClassId::Ptr mrpt::maps::TMetricMapInitializer::metricMapClassType
protectedinherited

◆ min_x

double mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition::min_x

◆ min_y

double mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition::min_y

◆ resolution

double mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition::resolution

◆ run_map_estimation_at_ctor

bool mrpt::maps::CHeightGridMap2D_MRF::TMapDefinition::run_map_estimation_at_ctor

Runs map estimation at start up (Default:true)

Definition at line 105 of file CHeightGridMap2D_MRF.h.

Referenced by mrpt::maps::CHeightGridMap2D_MRF::internal_CreateFromMapDefinition().




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