Main MRPT website > C++ reference
MRPT logo
COctoMap.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 
10 #ifndef MRPT_COctoMap_H
11 #define MRPT_COctoMap_H
12 
13 #include <mrpt/slam/COctoMapBase.h>
14 
15 #include <mrpt/slam/CMetricMap.h>
19 
20 #include <mrpt/maps/link_pragmas.h>
21 
22 namespace mrpt
23 {
24  namespace slam
25  {
26  class CPointsMap;
27  class CObservation2DRangeScan;
28  class CObservation3DRangeScan;
29 
31 
32  /** A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ library.
33  * This version only stores occupancy information at each octree node. See the base class mrpt::slam::COctoMapBase.
34  *
35  * \sa CMetricMap, the example in "MRPT/samples/octomap_simple"
36  * \ingroup mrpt_maps_grp
37  */
38  class MAPS_IMPEXP COctoMap : public COctoMapBase<octomap::OcTree,octomap::OcTreeNode>
39  {
40  // This must be added to any CSerializable derived class:
42 
43  public:
44  COctoMap(const double resolution=0.10); //!< Default constructor
45  virtual ~COctoMap(); //!< Destructor
46 
47  virtual void getAsOctoMapVoxels(mrpt::opengl::COctoMapVoxels &gl_obj) const;
48 
49  protected:
50  bool internal_insertObservation(const CObservation *obs,const CPose3D *robotPose);
51 
52  }; // End of class def.
54  } // End of namespace
55 
56 } // End of namespace
57 
58 #endif
OctoMap: A probabilistic, flexible, and compact 3D mapping library for robotic systems.
Declares a virtual base class for all metric maps storage classes.
Definition: CMetricMap.h:83
A flexible renderer of voxels, typically from a 3D octo map (see mrpt::slam::COctoMap).
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
Declares a class that represents any robot's observation.
Definition: CObservation.h:52
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ ...
Definition: COctoMap.h:38
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:69
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ ...
Definition: COctoMapBase.h:46



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