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;
PCL_EXPORTS bool concatenate(const pcl::PointCloud< PointT > &cloud1, const pcl::PointCloud< PointT > &cloud2, pcl::PointCloud< PointT > &cloud_out)
Concatenate two pcl::PointCloud<PointT>
detail::int_type_t< detail::index_type_size, false > uindex_t
Type used for an unsigned index in PCL.
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
Defines basic non-point types used by PCL.