Point Cloud Library (PCL)
1.7.0
|
00001 #ifndef PCL_SENSOR_MSGS_MESSAGE_POINTFIELD_H 00002 #define PCL_SENSOR_MSGS_MESSAGE_POINTFIELD_H 00003 00004 #ifdef USE_ROS 00005 #error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated 00006 #endif 00007 00008 #include <string> 00009 #include <vector> 00010 #include <ostream> 00011 #include <boost/shared_ptr.hpp> 00012 #include <pcl/pcl_macros.h> 00013 00014 namespace pcl 00015 { 00016 struct PCLPointField 00017 { 00018 PCLPointField () : name (), offset (0), datatype (0), count (0) 00019 {} 00020 00021 std::string name; 00022 00023 pcl::uint32_t offset; 00024 pcl::uint8_t datatype; 00025 pcl::uint32_t count; 00026 00027 enum PointFieldTypes { INT8 = 1, 00028 UINT8 = 2, 00029 INT16 = 3, 00030 UINT16 = 4, 00031 INT32 = 5, 00032 UINT32 = 6, 00033 FLOAT32 = 7, 00034 FLOAT64 = 8 }; 00035 00036 public: 00037 typedef boost::shared_ptr< ::pcl::PCLPointField> Ptr; 00038 typedef boost::shared_ptr< ::pcl::PCLPointField const> ConstPtr; 00039 }; // struct PCLPointField 00040 00041 typedef boost::shared_ptr< ::pcl::PCLPointField> PCLPointFieldPtr; 00042 typedef boost::shared_ptr< ::pcl::PCLPointField const> PCLPointFieldConstPtr; 00043 00044 inline std::ostream& operator<<(std::ostream& s, const ::pcl::PCLPointField & v) 00045 { 00046 s << "name: "; 00047 s << " " << v.name << std::endl; 00048 s << "offset: "; 00049 s << " " << v.offset << std::endl; 00050 s << "datatype: "; 00051 s << " " << v.datatype << std::endl; 00052 s << "count: "; 00053 s << " " << v.count << std::endl; 00054 return (s); 00055 } 00056 } // namespace pcl 00057 00058 #endif // PCL_SENSOR_MSGS_MESSAGE_POINTFIELD_H 00059