generic class that covers one single point cloud of different possible types provided by the Point Cloud Library (PCL).
More...
|
| PCLPointCloud () |
| constructor for an empty, invalid point cloud
|
|
| PCLPointCloud (ito::tPCLPointType type) |
| constructor for an empty point cloud of the desired type
|
|
| PCLPointCloud (pcl::PointCloud< pcl::PointXYZ >::Ptr pclPtr) |
| constructor from given shared pointer of pcl::PointCloud<pcl::PointXYZ>
|
|
| PCLPointCloud (pcl::PointCloud< pcl::PointXYZI >::Ptr pclPtr) |
| constructor from given shared pointer of pcl::PointCloud<pcl::PointXYZI>
|
|
| PCLPointCloud (pcl::PointCloud< pcl::PointXYZRGBA >::Ptr pclPtr) |
| constructor from given shared pointer of pcl::PointCloud<pcl::PointXYZRGBA>
|
|
| PCLPointCloud (pcl::PointCloud< pcl::PointNormal >::Ptr pclPtr) |
| constructor from given shared pointer of pcl::PointCloud<pcl::PointNormal>
|
|
| PCLPointCloud (pcl::PointCloud< pcl::PointXYZINormal >::Ptr pclPtr) |
| constructor from given shared pointer of pcl::PointCloud<pcl::PointXYZINormal>
|
|
| PCLPointCloud (pcl::PointCloud< pcl::PointXYZRGBNormal >::Ptr pclPtr) |
| constructor from given shared pointer of pcl::PointCloud<pcl::PointXYZRGBNormal>
|
|
| PCLPointCloud (uint32_t width_, uint32_t height_, ito::tPCLPointType type_, const PCLPoint &value_=PCLPoint()) |
| creates a point cloud with given width_, height_ and type_ and sets all points to the given value_.
|
|
| PCLPointCloud (PCLPointCloud &pc) |
| copy constructor
|
|
| PCLPointCloud (const PCLPointCloud &pc) |
| copy constructor
|
|
| PCLPointCloud (const PCLPointCloud &pc, const std::vector< int > &indices) |
| copy constructor that creates the point cloud from a given point cloud and a vector of point indices that should be copied only.
|
|
| ~PCLPointCloud () |
| destructor
|
|
ito::tPCLPointType | getType () const |
| returns type of covered point cloud or ito::pclInvalid if invalid point cloud.
|
|
int | hasRGB () const |
| if this cloud has color components returns != 0, else 0
|
|
int | hasNormal () const |
| if this cloud has the normal components returns != 0, else 0
|
|
int | hasIntensity () const |
| if this cloud has the intensity component returns != 0, else 0
|
|
int | hasCurvature () const |
| if this cloud has the curvature component returns != 0, else 0
|
|
pcl::PointCloud< pcl::PointXYZ >::Ptr | toPointXYZ () const |
| returns a shared pointer to the internal pcl::PointCloud<pcl::PointXYZ> cloud.
|
|
pcl::PointCloud< pcl::PointXYZI >::Ptr | toPointXYZI () const |
| returns a shared pointer to the internal pcl::PointCloud<pcl::PointXYZI> cloud.
|
|
pcl::PointCloud< pcl::PointXYZRGBA >::Ptr | toPointXYZRGBA () const |
| returns a shared pointer to the internal pcl::PointCloud<pcl::PointXYZRGBA> cloud.
|
|
pcl::PointCloud< pcl::PointNormal >::Ptr | toPointXYZNormal () const |
| returns a shared pointer to the internal pcl::PointCloud<pcl::PointNormal> cloud.
|
|
pcl::PointCloud< pcl::PointXYZINormal >::Ptr | toPointXYZINormal () const |
| returns a shared pointer to the internal pcl::PointCloud<pcl::PointXYZINormal> cloud.
|
|
pcl::PointCloud< pcl::PointXYZRGBNormal >::Ptr | toPointXYZRGBNormal () const |
| returns a shared pointer to the internal pcl::PointCloud<pcl::PointXYZRGBNormal> cloud.
|
|
pcl::PointCloud< pcl::PointXYZ >::ConstPtr | toPointXYZConst () const |
| returns a constant shared pointer to the internal pcl::PointCloud<pcl::PointXYZ> cloud.
|
|
pcl::PointCloud< pcl::PointXYZI >::ConstPtr | toPointXYZIConst () const |
| returns a constant shared pointer to the internal pcl::PointCloud<pcl::PointXYZI> cloud.
|
|
pcl::PointCloud< pcl::PointXYZRGBA >::ConstPtr | toPointXYZRGBAConst () const |
| returns a constant shared pointer to the internal pcl::PointCloud<pcl::PointXYZRGBA> cloud.
|
|
pcl::PointCloud< pcl::PointNormal >::ConstPtr | toPointXYZNormalConst () const |
| returns a constant shared pointer to the internal pcl::PointCloud<pcl::PointNormal> cloud.
|
|
pcl::PointCloud< pcl::PointXYZINormal >::ConstPtr | toPointXYZINormalConst () const |
| returns a constant shared pointer to the internal pcl::PointCloud<pcl::PointXYZINormal> cloud.
|
|
pcl::PointCloud< pcl::PointXYZRGBNormal >::ConstPtr | toPointXYZRGBNormalConst () const |
| returns a constant shared pointer to the internal pcl::PointCloud<pcl::PointXYZRGBNormal> cloud.
|
|
PCLPointCloud & | operator+= (const PCLPointCloud &rhs) |
| appends another point cloud to this point cloud
|
|
const PCLPointCloud | operator+ (const PCLPointCloud &rhs) |
| returns a point cloud consisting of points of this and another point cloud.
|
|
PCLPointCloud & | operator= (const PCLPointCloud ©) |
| assignment operator
|
|
PCLPointCloud | copy () const |
| make a deep copy of this point cloud
|
|
const PCLPoint | operator[] (size_t n) const |
| returns point at given position n.
|
|
const PCLPoint | at (size_t n) const |
| returns point at given position n.
|
|
void | set_item (size_t n, PCLPoint &point) |
| sets the point at position n to the value given by point.
|
|
bool | isOrganized () const |
| returns true if this point cloud is organized, hence its height is > 1. In organized clouds adjacent points are pretended to be neighbours in the world, too.
|
|
uint32_t | width () const |
| returns width of this point cloud
|
|
uint32_t | height () const |
| returns height of this point cloud (1 if not organized, else > 1)
|
|
size_t | size () const |
| returns the number of points in this point cloud (width() * height())
|
|
bool | is_dense () const |
| returns true if this point cloud only contains points with valid components, else at least one point with nan or inf component is present
|
|
void | set_width (uint32_t width) |
| setter to set the width of the point cloud
|
|
void | set_height (uint32_t height) |
| setter to set the height of the point cloud
|
|
void | set_dense (bool dense) |
| setter to set the dense property of this point cloud
|
|
void | scaleXYZ (float32 scaleX, float32 scaleY, float32 scaleZ) |
| scale every point in this cloud by scaleX, scaleY and scaleZ in X, Y and Z direction. Other point properties are not influenced by this.
|
|
void | moveXYZ (float32 dX, float32 dY, float32 dZ) |
| scale every point in this cloud by scaleX, scaleY and scaleZ in X, Y and Z direction. Other point properties are not influenced by this.
|
|
std_msgs::Header | header () const |
| returns the header structure of this point cloud for a conversion to the old pcl::PCLPointCloud2 structure used in the pcl::PolygonMesh.
|
|
std::string | getFieldsList () const |
| returns a space separated string with the names of all components in the point cloud, e.g. "x y z"
|
|
std::vector< sensor_msgs::PointField > | getFieldsInfo () const |
| returns vector with information about all fields contained in the specific point cloud (each info struct contains the name, offset, datatype, ... of any field)
|
|
unsigned char * | genericPointAccess (size_t &strideBytes) const |
| returns the pointer to the first point in the current cloud or NULL if the cloud is invalid, strideBytes is the number of bytes to jump from one point to the next one.
|
|
void | push_back (const ito::PCLPoint &pt) |
| adds a new point to this cloud
|
|
bool | empty () const |
| returns true if point cloud is empty, else false
|
|
void | reserve (size_t n) |
| reserves a space of n elements for the point cloud without resizing it
|
|
void | resize (size_t n) |
| resizes the point cloud to n points. Each point is arbitrarily initialized
|
|
void | clear () |
| clears all points in the point cloud
|
|
void | erase (uint32_t startIndex, uint32_t endIndex) |
| clears the points from [startIndex, endIndex]
|
|
void | insert (uint32_t index, const ito::PCLPoint &point) |
| inserts point at given index
|
|
generic class that covers one single point cloud of different possible types provided by the Point Cloud Library (PCL).
The possible types are compatible to PCLPoint and described in ito::tPCLPointType:
ito::pclXYZ: x, y, z ito::pclXYZI: x, y, z, intensity ito::pclXYZRGBA: x, y, z, color (red, green, blue, alpha) ito::pclXYZNormal: x, y, z, normal_x, normal_y, normal_z, curvature ito::pclXYZINormal ito::pclXYZRGBNormal
The specific type is saved in the member m_type whereas different members are available each one holding a shared pointer to the point cloud of one specific type. Only one of those shared pointers can contain a valid point cloud.