6 #include <boost/predef/other/endian.h>
9 #include <pcl/PCLHeader.h>
10 #include <pcl/PCLPointField.h>
22 std::vector<::pcl::PCLPointField>
fields;
24 static_assert(BOOST_ENDIAN_BIG_BYTE || BOOST_ENDIAN_LITTLE_BYTE,
"unable to determine system endianness");
29 std::vector<std::uint8_t>
data;
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;
PCL_EXPORTS bool concatenate(const pcl::PointCloud< PointT > &cloud1, const pcl::PointCloud< PointT > &cloud2, pcl::PointCloud< PointT > &cloud_out)
Concatenate two pcl::PointCloud<PointT>
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
PCLPointCloud2::Ptr PCLPointCloud2Ptr
PCLPointCloud2::ConstPtr PCLPointCloud2ConstPtr
Defines all the PCL and non-PCL macros used.
std::vector<::pcl::PCLPointField > fields
shared_ptr< ::pcl::PCLPointCloud2 > Ptr
static bool concatenate(const PCLPointCloud2 &cloud1, const PCLPointCloud2 &cloud2, PCLPointCloud2 &cloud_out)
Concatenate two pcl::PCLPointCloud2.
static bool concatenate(pcl::PCLPointCloud2 &cloud1, const pcl::PCLPointCloud2 &cloud2)
Inplace concatenate two pcl::PCLPointCloud2.
std::vector< std::uint8_t > data
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr