27 mrpt::utils::COutputLogger(
"CMetricMapBuilder"),
28 options(this->m_min_verbosity_level)
63 MRPT_LOG_INFO_STREAM(
"[CMetricMapBuilder::loadCurrentMapFromFile] Loading current map from '" << fileName <<
"' ..." << std::endl);
71 MRPT_LOG_WARN_STREAM(
"[CMetricMapBuilder::loadCurrentMapFromFile] Loading current map from '" << fileName <<
"' ..." << std::endl);
88 MRPT_LOG_INFO_STREAM(
"[CMetricMapBuilder::saveCurrentMapToFile] Saving current map to '" << fileName <<
"' ..." << std::endl);
void saveCurrentMapToFile(const std::string &fileName, bool compressGZ=true) const
Save map (mrpt::maps::CSimpleMap) to a ".simplemap" file.
void clear()
Clear all elements of the maps, and reset localization to (0,0,0deg).
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
This class stores a sequence of <Probabilistic Pose,SensoryFrame> pairs, thus a "metric map" can be t...
bool BASE_IMPEXP fileExists(const std::string &fileName)
Test if a given file (or directory) exists.
Declares a class that represents a Probability Density function (PDF) of a 2D pose ...
This CStream derived class allow using a file as a write-only, binary stream.
CMetricMapBuilder()
Constructor.
#define MRPT_LOG_WARN_STREAM(__CONTENTS)
#define MRPT_LOG_DEBUG(_STRING)
void loadCurrentMapFromFile(const std::string &fileName)
Load map (mrpt::maps::CSimpleMap) from a ".simplemap" file.
GLsizei const GLchar ** string
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
virtual void getCurrentlyBuiltMap(mrpt::maps::CSimpleMap &out_map) const =0
Fills "out_map" with the set of "poses"-"sensory-frames", thus the so far built map.
virtual void initialize(const mrpt::maps::CSimpleMap &initialMap=mrpt::maps::CSimpleMap(), mrpt::poses::CPosePDF *x0=NULL)=0
Initialize the method, starting with a known location PDF "x0"(if supplied, set to NULL to left unmod...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define MRPT_LOG_INFO_STREAM(__CONTENTS)
#define CFileGZOutputStream
Saves data to a file and transparently compress the data using the given compression level...
virtual ~CMetricMapBuilder()
Destructor.
void clear()
Remove all stored pairs.