OCLSLAM  0.1.0
 Hosted by GitHub
pointcloud.hpp
Go to the documentation of this file.
1 
29 #ifndef POINTCLOUD_HPP
30 #define POINTCLOUD_HPP
31 
32 #include <octomap/octomap.h>
33 
34 
35 namespace cl_algo
36 {
37 namespace oclslam
38 {
39 
43  class PointCloud : public octomap::Pointcloud
44  {
45  public:
46  PointCloud () {}
47  PointCloud (const octomap::Pointcloud &other) : octomap::Pointcloud (other) {}
48  PointCloud (octomap::Pointcloud *other) : octomap::Pointcloud (other) {}
49  PointCloud (PointCloud *other) : octomap::Pointcloud (other) {}
50  PointCloud (size_t n) { points.resize (n); }
51  inline void resize (size_t n) { points.resize (n); }
52  inline octomap::point3d *data () { return points.data (); }
53  inline void emplace_back (float x, float y, float z) { points.emplace_back (x, y, z); }
54  };
55 
56 }
57 }
58 
59 #endif // POINTCLOUD_HPP
Enhances octomap::Pointcloud.
Definition: pointcloud.hpp:43
PointCloud(size_t n)
Definition: pointcloud.hpp:50
PointCloud(const octomap::Pointcloud &other)
Definition: pointcloud.hpp:47
PointCloud(octomap::Pointcloud *other)
Definition: pointcloud.hpp:48
Offers classes which set up kernel execution parameters and provide interfaces for the handling of me...
Definition: algorithms.hpp:45
Offers functions that are serial CPU implementations of the relevant algorithms in the OCLSLAM pipeli...
Definition: helper_funcs.hpp:47
void resize(size_t n)
Definition: pointcloud.hpp:51
void emplace_back(float x, float y, float z)
Definition: pointcloud.hpp:53
PointCloud()
Definition: pointcloud.hpp:46
PointCloud(PointCloud *other)
Definition: pointcloud.hpp:49
octomap::point3d * data()
Definition: pointcloud.hpp:52