Main MRPT website > C++ reference
MRPT logo
CRobotPosesGraph.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 #ifndef CRobotPosesGraph_H
29 #define CRobotPosesGraph_H
30 
32 
36 #include <mrpt/slam/CSimpleMap.h>
38 
39 
40 namespace mrpt
41 {
42  namespace hmtslam
43  {
44  using namespace mrpt::slam;
45 
46  /** Information kept for each robot pose used in CRobotPosesGraph */
48  {
49  CSensoryFrame sf; //!< The observations
50  CPose3DPDFParticles pdf; //!< The robot pose PDF
51  };
52 
54 
55  /** Auxiliary class used in mrpt::slam::CLocalMetricHypothesis for HMT-SLAM; this class stores a set of robot poses and its sensory frames and pose PDF, for being stored in a HMT-map as a serializable object in annotation NODE_ANNOTATION_POSES_GRAPH.
56  * \ingroup mrpt_hmtslam_grp
57  */
58  class HMTSLAM_IMPEXP CRobotPosesGraph : public mrpt::utils::CSerializable, public std::map<TPoseID,TPoseInfo>
59  {
60  // This must be added to any CSerializable derived class:
62  public:
63 
64  /** Insert all the observations in the map (without erasing previous contents). */
65  void insertIntoMetricMap( CMultiMetricMap &metricMap ) const;
66 
67  /** Converts the contents of this object into a 'simplemap' (mrpt::slam::CSimpleMap) object. */
68  void convertIntoSimplemap( CSimpleMap &out_simplemap) const;
69 
70  }; // end of class
71 
72 
73  } // End of namespace
74 } // End of namespace
75 #endif



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