MRPT  1.9.9
CTopLCDetector_FabMap.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef _CTopLCDetector_FabMap_H
10 #define _CTopLCDetector_FabMap_H
11 
13 
14 namespace mrpt::hmtslam
15 {
16 /** \ingroup mrpt_hmtslam_grp */
18 {
19  protected:
21 
22  void* m_fabmap; // FabMapInstance*
23 
24  public:
25  /** A class factory, to be implemented in derived classes.
26  */
28  {
29  return static_cast<CTopLCDetectorBase*>(
30  new CTopLCDetector_FabMap(hmtslam));
31  }
32 
33  /** Destructor */
34  virtual ~CTopLCDetector_FabMap();
35 
36  /** This method must compute the topological observation model.
37  * \param out_log_lik The output, a log-likelihood.
38  * \return nullptr (empty smart pointer), or a PDF of the estimated
39  * translation between the two areas (can be a multi-modal PDF).
40  */
42  const THypothesisID& hypID, const CHMHMapNode::Ptr& currentArea,
43  const CHMHMapNode::Ptr& refArea, double& out_log_lik);
44 
45  /** Hook method for being warned about the insertion of a new poses into the
46  * maps.
47  * This should be independent of hypothesis IDs.
48  */
49  void OnNewPose(const TPoseID& poseID, const mrpt::obs::CSensoryFrame* SF);
50 
51  /** Options for a TLC-detector of type FabMap, used from CHMTSLAM
52  */
54  {
55  /** Initialization of default params
56  */
57  TOptions();
58 
59  void loadFromConfigFile(
61  const std::string& section) override; // See base docs
62  void dumpToTextStream(
63  std::ostream& out) const override; // See base docs
64 
67  };
68 
69 }; // end class
70 }
71 #endif
72 
73 
void OnNewPose(const TPoseID &poseID, const mrpt::obs::CSensoryFrame *SF)
Hook method for being warned about the insertion of a new poses into the maps.
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
Classes related to the implementation of Hybrid Metric Topological (HMT) SLAM.
uint64_t TPoseID
An integer number uniquely identifying each robot pose stored in HMT-SLAM.
An implementation of Hybrid Metric Topological SLAM (HMT-SLAM).
Definition: CHMTSLAM.h:68
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string &section) override
This method load the options from a ".ini"-like file or memory-stored string list.
This class allows loading and storing values and vectors of different types from a configuration text...
mrpt::poses::CPose3DPDF::Ptr computeTopologicalObservationModel(const THypothesisID &hypID, const CHMHMapNode::Ptr &currentArea, const CHMHMapNode::Ptr &refArea, double &out_log_lik)
This method must compute the topological observation model.
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
Definition: CSensoryFrame.h:52
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.
The virtual base class for Topological Loop-closure Detectors; used in HMT-SLAM.
GLsizei const GLchar ** string
Definition: glext.h:4101
int64_t THypothesisID
An integer number uniquely identifying each of the concurrent hypotheses for the robot topological pa...
static CTopLCDetectorBase * createNewInstance(CHMTSLAM *hmtslam)
A class factory, to be implemented in derived classes.
Options for a TLC-detector of type FabMap, used from CHMTSLAM.
GLsizei GLsizei GLchar * source
Definition: glext.h:4082



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020