MRPT
2.0.1
mrpt
hmtslam
CRobotPosesGraph.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| https://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6
| See: https://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See: https://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
#pragma once
10
11
#include <
mrpt/serialization/CSerializable.h
>
12
13
#include <
mrpt/hmtslam/HMT_SLAM_common.h
>
14
#include <
mrpt/maps/CMultiMetricMap.h
>
15
#include <
mrpt/maps/CSimpleMap.h
>
16
#include <
mrpt/obs/CSensoryFrame.h
>
17
#include <
mrpt/poses/CPose3DPDFParticles.h
>
18
19
namespace
mrpt::hmtslam
20
{
21
/** Information kept for each robot pose used in CRobotPosesGraph */
22
struct
TPoseInfo
23
{
24
/** The observations */
25
mrpt::obs::CSensoryFrame
sf
;
26
/** The robot pose PDF */
27
mrpt::poses::CPose3DPDFParticles
pdf
;
28
};
29
30
/** Auxiliary class used in mrpt::slam::CLocalMetricHypothesis for HMT-SLAM;
31
* this class stores a set of robot poses and its sensory frames and pose PDF,
32
* for being stored in a HMT-map as a serializable object in annotation
33
* NODE_ANNOTATION_POSES_GRAPH.
34
* \ingroup mrpt_hmtslam_grp
35
*/
36
class
CRobotPosesGraph
:
public
mrpt::serialization::CSerializable
,
37
public
std::map<TPoseID, TPoseInfo>
38
{
39
DEFINE_SERIALIZABLE
(
CRobotPosesGraph
,
mrpt::hmtslam
)
40
public
:
41
/** Insert all the observations in the map (without erasing previous
42
* contents). */
43
void
insertIntoMetricMap
(
mrpt::maps::CMultiMetricMap
& metricMap)
const
;
44
45
/** Converts the contents of this object into a 'simplemap'
46
* (mrpt::maps::CSimpleMap) object. */
47
void
convertIntoSimplemap
(
mrpt::maps::CSimpleMap
& out_simplemap)
const
;
48
49
};
// end of class
50
51
}
// namespace mrpt::hmtslam
CSerializable.h
mrpt::maps::CSimpleMap
This class stores a sequence of <Probabilistic Pose,SensoryFrame> pairs, thus a "metric map" can be t...
Definition:
CSimpleMap.h:32
mrpt::hmtslam
Classes related to the implementation of Hybrid Metric Topological (HMT) SLAM.
Definition:
CHierarchicalMapMHPartition.h:27
CSensoryFrame.h
mrpt::hmtslam::TPoseInfo::pdf
mrpt::poses::CPose3DPDFParticles pdf
The robot pose PDF.
Definition:
CRobotPosesGraph.h:27
mrpt::hmtslam::CRobotPosesGraph::insertIntoMetricMap
void insertIntoMetricMap(mrpt::maps::CMultiMetricMap &metricMap) const
Insert all the observations in the map (without erasing previous contents).
Definition:
CRobotPosesGraph.cpp:60
mrpt::hmtslam::CRobotPosesGraph::convertIntoSimplemap
void convertIntoSimplemap(mrpt::maps::CSimpleMap &out_simplemap) const
Converts the contents of this object into a 'simplemap' (mrpt::maps::CSimpleMap) object.
Definition:
CRobotPosesGraph.cpp:73
mrpt::obs::CSensoryFrame
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
Definition:
CSensoryFrame.h:51
mrpt::hmtslam::CRobotPosesGraph
Auxiliary class used in mrpt::slam::CLocalMetricHypothesis for HMT-SLAM; this class stores a set of r...
Definition:
CRobotPosesGraph.h:36
CSimpleMap.h
CPose3DPDFParticles.h
CMultiMetricMap.h
mrpt::hmtslam::TPoseInfo::sf
mrpt::obs::CSensoryFrame sf
The observations.
Definition:
CRobotPosesGraph.h:25
HMT_SLAM_common.h
mrpt::serialization::CSerializable
The virtual base class which provides a unified interface for all persistent objects in MRPT...
Definition:
CSerializable.h:30
mrpt::hmtslam::TPoseInfo
Information kept for each robot pose used in CRobotPosesGraph.
Definition:
CRobotPosesGraph.h:22
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition:
CSerializable.h:152
mrpt::maps::CMultiMetricMap
This class stores any customizable set of metric maps.
Definition:
CMultiMetricMap.h:120
mrpt::poses::CPose3DPDFParticles
Declares a class that represents a Probability Density function (PDF) of a 3D pose.
Definition:
CPose3DPDFParticles.h:29
Page generated by
Doxygen 1.8.14
for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020