6 #include <boost/predef/other/endian.h>
9 #include <pcl/PCLHeader.h>
10 #include <pcl/PCLPointField.h>
23 std::vector<::pcl::PCLPointField>
fields;
25 static_assert(BOOST_ENDIAN_BIG_BYTE || BOOST_ENDIAN_LITTLE_BYTE,
"unable to determine system endianness");
26 std::uint8_t is_bigendian = BOOST_ENDIAN_BIG_BYTE;
30 std::vector<std::uint8_t>
data;
32 std::uint8_t is_dense = 0;
35 using Ptr = shared_ptr< ::pcl::PCLPointCloud2>;
36 using ConstPtr = shared_ptr<const ::pcl::PCLPointCloud2>;
93 inline std::ostream&
operator<<(std::ostream& s, const ::pcl::PCLPointCloud2 &v)
95 s <<
"header: " << std::endl;
98 s <<
" " << v.height << std::endl;
100 s <<
" " << v.width << std::endl;
101 s <<
"fields[]" << std::endl;
102 for (std::size_t i = 0; i < v.fields.size (); ++i)
104 s <<
" fields[" << i <<
"]: ";
106 s <<
" " << v.fields[i] << std::endl;
108 s <<
"is_bigendian: ";
109 s <<
" " << v.is_bigendian << std::endl;
111 s <<
" " << v.point_step << std::endl;
113 s <<
" " << v.row_step << std::endl;
114 s <<
"data[]" << std::endl;
115 for (std::size_t i = 0; i < v.data.size (); ++i)
117 s <<
" data[" << i <<
"]: ";
118 s <<
" " << v.data[i] << std::endl;
121 s <<
" " << v.is_dense << std::endl;