Main MRPT website > C++ reference
MRPT logo
CTopLCDetector_GridMatching.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | The Mobile Robot Programming Toolkit (MRPT) C++ library |
3  | |
4  | http://www.mrpt.org/ |
5  | |
6  | Copyright (C) 2005-2012 University of Malaga |
7  | |
8  | This software was written by the Machine Perception and Intelligent |
9  | Robotics Lab, University of Malaga (Spain). |
10  | Contact: Jose-Luis Blanco <jlblanco@ctima.uma.es> |
11  | |
12  | This file is part of the MRPT project. |
13  | |
14  | MRPT is free software: you can redistribute it and/or modify |
15  | it under the terms of the GNU General Public License as published by |
16  | the Free Software Foundation, either version 3 of the License, or |
17  | (at your option) any later version. |
18  | |
19  | MRPT is distributed in the hope that it will be useful, |
20  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
21  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22  | GNU General Public License for more details. |
23  | |
24  | You should have received a copy of the GNU General Public License |
25  | along with MRPT. If not, see <http://www.gnu.org/licenses/>. |
26  | |
27  +---------------------------------------------------------------------------+ */
28 
29 #ifndef _CTopLCDetector_GridMatching_H
30 #define _CTopLCDetector_GridMatching_H
31 
34 
35 namespace mrpt
36 {
37  namespace hmtslam
38  {
39  using namespace mrpt::slam;
40 
41  /** \ingroup mrpt_hmtslam_grp */
43  {
44  protected:
46 
47  public:
48  /** A class factory, to be implemented in derived classes.
49  */
50  static CTopLCDetectorBase* createNewInstance( CHMTSLAM *hmtslam )
51  {
52  return static_cast<CTopLCDetectorBase*>(new CTopLCDetector_GridMatching(hmtslam));
53  }
54 
55  /** Destructor */
56  virtual ~CTopLCDetector_GridMatching();
57 
58  /** This method must compute the topological observation model.
59  * \param out_log_lik The output, a log-likelihood.
60  * \return NULL, or a PDF of the estimated translation between the two areas (should be a SOG PDF): it's the pose of "refArea", relative to "currentArea".
61  */
62  CPose3DPDFPtr computeTopologicalObservationModel(
63  const THypothesisID &hypID,
64  const CHMHMapNodePtr &currentArea,
65  const CHMHMapNodePtr &refArea,
66  double &out_log_lik
67  );
68 
69  /** Hook method for being warned about the insertion of a new poses into the maps.
70  * This should be independent of hypothesis IDs.
71  */
72  void OnNewPose(
73  const TPoseID &poseID,
74  const CSensoryFrame *SF );
75 
76 
77  /** Options for a TLC-detector of type gridmap-matching, used from CHMTSLAM
78  */
80  {
81  /** Initialization of default params
82  */
83  TOptions();
84 
85 
86  /** Options for the grid-to-grid matching algorithm */
88 
89  /** Load parameters from configuration source
90  */
91  void loadFromConfigFile(
92  const mrpt::utils::CConfigFileBase &source,
93  const std::string &section);
94 
95  /** This method must display clearly all the contents of the structure in textual form, sending it to a CStream.
96  */
97  void dumpToTextStream(CStream &out) const;
98 
99  };
100 
101  }; // end class
102 
103  } // end namespace
104 } // end namespace
105 
106 
107 #endif



Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013