This virtual class is the base for SLAM implementations.
See derived classes for more information.
Definition at line 35 of file CMetricMapBuilder.h.
#include <mrpt/slam/CMetricMapBuilder.h>
Classes | |
struct | TOptions |
Options for the algorithm. More... | |
Public Member Functions | |
CMetricMapBuilder () | |
Constructor. More... | |
virtual | ~CMetricMapBuilder () |
Destructor. More... | |
void | clear () |
Clear all elements of the maps, and reset localization to (0,0,0deg). More... | |
void | enableMapUpdating (bool enable) |
Enables or disables the map updating (default state is enabled) More... | |
void | loadCurrentMapFromFile (const std::string &fileName) |
Load map (mrpt::slam::CSimpleMap) from a ".simplemap" file. More... | |
void | saveCurrentMapToFile (const std::string &fileName, bool compressGZ=true) const |
Save map (mrpt::slam::CSimpleMap) to a ".simplemap" file. More... | |
Pure virtual methods to implement in any particular SLAM algorithm | |
virtual void | initialize (const CSimpleMap &initialMap=CSimpleMap(), CPosePDF *x0=NULL)=0 |
Initialize the method, starting with a known location PDF "x0"(if supplied, set to NULL to left unmodified) and a given fixed, past map. More... | |
virtual CPose3DPDFPtr | getCurrentPoseEstimation () const =0 |
Returns a copy of the current best pose estimation as a pose PDF. More... | |
virtual void | processActionObservation (CActionCollection &action, CSensoryFrame &observations)=0 |
Process a new action and observations pair to update this map: See the description of the class at the top of this page to see a more complete description. More... | |
virtual void | getCurrentlyBuiltMap (CSimpleMap &out_map) const =0 |
Fills "out_map" with the set of "poses"-"sensory-frames", thus the so far built map. More... | |
virtual unsigned int | getCurrentlyBuiltMapSize ()=0 |
Returns just how many sensory-frames are stored in the currently build map. More... | |
virtual CMultiMetricMap * | getCurrentlyBuiltMetricMap ()=0 |
Returns the map built so far. More... | |
virtual void | saveCurrentEstimationToImage (const std::string &file, bool formatEMF_BMP=true)=0 |
A useful method for debugging: the current map (and/or poses) estimation is dumped to an image file. More... | |
Static Public Member Functions | |
static void | printf_debug (const char *frmt,...) |
Sends a formated text to "debugOut" if not NULL, or to cout otherwise. More... | |
Public Attributes | |
TOptions | options |
Protected Member Functions | |
void | enterCriticalSection () |
Enter critical section for map updating: More... | |
void | leaveCriticalSection () |
Leave critical section for map updating: More... | |
Protected Attributes | |
synch::CCriticalSection | critZoneChangingMap |
Critical zones. More... | |
mrpt::slam::CMetricMapBuilder::CMetricMapBuilder | ( | ) |
Constructor.
|
virtual |
Destructor.
void mrpt::slam::CMetricMapBuilder::clear | ( | ) |
Clear all elements of the maps, and reset localization to (0,0,0deg).
|
inline |
Enables or disables the map updating (default state is enabled)
Definition at line 95 of file CMetricMapBuilder.h.
|
inlineprotected |
Enter critical section for map updating:
Definition at line 44 of file CMetricMapBuilder.h.
References mrpt::synch::CCriticalSection::enter().
|
pure virtual |
Fills "out_map" with the set of "poses"-"sensory-frames", thus the so far built map.
Implemented in mrpt::slam::CMetricMapBuilderRBPF, and mrpt::slam::CMetricMapBuilderICP.
|
pure virtual |
Returns just how many sensory-frames are stored in the currently build map.
Implemented in mrpt::slam::CMetricMapBuilderRBPF, and mrpt::slam::CMetricMapBuilderICP.
|
pure virtual |
Returns the map built so far.
NOTE that for efficiency a pointer to the internal object is passed, DO NOT delete nor modify the object in any way, if desired, make a copy of ir with "duplicate()".
Implemented in mrpt::slam::CMetricMapBuilderRBPF, and mrpt::slam::CMetricMapBuilderICP.
|
pure virtual |
Returns a copy of the current best pose estimation as a pose PDF.
Implemented in mrpt::slam::CMetricMapBuilderRBPF, and mrpt::slam::CMetricMapBuilderICP.
|
pure virtual |
Initialize the method, starting with a known location PDF "x0"(if supplied, set to NULL to left unmodified) and a given fixed, past map.
Implemented in mrpt::slam::CMetricMapBuilderRBPF, and mrpt::slam::CMetricMapBuilderICP.
|
inlineprotected |
Leave critical section for map updating:
Definition at line 48 of file CMetricMapBuilder.h.
References mrpt::synch::CCriticalSection::leave().
void mrpt::slam::CMetricMapBuilder::loadCurrentMapFromFile | ( | const std::string & | fileName | ) |
Load map (mrpt::slam::CSimpleMap) from a ".simplemap" file.
|
staticinherited |
Sends a formated text to "debugOut" if not NULL, or to cout otherwise.
Referenced by mrpt::math::CLevenbergMarquardtTempl< VECTORTYPE, USERPARAM >::execute().
|
pure virtual |
Process a new action and observations pair to update this map: See the description of the class at the top of this page to see a more complete description.
action | The estimation of the incremental pose change in the robot pose. |
observations | The set of observations that robot senses at the new pose. |
Implemented in mrpt::slam::CMetricMapBuilderRBPF, and mrpt::slam::CMetricMapBuilderICP.
|
pure virtual |
A useful method for debugging: the current map (and/or poses) estimation is dumped to an image file.
file | The output file name |
formatEMF_BMP | Output format = true:EMF, false:BMP |
Implemented in mrpt::slam::CMetricMapBuilderRBPF, and mrpt::slam::CMetricMapBuilderICP.
void mrpt::slam::CMetricMapBuilder::saveCurrentMapToFile | ( | const std::string & | fileName, |
bool | compressGZ = true |
||
) | const |
Save map (mrpt::slam::CSimpleMap) to a ".simplemap" file.
|
protected |
Critical zones.
Definition at line 40 of file CMetricMapBuilder.h.
TOptions mrpt::slam::CMetricMapBuilder::options |
Definition at line 131 of file CMetricMapBuilder.h.
Page generated by Doxygen 1.8.14 for MRPT 1.1.0 SVN: at lun oct 28 00:54:49 CET 2019 | Hosted on: |