point_cloud_utilities.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <pcl/point_cloud.h>
4 #include <pcl/point_types.h>
5 
6 #include <string>
7 
8 #include "nxLib.h"
9 
11 {
12  float minX = 0;
13  float minY = 0;
14  float minZ = 0;
15  float maxX = 0;
16  float maxY = 0;
17  float maxZ = 0;
18 
19  bool contains(float x, float y, float z) const
20  {
21  return (x >= minX && x <= maxX && y >= minY && y <= maxY && z >= minZ && z <= maxZ);
22  }
23 
24  bool isEmpty() const
25  {
26  return (minX >= maxX || minY >= maxY || minZ >= maxZ);
27  }
28 };
29 
33 pcl::PointCloud<pcl::PointXYZ>::Ptr pointCloudFromNxLib(NxLibItem const& node, std::string const& frame,
34  PointCloudROI const* roi = 0);
35 
42 pcl::PointCloud<pcl::PointNormal>::Ptr pointCloudWithNormalsFromNxLib(NxLibItem const& pointMapNode,
43  NxLibItem const& normalNode,
44  std::string const& frame,
45  PointCloudROI const* roi = 0);
bool isEmpty() const
pcl::PointCloud< pcl::PointXYZ >::Ptr pointCloudFromNxLib(NxLibItem const &node, std::string const &frame, PointCloudROI const *roi=0)
pcl::PointCloud< pcl::PointNormal >::Ptr pointCloudWithNormalsFromNxLib(NxLibItem const &pointMapNode, NxLibItem const &normalNode, std::string const &frame, PointCloudROI const *roi=0)
bool contains(float x, float y, float z) const


ensenso_camera
Author(s): Ensenso
autogenerated on Thu May 16 2019 02:44:23