1 #ifndef PCL_SENSOR_MSGS_MESSAGE_POINTCLOUD2_H 2 #define PCL_SENSOR_MSGS_MESSAGE_POINTCLOUD2_H 5 #error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated 11 #include <boost/predef/other/endian.h> 14 #include <pcl/PCLHeader.h> 15 #include <pcl/PCLPointField.h> 26 #if BOOST_ENDIAN_BIG_BYTE 28 #elif BOOST_ENDIAN_LITTLE_BYTE 31 #error "unable to determine system endianness" 40 std::vector< ::pcl::PCLPointField>
fields;
46 std::vector<pcl::uint8_t>
data;
51 typedef boost::shared_ptr< ::pcl::PCLPointCloud2>
Ptr;
52 typedef boost::shared_ptr< ::pcl::PCLPointCloud2 const>
ConstPtr;
58 inline std::ostream&
operator<<(std::ostream& s, const ::pcl::PCLPointCloud2 &v)
60 s <<
"header: " << std::endl;
63 s <<
" " << v.height << std::endl;
65 s <<
" " << v.width << std::endl;
66 s <<
"fields[]" << std::endl;
67 for (
size_t i = 0; i < v.fields.size (); ++i)
69 s <<
" fields[" << i <<
"]: ";
71 s <<
" " << v.fields[i] << std::endl;
73 s <<
"is_bigendian: ";
74 s <<
" " << v.is_bigendian << std::endl;
76 s <<
" " << v.point_step << std::endl;
78 s <<
" " << v.row_step << std::endl;
79 s <<
"data[]" << std::endl;
80 for (
size_t i = 0; i < v.data.size (); ++i)
82 s <<
" data[" << i <<
"]: ";
83 s <<
" " << v.data[i] << std::endl;
86 s <<
" " << v.is_dense << std::endl;
93 #endif // PCL_SENSOR_MSGS_MESSAGE_POINTCLOUD2_H pcl::uint8_t is_bigendian
This file defines compatibility wrappers for low level I/O functions.
boost::shared_ptr< ::pcl::PCLPointCloud2 const > PCLPointCloud2ConstPtr
boost::shared_ptr< ::pcl::PCLPointCloud2 > Ptr
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
boost::shared_ptr< ::pcl::PCLPointCloud2 const > ConstPtr
std::vector< ::pcl::PCLPointField > fields
boost::shared_ptr< ::pcl::PCLPointCloud2 > PCLPointCloud2Ptr
std::vector< pcl::uint8_t > data