Main MRPT website > C++ reference for MRPT 1.5.9
maps/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-2017, 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/utils/mrptEvent.h>
13 #include <mrpt/poses/poses_frwds.h>
14 
15 namespace mrpt
16 {
17 namespace obs { class CObservation; }
18  namespace maps
19  {
20  class CMetricMap;
21 
22  /** Event emitted by a metric up upon call of clear()
23  * \sa CMetricMap
24  * \ingroup mrpt_obs_grp
25  */
27  {
28  protected:
29  virtual void do_nothing() MRPT_OVERRIDE { } //!< Just to allow this class to be polymorphic
30  public:
32 
34  };
35 
36  /** Event emitted by a metric up upon a succesful call to insertObservation()
37  * \sa CMetricMap
38  * \ingroup mrpt_obs_grp
39  */
41  {
42  protected:
43  virtual void do_nothing() MRPT_OVERRIDE { } //!< Just to allow this class to be polymorphic
44  public:
45  inline mrptEventMetricMapInsert(const mrpt::maps::CMetricMap *smap, const mrpt::obs::CObservation *obs,const mrpt::poses::CPose3D *robotPose ) : source_map(smap), inserted_obs(obs), inserted_robotPose(robotPose) { }
46 
50  };
51 
52  } // End of namespace
53 } // End of namespace
54 
55 #endif
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
The basic event type for the observer-observable pattern in MRPT.
Definition: mrptEvent.h:34
const mrpt::maps::CMetricMap * source_map
mrptEventMetricMapInsert(const mrpt::maps::CMetricMap *smap, const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D *robotPose)
mrptEventMetricMapClear(const mrpt::maps::CMetricMap *smap)
Event emitted by a metric up upon a succesful call to insertObservation()
const mrpt::obs::CObservation * inserted_obs
Event emitted by a metric up upon call of clear()
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Declares a virtual base class for all metric maps storage classes.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:72
Declares a class that represents any robot&#39;s observation.
const mrpt::maps::CMetricMap * source_map
virtual void do_nothing() MRPT_OVERRIDE
Just to allow this class to be polymorphic.
const mrpt::poses::CPose3D * inserted_robotPose
virtual void do_nothing() MRPT_OVERRIDE
Just to allow this class to be polymorphic.



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020