Main MRPT website > C++ reference
MRPT logo
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-2014, 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 slam
18  {
19  class CObservation;
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() { } //!< Just to allow this class to be polymorphic
30  public:
31  inline mrptEventMetricMapClear(const CMetricMap *smap) : source_map(smap) {}
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() { } //!< Just to allow this class to be polymorphic
44  public:
45  inline mrptEventMetricMapInsert(const CMetricMap *smap, const 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
The basic event type for the observer-observable pattern in MRPT.
Definition: mrptEvent.h:34
virtual void do_nothing()
Just to allow this class to be polymorphic.
Declares a virtual base class for all metric maps storage classes.
Definition: CMetricMap.h:83
Declares a class that represents any robot's observation.
Definition: CObservation.h:52
mrptEventMetricMapInsert(const CMetricMap *smap, const CObservation *obs, const mrpt::poses::CPose3D *robotPose)
virtual void do_nothing()
Just to allow this class to be polymorphic.
Event emitted by a metric up upon a succesful call to insertObservation()
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:69
Event emitted by a metric up upon call of clear()
mrptEventMetricMapClear(const CMetricMap *smap)
const mrpt::poses::CPose3D * inserted_robotPose



Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014