4 #error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
10 #include <boost/predef/other/endian.h>
13 #include <pcl/PCLHeader.h>
14 #include <pcl/PCLPointField.h>
26 std::vector<::pcl::PCLPointField>
fields;
28 static_assert(BOOST_ENDIAN_BIG_BYTE || BOOST_ENDIAN_LITTLE_BYTE,
"unable to determine system endianness");
33 std::vector<std::uint8_t>
data;
96 inline std::ostream&
operator<<(std::ostream& s, const ::pcl::PCLPointCloud2 &v)
98 s <<
"header: " << std::endl;
101 s <<
" " << v.height << std::endl;
103 s <<
" " << v.width << std::endl;
104 s <<
"fields[]" << std::endl;
105 for (std::size_t i = 0; i < v.fields.size (); ++i)
107 s <<
" fields[" << i <<
"]: ";
109 s <<
" " << v.fields[i] << std::endl;
111 s <<
"is_bigendian: ";
112 s <<
" " << v.is_bigendian << std::endl;
114 s <<
" " << v.point_step << std::endl;
116 s <<
" " << v.row_step << std::endl;
117 s <<
"data[]" << std::endl;
118 for (std::size_t i = 0; i < v.data.size (); ++i)
120 s <<
" data[" << i <<
"]: ";
121 s <<
" " << v.data[i] << std::endl;
124 s <<
" " << v.is_dense << std::endl;