Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

pcl::PCLBase< sensor_msgs::PointCloud2 > Class Template Reference

#include <pcl/pcl_base.h>

Inheritance diagram for pcl::PCLBase< sensor_msgs::PointCloud2 >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef sensor_msgs::PointCloud2 PointCloud2
typedef PointCloud2::Ptr PointCloud2Ptr
typedef PointCloud2::ConstPtr PointCloud2ConstPtr
typedef PointIndices::Ptr PointIndicesPtr
typedef PointIndices::ConstPtr PointIndicesConstPtr

Public Member Functions

 PCLBase ()
 Empty constructor.
void setInputCloud (const PointCloud2ConstPtr &cloud)
 Provide a pointer to the input dataset.
PointCloud2ConstPtr const getInputCloud ()
 Get a pointer to the input point cloud dataset.
void setIndices (const IndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
void setIndices (const PointIndicesConstPtr &indices)
 Provide a pointer to the vector of indices that represents the input data.
IndicesConstPtr const getIndices ()
 Get a pointer to the vector of indices used.

Protected Member Functions

bool initCompute ()
bool deinitCompute ()

Protected Attributes

PointCloud2ConstPtr input_
 The input point cloud dataset.
IndicesConstPtr indices_
 A pointer to the vector of point indices to use.
bool use_indices_
 Set to true if point indices are used.
bool fake_indices_
 If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud.
std::vector< int > field_sizes_
 The size of each individual field.
int x_idx_
 The x-y-z fields indices.
int y_idx_
int z_idx_
std::string x_field_name_
 The desired x-y-z field names.
std::string y_field_name_
std::string z_field_name_

Detailed Description

template<>
class pcl::PCLBase< sensor_msgs::PointCloud2 >

Definition at line 179 of file pcl_base.h.


Member Typedef Documentation

Reimplemented in pcl::Filter< sensor_msgs::PointCloud2 >.

Definition at line 182 of file pcl_base.h.

Reimplemented in pcl::Filter< sensor_msgs::PointCloud2 >.

Definition at line 184 of file pcl_base.h.

Reimplemented in pcl::Filter< sensor_msgs::PointCloud2 >.

Definition at line 183 of file pcl_base.h.

Definition at line 187 of file pcl_base.h.

Definition at line 186 of file pcl_base.h.


Constructor & Destructor Documentation

Empty constructor.

Definition at line 190 of file pcl_base.h.


Member Function Documentation

bool pcl::PCLBase< sensor_msgs::PointCloud2 >::deinitCompute (  )  [protected]
IndicesConstPtr const pcl::PCLBase< sensor_msgs::PointCloud2 >::getIndices (  )  [inline]

Get a pointer to the vector of indices used.

Definition at line 228 of file pcl_base.h.

PointCloud2ConstPtr const pcl::PCLBase< sensor_msgs::PointCloud2 >::getInputCloud (  )  [inline]

Get a pointer to the input point cloud dataset.

Definition at line 202 of file pcl_base.h.

bool pcl::PCLBase< sensor_msgs::PointCloud2 >::initCompute (  )  [protected]
void pcl::PCLBase< sensor_msgs::PointCloud2 >::setIndices ( const IndicesConstPtr indices  )  [inline]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indices a pointer to the vector of indices that represents the input data.

Definition at line 208 of file pcl_base.h.

void pcl::PCLBase< sensor_msgs::PointCloud2 >::setIndices ( const PointIndicesConstPtr indices  )  [inline]

Provide a pointer to the vector of indices that represents the input data.

Parameters:
indices a pointer to the vector of indices that represents the input data.

Definition at line 219 of file pcl_base.h.

void pcl::PCLBase< sensor_msgs::PointCloud2 >::setInputCloud ( const PointCloud2ConstPtr cloud  ) 

Provide a pointer to the input dataset.

Parameters:
cloud the const boost shared pointer to a PointCloud message

Member Data Documentation

If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud.

Definition at line 241 of file pcl_base.h.

std::vector<int> pcl::PCLBase< sensor_msgs::PointCloud2 >::field_sizes_ [protected]

The size of each individual field.

Definition at line 244 of file pcl_base.h.

A pointer to the vector of point indices to use.

Definition at line 235 of file pcl_base.h.

The input point cloud dataset.

Definition at line 232 of file pcl_base.h.

Set to true if point indices are used.

Definition at line 238 of file pcl_base.h.

The desired x-y-z field names.

Definition at line 250 of file pcl_base.h.

The x-y-z fields indices.

Definition at line 247 of file pcl_base.h.

Definition at line 250 of file pcl_base.h.

Definition at line 247 of file pcl_base.h.

Definition at line 250 of file pcl_base.h.

Definition at line 247 of file pcl_base.h.


The documentation for this class was generated from the following file: