Main MRPT website
>
C++ reference
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
mrpt
slam
observations_overlap.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 observations_overlap_H
29
#define observations_overlap_H
30
31
#include <
mrpt/obs.h
>
32
33
#include <
mrpt/slam/link_pragmas.h
>
34
35
namespace
mrpt
36
{
37
namespace
slam
38
{
39
/** \addtogroup mrpt_slam_grp
40
* @{ */
41
42
/** @name Observations overlap functions
43
@{ */
44
45
/** Estimates the "overlap" or "matching ratio" of two observations (range [0,1]), possibly taking into account their relative positions.
46
* \note This is used in mrpt::slam::CIncrementalMapPartitioner
47
*/
48
double
SLAM_IMPEXP
observationsOverlap
(
49
const
mrpt::slam::CObservation
* o1,
50
const
mrpt::slam::CObservation
* o2,
51
const
mrpt::poses::CPose3D
*pose_o2_wrt_o1 = NULL );
52
53
/** Estimates the "overlap" or "matching ratio" of two observations (range [0,1]), possibly taking into account their relative positions.
54
* \note This is used in mrpt::slam::CIncrementalMapPartitioner
55
*/
56
inline
double
observationsOverlap
(
57
const
mrpt::slam::CObservationPtr
& o1,
58
const
mrpt::slam::CObservationPtr
& o2,
59
const
mrpt::poses::CPose3D
*pose_o2_wrt_o1 = NULL )
60
{
61
return
observationsOverlap
(o1.
pointer
(), o2.
pointer
(), pose_o2_wrt_o1 );
62
}
63
64
/** Estimates the "overlap" or "matching ratio" of two set of observations (range [0,1]), possibly taking into account their relative positions.
65
* This method computes the average between each of the observations in each SF.
66
* \note This is used in mrpt::slam::CIncrementalMapPartitioner
67
*/
68
double
SLAM_IMPEXP
observationsOverlap
(
69
const
mrpt::slam::CSensoryFrame
&sf1,
70
const
mrpt::slam::CSensoryFrame
&sf2,
71
const
mrpt::poses::CPose3D
*pose_sf2_wrt_sf1 = NULL );
72
73
/** Estimates the "overlap" or "matching ratio" of two set of observations (range [0,1]), possibly taking into account their relative positions.
74
* This method computes the average between each of the observations in each SF.
75
* \note This is used in mrpt::slam::CIncrementalMapPartitioner
76
*/
77
inline
double
observationsOverlap
(
78
const
mrpt::slam::CSensoryFramePtr
&sf1,
79
const
mrpt::slam::CSensoryFramePtr
&sf2,
80
const
mrpt::poses::CPose3D
*pose_sf2_wrt_sf1 = NULL )
81
{
82
return
observationsOverlap
(*sf1.
pointer
(), *sf2.
pointer
(), pose_sf2_wrt_sf1);
83
}
84
85
/** @} */
86
87
/** @} */
// end grouping
88
89
}
// End of namespace
90
}
// End of namespace
91
92
#endif
Page generated by
Doxygen 1.8.3
for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013