6 #include <boost/predef/other/endian.h>
8 #include <pcl/pcl_macros.h>
9 #include <pcl/PCLHeader.h>
10 #include <pcl/PCLPointField.h>
19 std::uint32_t height = 0;
20 std::uint32_t width = 0;
22 std::vector<::pcl::PCLPointField>
fields;
24 static_assert(BOOST_ENDIAN_BIG_BYTE || BOOST_ENDIAN_LITTLE_BYTE,
"unable to determine system endianness");
25 std::uint8_t is_bigendian = BOOST_ENDIAN_BIG_BYTE;
26 std::uint32_t point_step = 0;
27 std::uint32_t row_step = 0;
29 std::vector<std::uint8_t> data;
31 std::uint8_t is_dense = 0;
34 using Ptr = shared_ptr< ::pcl::PCLPointCloud2>;
35 using ConstPtr = shared_ptr<const ::pcl::PCLPointCloud2>;
92 inline std::ostream&
operator<<(std::ostream& s, const ::pcl::PCLPointCloud2 &v)
94 s <<
"header: " << std::endl;
97 s <<
" " << v.height << std::endl;
99 s <<
" " << v.width << std::endl;
100 s <<
"fields[]" << std::endl;
101 for (std::size_t i = 0; i < v.fields.size (); ++i)
103 s <<
" fields[" << i <<
"]: ";
105 s <<
" " << v.fields[i] << std::endl;
107 s <<
"is_bigendian: ";
108 s <<
" " << v.is_bigendian << std::endl;
110 s <<
" " << v.point_step << std::endl;
112 s <<
" " << v.row_step << std::endl;
113 s <<
"data[]" << std::endl;
114 for (std::size_t i = 0; i < v.data.size (); ++i)
116 s <<
" data[" << i <<
"]: ";
117 s <<
" " << v.data[i] << std::endl;
120 s <<
" " << v.is_dense << std::endl;
std::vector<::pcl::PCLPointField > fields
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
PCLPointCloud2::ConstPtr PCLPointCloud2ConstPtr
PCL_EXPORTS bool concatenate(const pcl::PointCloud< PointT > &cloud1, const pcl::PointCloud< PointT > &cloud2, pcl::PointCloud< PointT > &cloud_out)
Concatenate two pcl::PointCloud
PCLPointCloud2::Ptr PCLPointCloud2Ptr