Point Cloud Library (PCL)  1.9.1-dev
PCLPointField.h
1 #pragma once
2 
3 #ifdef USE_ROS
4  #error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
5 #endif
6 
7 #include <string>
8 #include <vector>
9 #include <ostream>
10 #include <boost/shared_ptr.hpp>
11 #include <pcl/pcl_macros.h>
12 
13 namespace pcl
14 {
16  {
17  std::string name;
18 
19  std::uint32_t offset = 0;
20  std::uint8_t datatype = 0;
21  std::uint32_t count = 0;
22 
23  enum PointFieldTypes { INT8 = 1,
24  UINT8 = 2,
25  INT16 = 3,
26  UINT16 = 4,
27  INT32 = 5,
28  UINT32 = 6,
29  FLOAT32 = 7,
30  FLOAT64 = 8 };
31 
32  public:
33  using Ptr = boost::shared_ptr< ::pcl::PCLPointField>;
34  using ConstPtr = boost::shared_ptr<const ::pcl::PCLPointField>;
35  }; // struct PCLPointField
36 
39 
40  inline std::ostream& operator<<(std::ostream& s, const ::pcl::PCLPointField & v)
41  {
42  s << "name: ";
43  s << " " << v.name << std::endl;
44  s << "offset: ";
45  s << " " << v.offset << std::endl;
46  s << "datatype: ";
47  s << " " << v.datatype << std::endl;
48  s << "count: ";
49  s << " " << v.count << std::endl;
50  return (s);
51  }
52 } // namespace pcl
PCLPointField::Ptr PCLPointFieldPtr
Definition: PCLPointField.h:37
boost::shared_ptr< ::pcl::PCLPointField > Ptr
Definition: PCLPointField.h:33
PCLPointField::ConstPtr PCLPointFieldConstPtr
Definition: PCLPointField.h:38
boost::shared_ptr< const ::pcl::PCLPointField > ConstPtr
Definition: PCLPointField.h:34
This file defines compatibility wrappers for low level I/O functions.
Definition: convolution.h:45
std::uint32_t offset
Definition: PCLPointField.h:19
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
std::uint32_t count
Definition: PCLPointField.h:21
std::string name
Definition: PCLPointField.h:17
std::uint8_t datatype
Definition: PCLPointField.h:20
Defines all the PCL and non-PCL macros used.