PCLPointCloud2.h
#ifndef PCL_SENSOR_MSGS_MESSAGE_POINTCLOUD2_H
#define PCL_SENSOR_MSGS_MESSAGE_POINTCLOUD2_H
#ifdef USE_ROS
#error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
#endif
#include <string>
#include <vector>
#include <ostream>
#include <boost/detail/endian.hpp>
// Include the correct Header path here
#include <pcl/PCLHeader.h>
#include <pcl/PCLPointField.h>
namespace pcl
{
struct PCLPointCloud2
{
PCLPointCloud2 () : header (), height (0), width (0), fields (),
is_bigendian (false), point_step (0), row_step (0),
data (), is_dense (false)
{
#if defined(BOOST_BIG_ENDIAN)
is_bigendian = true;
#elif defined(BOOST_LITTLE_ENDIAN)
is_bigendian = false;
#else
#error "unable to determine system endianness"
#endif
}
::pcl::PCLHeader header;
pcl::uint32_t height;
pcl::uint32_t width;
std::vector< ::pcl::PCLPointField> fields;
pcl::uint8_t is_bigendian;
pcl::uint32_t point_step;
pcl::uint32_t row_step;
std::vector<pcl::uint8_t> data;
pcl::uint8_t is_dense;
public:
typedef boost::shared_ptr< ::pcl::PCLPointCloud2> Ptr;
typedef boost::shared_ptr< ::pcl::PCLPointCloud2 const> ConstPtr;
}; // struct PCLPointCloud2
typedef boost::shared_ptr< ::pcl::PCLPointCloud2> PCLPointCloud2Ptr;
typedef boost::shared_ptr< ::pcl::PCLPointCloud2 const> PCLPointCloud2ConstPtr;
inline std::ostream& operator<<(std::ostream& s, const ::pcl::PCLPointCloud2 &v)
{
s << "header: " << std::endl;
s << v.header;
s << "height: ";
s << " " << v.height << std::endl;
s << "width: ";
s << " " << v.width << std::endl;
s << "fields[]" << std::endl;
for (size_t i = 0; i < v.fields.size (); ++i)
{
s << " fields[" << i << "]: ";
s << std::endl;
s << " " << v.fields[i] << std::endl;
}
s << "is_bigendian: ";
s << " " << v.is_bigendian << std::endl;
s << "point_step: ";
s << " " << v.point_step << std::endl;
s << "row_step: ";
s << " " << v.row_step << std::endl;
s << "data[]" << std::endl;
for (size_t i = 0; i < v.data.size (); ++i)
{
s << " data[" << i << "]: ";
s << " " << v.data[i] << std::endl;
}
s << "is_dense: ";
s << " " << v.is_dense << std::endl;
return (s);
}
} // namespace pcl
#endif // PCL_SENSOR_MSGS_MESSAGE_POINTCLOUD2_H
pcl::PCLPointCloud2::is_bigendian
pcl::uint8_t is_bigendian
Definition: PCLPointCloud2.h:42
pcl::PCLPointCloud2::point_step
pcl::uint32_t point_step
Definition: PCLPointCloud2.h:43
pcl
Definition: convolution.h:45
pcl::PCLPointCloud2::header
::pcl::PCLHeader header
Definition: PCLPointCloud2.h:35
pcl::PCLPointCloud2::is_dense
pcl::uint8_t is_dense
Definition: PCLPointCloud2.h:48
pcl::PCLPointCloud2ConstPtr
boost::shared_ptr< ::pcl::PCLPointCloud2 const > PCLPointCloud2ConstPtr
Definition: PCLPointCloud2.h:56
pcl::PCLPointCloud2::Ptr
boost::shared_ptr< ::pcl::PCLPointCloud2 > Ptr
Definition: PCLPointCloud2.h:51
pcl::operator<<
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
Definition: bivariate_polynomial.hpp:230
pcl::PCLPointCloud2::row_step
pcl::uint32_t row_step
Definition: PCLPointCloud2.h:44
pcl::PCLPointCloud2::width
pcl::uint32_t width
Definition: PCLPointCloud2.h:38
pcl::PCLPointCloud2::ConstPtr
boost::shared_ptr< ::pcl::PCLPointCloud2 const > ConstPtr
Definition: PCLPointCloud2.h:52
pcl::PCLPointCloud2::fields
std::vector< ::pcl::PCLPointField > fields
Definition: PCLPointCloud2.h:40
pcl::PCLPointCloud2Ptr
boost::shared_ptr< ::pcl::PCLPointCloud2 > PCLPointCloud2Ptr
Definition: PCLPointCloud2.h:55
pcl::PCLPointCloud2::height
pcl::uint32_t height
Definition: PCLPointCloud2.h:37
pcl::PCLPointCloud2
Definition: PCLPointCloud2.h:20
pcl::PCLPointCloud2::PCLPointCloud2
PCLPointCloud2()
Definition: PCLPointCloud2.h:22
pcl::PCLPointCloud2::data
std::vector< pcl::uint8_t > data
Definition: PCLPointCloud2.h:46
pcl::PCLHeader
Definition: PCLHeader.h:16