MRPT
1.9.9
|
A set of TMetricMapInitializer structures, passed to the constructor CMultiMetricMap::CMultiMetricMap See the comments for TSetOfMetricMapInitializers::loadFromConfigFile, and "CMultiMetricMap::setListOfMaps" for effectively creating the list of desired maps.
Definition at line 89 of file TMetricMapInitializer.h.
#include <mrpt/maps/TMetricMapInitializer.h>
Public Types | |
using | iterator = std::deque< TMetricMapInitializer::Ptr >::iterator |
using | const_iterator = std::deque< TMetricMapInitializer::Ptr >::const_iterator |
Public Member Functions | |
TSetOfMetricMapInitializers () | |
template<typename MAP_DEFINITION > | |
void | push_back (const MAP_DEFINITION &o) |
void | push_back (const TMetricMapInitializer::Ptr &o) |
size_t | size () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
void | clear () |
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. More... | |
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. More... | |
void | dumpToTextStream (std::ostream &out) const override |
This method dumps the options of the multi-metric map AND those of every internal map. More... | |
void | loadFromConfigFileName (const std::string &config_file, const std::string §ion) |
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 §ion) 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 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 | |
std::deque< TMetricMapInitializer::Ptr > | m_list |
using mrpt::maps::TSetOfMetricMapInitializers::const_iterator = std::deque<TMetricMapInitializer::Ptr>::const_iterator |
Definition at line 106 of file TMetricMapInitializer.h.
using mrpt::maps::TSetOfMetricMapInitializers::iterator = std::deque<TMetricMapInitializer::Ptr>::iterator |
Definition at line 104 of file TMetricMapInitializer.h.
|
inline |
Definition at line 95 of file TMetricMapInitializer.h.
|
inline |
Definition at line 107 of file TMetricMapInitializer.h.
References m_list.
Referenced by dumpToTextStream().
|
inline |
Definition at line 109 of file TMetricMapInitializer.h.
References m_list.
|
inline |
Definition at line 111 of file TMetricMapInitializer.h.
References m_list.
Referenced by loadFromConfigFile().
|
inherited |
Just like dumpToTextStream() but sending the text to the console (std::cout)
Definition at line 43 of file CLoadableOptions.cpp.
References mrpt::config::CLoadableOptions::dumpToTextStream().
Referenced by mrpt::hmtslam::CTopLCDetector_GridMatching::computeTopologicalObservationModel(), mrpt::ros1bridge::MapHdl::loadMap(), mrpt::graphslam::deciders::CICPCriteriaNRD< GRAPH_T >::printParams(), and mrpt::apps::CGridMapAlignerApp::run().
|
overridevirtual |
This method dumps the options of the multi-metric map AND those of every internal map.
Reimplemented from mrpt::config::CLoadableOptions.
Definition at line 120 of file TMetricMapInitializer.cpp.
References begin(), end(), mrpt::format(), MRPT_END, MRPT_START, out, and size().
Referenced by mrpt::apps::MonteCarloLocalization_Base::do_pf_localization().
|
staticprotectedinherited |
Definition at line 62 of file CLoadableOptions.cpp.
References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.
|
staticprotectedinherited |
Definition at line 56 of file CLoadableOptions.cpp.
References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.
|
staticprotectedinherited |
Definition at line 50 of file CLoadableOptions.cpp.
References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.
|
staticprotectedinherited |
Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.
Definition at line 44 of file CLoadableOptions.cpp.
References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.
|
staticprotectedinherited |
Definition at line 69 of file CLoadableOptions.cpp.
References mrpt::format(), LOADABLEOPTS_COLUMN_WIDTH, and out.
|
inline |
Definition at line 108 of file TMetricMapInitializer.h.
References m_list.
Referenced by dumpToTextStream().
|
inline |
Definition at line 110 of file TMetricMapInitializer.h.
References m_list.
|
overridevirtual |
Loads the configuration for the set of internal maps from a textual definition in an INI-like file.
The format of the ini file is defined in CConfigFile. The list of maps and their options will be loaded from a handle of sections:
Where:
Implements mrpt::config::CLoadableOptions.
Definition at line 69 of file TMetricMapInitializer.cpp.
References ASSERT_, clear(), mrpt::format(), mrpt::maps::TMetricMapInitializer::loadFromConfigFile(), MRPT_END, MRPT_START, push_back(), and mrpt::config::CConfigFileBase::read_uint64_t().
Referenced by mrpt::apps::MonteCarloLocalization_Base::do_pf_localization(), mrpt::ros1bridge::MapHdl::loadMap(), mrpt::apps::CGridMapAlignerApp::run(), and run_test_pf_localization().
|
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.
Definition at line 22 of file CLoadableOptions.cpp.
References mrpt::config::CLoadableOptions::loadFromConfigFile().
Referenced by mrpt::graphslam::deciders::CICPCriteriaNRD< GRAPH_T >::loadParams().
|
inline |
Definition at line 97 of file TMetricMapInitializer.h.
References m_list.
Referenced by loadFromConfigFile(), mrpt::detectors::CDetectorDoorCrossing::process(), and mrpt::apps::CGridMapAlignerApp::run().
|
inline |
Definition at line 102 of file TMetricMapInitializer.h.
References m_list.
|
overridevirtual |
This method saves the options to a ".ini"-like file or memory-stored string list.
Reimplemented from mrpt::config::CLoadableOptions.
Definition at line 114 of file TMetricMapInitializer.cpp.
|
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.
Definition at line 36 of file CLoadableOptions.cpp.
References mrpt::config::CLoadableOptions::saveToConfigFile().
|
inline |
Definition at line 103 of file TMetricMapInitializer.h.
References m_list.
Referenced by dumpToTextStream().
|
protected |
Definition at line 92 of file TMetricMapInitializer.h.
Referenced by begin(), clear(), end(), push_back(), and size().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |