Main MRPT website > C++ reference for MRPT 1.9.9
CTopLCDetector_GridMatching.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 
10 #ifndef _CTopLCDetector_GridMatching_H
11 #define _CTopLCDetector_GridMatching_H
12 
15 
16 namespace mrpt
17 {
18 namespace hmtslam
19 {
20 /** \ingroup mrpt_hmtslam_grp */
22 {
23  protected:
25 
26  public:
27  /** A class factory, to be implemented in derived classes.
28  */
30  {
31  return static_cast<CTopLCDetectorBase*>(
32  new CTopLCDetector_GridMatching(hmtslam));
33  }
34 
35  /** Destructor */
37 
38  /** This method must compute the topological observation model.
39  * \param out_log_lik The output, a log-likelihood.
40  * \return nullptr, or a PDF of the estimated translation between the two
41  * areas (should be a SOG PDF): it's the pose of "refArea", relative to
42  * "currentArea".
43  */
45  const THypothesisID& hypID, const CHMHMapNode::Ptr& currentArea,
46  const CHMHMapNode::Ptr& refArea, double& out_log_lik);
47 
48  /** Hook method for being warned about the insertion of a new poses into the
49  * maps.
50  * This should be independent of hypothesis IDs.
51  */
52  void OnNewPose(const TPoseID& poseID, const mrpt::obs::CSensoryFrame* SF);
53 
54  /** Options for a TLC-detector of type gridmap-matching, used from CHMTSLAM
55  */
57  {
58  /** Initialization of default params
59  */
60  TOptions();
61 
62  /** Options for the grid-to-grid matching algorithm */
64 
65  void loadFromConfigFile(
67  const std::string& section) override; // See base docs
68  void dumpToTextStream(
69  std::ostream& out) const override; // See base docs
70  };
71 }; // end class
72 } // end namespace
73 } // end namespace
74 #endif
mrpt::hmtslam::CTopLCDetector_GridMatching::TOptions
Options for a TLC-detector of type gridmap-matching, used from CHMTSLAM.
Definition: CTopLCDetector_GridMatching.h:56
mrpt::hmtslam::CTopLCDetector_GridMatching::computeTopologicalObservationModel
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.
Definition: CTopLCDetector_GridMatching.cpp:36
mrpt::hmtslam::CTopLCDetector_GridMatching::OnNewPose
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.
Definition: CTopLCDetector_GridMatching.cpp:140
mrpt::hmtslam::CTopLCDetector_GridMatching::TOptions::matchingOptions
mrpt::slam::CGridMapAligner::TConfigParams matchingOptions
Options for the grid-to-grid matching algorithm.
Definition: CTopLCDetector_GridMatching.h:63
mrpt::hmtslam::CTopLCDetector_GridMatching
Definition: CTopLCDetector_GridMatching.h:21
mrpt::hmtslam::CHMTSLAM
An implementation of Hybrid Metric Topological SLAM (HMT-SLAM).
Definition: CHMTSLAM.h:68
mrpt::hmtslam::CTopLCDetector_GridMatching::CTopLCDetector_GridMatching
CTopLCDetector_GridMatching(CHMTSLAM *hmtslam)
Definition: CTopLCDetector_GridMatching.cpp:25
mrpt::hmtslam::CTopLCDetector_GridMatching::TOptions::TOptions
TOptions()
Initialization of default params.
Definition: CTopLCDetector_GridMatching.cpp:148
mrpt::hmtslam::CTopLCDetector_GridMatching::TOptions::dumpToTextStream
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form,...
Definition: CTopLCDetector_GridMatching.cpp:158
CTopLCDetectorBase.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
source
GLsizei GLsizei GLchar * source
Definition: glext.h:4082
mrpt::hmtslam::CTopLCDetector_GridMatching::~CTopLCDetector_GridMatching
virtual ~CTopLCDetector_GridMatching()
Destructor.
Definition: CTopLCDetector_GridMatching.cpp:30
mrpt::obs::CSensoryFrame
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
Definition: CSensoryFrame.h:54
mrpt::slam::CGridMapAligner::TConfigParams
The ICP algorithm configuration data.
Definition: CGridMapAligner.h:77
CGridMapAligner.h
mrpt::config::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: config/CConfigFileBase.h:44
mrpt::hmtslam::CTopLCDetector_GridMatching::createNewInstance
static CTopLCDetectorBase * createNewInstance(CHMTSLAM *hmtslam)
A class factory, to be implemented in derived classes.
Definition: CTopLCDetector_GridMatching.h:29
mrpt::config::CLoadableOptions
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
Definition: config/CLoadableOptions.h:28
mrpt::hmtslam::TPoseID
uint64_t TPoseID
An integer number uniquely identifying each robot pose stored in HMT-SLAM.
Definition: HMT_SLAM_common.h:66
mrpt::hmtslam::THypothesisID
int64_t THypothesisID
An integer number uniquely identifying each of the concurrent hypotheses for the robot topological pa...
Definition: HMT_SLAM_common.h:61
mrpt::hmtslam::CHMHMapNode::Ptr
std::shared_ptr< CHMHMapNode > Ptr
Definition: CHMHMapNode.h:42
mrpt::poses::CPose3DPDF::Ptr
std::shared_ptr< CPose3DPDF > Ptr
Definition: CPose3DPDF.h:45
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::hmtslam::CTopLCDetector_GridMatching::TOptions::loadFromConfigFile
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.
Definition: CTopLCDetector_GridMatching.cpp:150
mrpt::hmtslam::CTopLCDetectorBase
The virtual base class for Topological Loop-closure Detectors; used in HMT-SLAM.
Definition: CTopLCDetectorBase.h:26



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST