29 options(this->m_min_verbosity_level)
64 "[CMetricMapBuilder::loadCurrentMapFromFile] Loading current map " 66 << fileName <<
"' ..." << std::endl);
75 "[CMetricMapBuilder::loadCurrentMapFromFile] Loading current map " 77 << fileName <<
"' ..." << std::endl);
96 "[CMetricMapBuilder::saveCurrentMapToFile] Saving current map to '" 97 << 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).
#define MRPT_LOG_DEBUG(_STRING)
Use: MRPT_LOG_DEBUG("message");
This class stores a sequence of <Probabilistic Pose,SensoryFrame> pairs, thus a "metric map" can be t...
bool fileExists(const std::string &fileName)
Test if a given file (or directory) exists.
mrpt::system::COutputLogger COutputLogger
#define MRPT_LOG_WARN_STREAM(__CONTENTS)
CArchiveStreamBase< STREAM > archiveFrom(STREAM &s)
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream, std::istream, std::ostream, std::stringstream.
Declares a class that represents a Probability Density function (PDF) of a 2D pose ...
CMetricMapBuilder()
Constructor.
void loadCurrentMapFromFile(const std::string &fileName)
Load map (mrpt::maps::CSimpleMap) from a ".simplemap" file.
This CStream derived class allow using a file as a write-only, binary stream.
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.
~CMetricMapBuilder() override
Destructor.
#define MRPT_LOG_INFO_STREAM(__CONTENTS)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
virtual void initialize(const mrpt::maps::CSimpleMap &initialMap=mrpt::maps::CSimpleMap(), const mrpt::poses::CPosePDF *x0=nullptr)=0
Initialize the method, starting with a known location PDF "x0"(if supplied, set to nullptr to left un...
Saves data to a file and transparently compress the data using the given compression level...
void clear()
Remove all stored pairs.