Main MRPT website > C++ reference for MRPT 1.9.9
CMetricMapEvents.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 CMetricMapEvents_H
10 #define CMetricMapEvents_H
11 
12 #include <mrpt/system/mrptEvent.h>
13 #include <mrpt/poses/poses_frwds.h>
14 
15 namespace mrpt
16 {
17 namespace obs
18 {
19 class CObservation;
20 }
21 namespace maps
22 {
23 class CMetricMap;
24 
25 /** Event emitted by a metric up upon call of clear()
26  * \sa CMetricMap
27  * \ingroup mrpt_obs_grp
28  */
30 {
31  protected:
32  /** Just to allow this class to be polymorphic */
33  virtual void do_nothing() override {}
34  public:
36  : source_map(smap)
37  {
38  }
39 
41 };
42 
43 /** Event emitted by a metric up upon a succesful call to insertObservation()
44  * \sa CMetricMap
45  * \ingroup mrpt_obs_grp
46  */
48 {
49  protected:
50  /** Just to allow this class to be polymorphic */
51  virtual void do_nothing() override {}
52  public:
54  const mrpt::maps::CMetricMap* smap, const mrpt::obs::CObservation* obs,
55  const mrpt::poses::CPose3D* robotPose)
56  : source_map(smap), inserted_obs(obs), inserted_robotPose(robotPose)
57  {
58  }
59 
63 };
64 
65 } // End of namespace
66 } // End of namespace
67 
68 #endif
mrpt::maps::mrptEventMetricMapInsert::source_map
const mrpt::maps::CMetricMap * source_map
Definition: CMetricMapEvents.h:60
mrpt::system::mrptEvent
The basic event type for the observer-observable pattern in MRPT.
Definition: mrptEvent.h:33
mrpt::maps::mrptEventMetricMapInsert::inserted_robotPose
const mrpt::poses::CPose3D * inserted_robotPose
Definition: CMetricMapEvents.h:62
mrpt::maps::mrptEventMetricMapInsert::mrptEventMetricMapInsert
mrptEventMetricMapInsert(const mrpt::maps::CMetricMap *smap, const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D *robotPose)
Definition: CMetricMapEvents.h:53
mrpt::maps::mrptEventMetricMapClear
Event emitted by a metric up upon call of clear()
Definition: CMetricMapEvents.h:29
mrpt::maps::mrptEventMetricMapClear::do_nothing
virtual void do_nothing() override
Just to allow this class to be polymorphic.
Definition: CMetricMapEvents.h:33
mrptEvent.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::maps::CMetricMap
Declares a virtual base class for all metric maps storage classes.
Definition: CMetricMap.h:56
mrpt::maps::mrptEventMetricMapInsert::inserted_obs
const mrpt::obs::CObservation * inserted_obs
Definition: CMetricMapEvents.h:61
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:88
mrpt::maps::mrptEventMetricMapClear::source_map
const mrpt::maps::CMetricMap * source_map
Definition: CMetricMapEvents.h:40
mrpt::maps::mrptEventMetricMapInsert::do_nothing
virtual void do_nothing() override
Just to allow this class to be polymorphic.
Definition: CMetricMapEvents.h:51
poses_frwds.h
mrpt::maps::mrptEventMetricMapClear::mrptEventMetricMapClear
mrptEventMetricMapClear(const mrpt::maps::CMetricMap *smap)
Definition: CMetricMapEvents.h:35
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition: CObservation.h:43
mrpt::maps::mrptEventMetricMapInsert
Event emitted by a metric up upon a succesful call to insertObservation()
Definition: CMetricMapEvents.h:47



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST