Main MRPT website
>
C++ reference
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
mrpt
slam
CMetricMapEvents.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 CMetricMapEvents_H
29
#define CMetricMapEvents_H
30
31
#include <
mrpt/utils/mrptEvent.h
>
32
33
namespace
mrpt
34
{
35
namespace
poses {
class
CPose3D; }
36
namespace
slam
37
{
38
class
CObservation;
39
class
CMetricMap;
40
41
/** Event emitted by a metric up upon call of clear()
42
* \sa CMetricMap
43
* \ingroup mrpt_obs_grp
44
*/
45
class
mrptEventMetricMapClear
:
public
mrpt::utils::mrptEvent
46
{
47
protected
:
48
virtual
void
do_nothing
() { }
//!< Just to allow this class to be polymorphic
49
public
:
50
inline
mrptEventMetricMapClear
(
const
CMetricMap
*smap) :
source_map
(smap) {}
51
52
const
CMetricMap
*
source_map
;
53
};
54
55
/** Event emitted by a metric up upon a succesful call to insertObservation()
56
* \sa CMetricMap
57
* \ingroup mrpt_obs_grp
58
*/
59
class
mrptEventMetricMapInsert
:
public
mrpt::utils::mrptEvent
60
{
61
protected
:
62
virtual
void
do_nothing
() { }
//!< Just to allow this class to be polymorphic
63
public
:
64
inline
mrptEventMetricMapInsert
(
const
CMetricMap
*smap,
const
CObservation
*obs,
const
CPose3D
*robotPose ) :
source_map
(smap),
inserted_obs
(obs),
inserted_robotPose
(robotPose) { }
65
66
const
CMetricMap
*
source_map
;
67
const
CObservation
*
inserted_obs
;
68
const
CPose3D
*
inserted_robotPose
;
69
70
};
71
72
}
// End of namespace
73
}
// End of namespace
74
75
#endif
Page generated by
Doxygen 1.8.3
for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013