MRPT
1.9.9
observations_overlap.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 observations_overlap_H
10
#define observations_overlap_H
11
12
#include <
mrpt/obs/obs_frwds.h
>
13
#include <
mrpt/obs/CSensoryFrame.h
>
14
15
namespace
mrpt::slam
16
{
17
/** \addtogroup mrpt_slam_grp
18
* @{ */
19
20
/** @name Observations overlap functions
21
@{ */
22
23
/** Estimates the "overlap" or "matching ratio" of two observations (range
24
* [0,1]), possibly taking into account their relative positions.
25
* \note This is used in mrpt::slam::CIncrementalMapPartitioner
26
*/
27
double
observationsOverlap
(
28
const
mrpt::obs::CObservation
* o1,
const
mrpt::obs::CObservation
* o2,
29
const
mrpt::poses::CPose3D
* pose_o2_wrt_o1 =
nullptr
);
30
31
/** Estimates the "overlap" or "matching ratio" of two observations (range
32
* [0,1]), possibly taking into account their relative positions.
33
* \note This is used in mrpt::slam::CIncrementalMapPartitioner
34
*/
35
inline
double
observationsOverlap
(
36
const
mrpt::obs::CObservation::Ptr
& o1,
37
const
mrpt::obs::CObservation::Ptr
& o2,
38
const
mrpt::poses::CPose3D
* pose_o2_wrt_o1 =
nullptr
)
39
{
40
return
observationsOverlap
(o1.get(), o2.get(), pose_o2_wrt_o1);
41
}
42
43
/** Estimates the "overlap" or "matching ratio" of two set of observations
44
* (range [0,1]), possibly taking into account their relative positions.
45
* This method computes the average between each of the observations in each
46
* SF.
47
* \note This is used in mrpt::slam::CIncrementalMapPartitioner
48
*/
49
double
observationsOverlap
(
50
const
mrpt::obs::CSensoryFrame
& sf1,
const
mrpt::obs::CSensoryFrame
& sf2,
51
const
mrpt::poses::CPose3D
* pose_sf2_wrt_sf1 =
nullptr
);
52
53
/** Estimates the "overlap" or "matching ratio" of two set of observations
54
* (range [0,1]), possibly taking into account their relative positions.
55
* This method computes the average between each of the observations in each
56
* SF.
57
* \note This is used in mrpt::slam::CIncrementalMapPartitioner
58
*/
59
inline
double
observationsOverlap
(
60
const
mrpt::obs::CSensoryFrame::Ptr
& sf1,
61
const
mrpt::obs::CSensoryFrame::Ptr
& sf2,
62
const
mrpt::poses::CPose3D
* pose_sf2_wrt_sf1 =
nullptr
)
63
{
64
return
observationsOverlap
(*sf1.get(), *sf2.get(), pose_sf2_wrt_sf1);
65
}
66
67
/** @} */
68
69
/** @} */
// end grouping
70
71
}
72
#endif
73
74
CSensoryFrame.h
mrpt::slam::observationsOverlap
double observationsOverlap(const mrpt::obs::CObservation *o1, const mrpt::obs::CObservation *o2, const mrpt::poses::CPose3D *pose_o2_wrt_o1=nullptr)
Estimates the "overlap" or "matching ratio" of two observations (range [0,1]), possibly taking into a...
Definition:
observations_overlap.cpp:26
mrpt::slam
Definition:
CMultiMetricMapPDF.h:27
std::shared_ptr< CObservation >
mrpt::obs::CSensoryFrame
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
Definition:
CSensoryFrame.h:52
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition:
CPose3D.h:86
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition:
CObservation.h:43
obs_frwds.h
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