MRPT  2.0.4
CMetricMapEvents.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/poses/poses_frwds.h>
12 #include <mrpt/system/mrptEvent.h>
13 
14 namespace mrpt
15 {
16 namespace obs
17 {
18 class CObservation;
19 }
20 namespace maps
21 {
22 class CMetricMap;
23 
24 /** Event emitted by a metric up upon call of clear()
25  * \sa CMetricMap
26  * \ingroup mrpt_obs_grp
27  */
29 {
30  protected:
31  /** Just to allow this class to be polymorphic */
32  void do_nothing() override {}
33 
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  void do_nothing() override {}
52 
53  public:
55  const mrpt::maps::CMetricMap* smap, const mrpt::obs::CObservation* obs,
56  const mrpt::poses::CPose3D* robotPose)
57  : source_map(smap), inserted_obs(obs), inserted_robotPose(robotPose)
58  {
59  }
60 
64 };
65 
66 } // namespace maps
67 } // namespace mrpt
mrpt::maps::mrptEventMetricMapInsert::source_map
const mrpt::maps::CMetricMap * source_map
Definition: CMetricMapEvents.h:61
mrpt::system::mrptEvent
The basic event type for the observer-observable pattern in MRPT.
Definition: mrptEvent.h:32
mrpt::maps::mrptEventMetricMapInsert::inserted_robotPose
const mrpt::poses::CPose3D * inserted_robotPose
Definition: CMetricMapEvents.h:63
mrpt::maps::mrptEventMetricMapInsert::mrptEventMetricMapInsert
mrptEventMetricMapInsert(const mrpt::maps::CMetricMap *smap, const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D *robotPose)
Definition: CMetricMapEvents.h:54
mrpt::maps::mrptEventMetricMapClear
Event emitted by a metric up upon call of clear()
Definition: CMetricMapEvents.h:29
mrptEvent.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: BaseAppDataSource.h:16
mrpt::maps::mrptEventMetricMapInsert::do_nothing
void do_nothing() override
Just to allow this class to be polymorphic.
Definition: CMetricMapEvents.h:51
mrpt::maps::CMetricMap
Declares a virtual base class for all metric maps storage classes.
Definition: CMetricMap.h:54
mrpt::maps::mrptEventMetricMapInsert::inserted_obs
const mrpt::obs::CObservation * inserted_obs
Definition: CMetricMapEvents.h:62
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:87
mrpt::maps::mrptEventMetricMapClear::source_map
const mrpt::maps::CMetricMap * source_map
Definition: CMetricMapEvents.h:40
mrpt::maps::mrptEventMetricMapClear::do_nothing
void do_nothing() override
Just to allow this class to be polymorphic.
Definition: CMetricMapEvents.h:32
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:44
mrpt::maps::mrptEventMetricMapInsert
Event emitted by a metric up upon a succesful call to insertObservation()
Definition: CMetricMapEvents.h:48



Page generated by Doxygen 1.8.18 for MRPT 2.0.4 at Thu Sep 24 07:14:18 UTC 2020