Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Types | Public Member Functions | Public Attributes | Static Public Attributes
pcl::io::depth_sense::DepthSenseGrabberImpl Struct Reference

#include <pcl/io/depth_sense/depth_sense_grabber_impl.h>

Public Types

typedef DepthSenseGrabber::sig_cb_depth_sense_point_cloud sig_cb_depth_sense_point_cloud
 
typedef DepthSenseGrabber::sig_cb_depth_sense_point_cloud_rgba sig_cb_depth_sense_point_cloud_rgba
 

Public Member Functions

 DepthSenseGrabberImpl (DepthSenseGrabber *parent, const std::string &device_id)
 
 ~DepthSenseGrabberImpl () throw ()
 
void start ()
 
void stop ()
 
float getFramesPerSecond () const
 
void setConfidenceThreshold (int threshold)
 
void enableTemporalFiltering (DepthSenseGrabber::TemporalFilteringType type, size_t window_size)
 
void setCameraParameters (const DepthSense::StereoCameraParameters &parameters)
 
void configureDepthNode (DepthSense::DepthNode node) const
 
void configureColorNode (DepthSense::ColorNode node) const
 
void onDepthDataReceived (DepthSense::DepthNode node, DepthSense::DepthNode::NewSampleReceivedData data)
 A callback for processing depth data. More...
 
void onColorDataReceived (DepthSense::ColorNode node, DepthSense::ColorNode::NewSampleReceivedData data)
 A callback for processing color data. More...
 
template<typename Point >
void computeXYZ (PointCloud< Point > &cloud)
 

Public Attributes

DepthSenseGrabberp_
 Parent grabber. More...
 
std::string device_id_
 Serial number of the device captured by this grabber. More...
 
bool is_running_
 
int confidence_threshold_
 
DepthSenseGrabber::TemporalFilteringType temporal_filtering_type_
 
boost::shared_ptr< DepthSense::ProjectionHelper > projection_
 
boost::signals2::signal< sig_cb_depth_sense_point_cloud > * point_cloud_signal_
 Signal to indicate whether new XYZ cloud is available. More...
 
boost::signals2::signal< sig_cb_depth_sense_point_cloud_rgba > * point_cloud_rgba_signal_
 Signal to indicate whether new XYZRGBA cloud is available. More...
 
bool need_xyz_
 Indicates whether there are subscribers for PointXYZ signal. More...
 
bool need_xyzrgba_
 Indicates whether there are subscribers for PointXYZRGBA signal. More...
 
EventFrequency frequency_
 
boost::mutex fps_mutex_
 
std::vector< uint8_t > color_data_
 Temporary buffer to store color data. More...
 
boost::shared_ptr< pcl::io::Buffer< float > > depth_buffer_
 

Static Public Attributes

static const int FRAMERATE = 30
 
static const int WIDTH = 320
 
static const int HEIGHT = 240
 
static const int SIZE = WIDTH * HEIGHT
 
static const int COLOR_WIDTH = 640
 
static const int COLOR_HEIGHT = 480
 
static const int COLOR_SIZE = COLOR_WIDTH * COLOR_HEIGHT
 

Detailed Description

Definition at line 57 of file depth_sense_grabber_impl.h.

Member Typedef Documentation

typedef DepthSenseGrabber::sig_cb_depth_sense_point_cloud pcl::io::depth_sense::DepthSenseGrabberImpl::sig_cb_depth_sense_point_cloud

Definition at line 73 of file depth_sense_grabber_impl.h.

typedef DepthSenseGrabber::sig_cb_depth_sense_point_cloud_rgba pcl::io::depth_sense::DepthSenseGrabberImpl::sig_cb_depth_sense_point_cloud_rgba

Definition at line 74 of file depth_sense_grabber_impl.h.

Constructor & Destructor Documentation

pcl::io::depth_sense::DepthSenseGrabberImpl::DepthSenseGrabberImpl ( DepthSenseGrabber parent,
const std::string &  device_id 
)
pcl::io::depth_sense::DepthSenseGrabberImpl::~DepthSenseGrabberImpl ( )
throw (
)

Member Function Documentation

template<typename Point >
void pcl::io::depth_sense::DepthSenseGrabberImpl::computeXYZ ( PointCloud< Point > &  cloud)
void pcl::io::depth_sense::DepthSenseGrabberImpl::configureColorNode ( DepthSense::ColorNode  node) const
void pcl::io::depth_sense::DepthSenseGrabberImpl::configureDepthNode ( DepthSense::DepthNode  node) const
void pcl::io::depth_sense::DepthSenseGrabberImpl::enableTemporalFiltering ( DepthSenseGrabber::TemporalFilteringType  type,
size_t  window_size 
)
float pcl::io::depth_sense::DepthSenseGrabberImpl::getFramesPerSecond ( ) const
void pcl::io::depth_sense::DepthSenseGrabberImpl::onColorDataReceived ( DepthSense::ColorNode  node,
DepthSense::ColorNode::NewSampleReceivedData  data 
)

A callback for processing color data.

It is supposed to be called from the DepthSense::Context thread that is managed by DepthSenseDeviceManager.

void pcl::io::depth_sense::DepthSenseGrabberImpl::onDepthDataReceived ( DepthSense::DepthNode  node,
DepthSense::DepthNode::NewSampleReceivedData  data 
)

A callback for processing depth data.

It is supposed to be called from the DepthSense::Context thread that is managed by DepthSenseDeviceManager.

void pcl::io::depth_sense::DepthSenseGrabberImpl::setCameraParameters ( const DepthSense::StereoCameraParameters &  parameters)
void pcl::io::depth_sense::DepthSenseGrabberImpl::setConfidenceThreshold ( int  threshold)
void pcl::io::depth_sense::DepthSenseGrabberImpl::start ( )
void pcl::io::depth_sense::DepthSenseGrabberImpl::stop ( )

Member Data Documentation

std::vector<uint8_t> pcl::io::depth_sense::DepthSenseGrabberImpl::color_data_

Temporary buffer to store color data.

Definition at line 93 of file depth_sense_grabber_impl.h.

const int pcl::io::depth_sense::DepthSenseGrabberImpl::COLOR_HEIGHT = 480
static

Definition at line 102 of file depth_sense_grabber_impl.h.

const int pcl::io::depth_sense::DepthSenseGrabberImpl::COLOR_SIZE = COLOR_WIDTH * COLOR_HEIGHT
static

Definition at line 103 of file depth_sense_grabber_impl.h.

const int pcl::io::depth_sense::DepthSenseGrabberImpl::COLOR_WIDTH = 640
static

Definition at line 101 of file depth_sense_grabber_impl.h.

int pcl::io::depth_sense::DepthSenseGrabberImpl::confidence_threshold_

Definition at line 68 of file depth_sense_grabber_impl.h.

boost::shared_ptr<pcl::io::Buffer<float> > pcl::io::depth_sense::DepthSenseGrabberImpl::depth_buffer_

Definition at line 95 of file depth_sense_grabber_impl.h.

std::string pcl::io::depth_sense::DepthSenseGrabberImpl::device_id_

Serial number of the device captured by this grabber.

Definition at line 64 of file depth_sense_grabber_impl.h.

boost::mutex pcl::io::depth_sense::DepthSenseGrabberImpl::fps_mutex_
mutable

Definition at line 90 of file depth_sense_grabber_impl.h.

const int pcl::io::depth_sense::DepthSenseGrabberImpl::FRAMERATE = 30
static

Definition at line 97 of file depth_sense_grabber_impl.h.

EventFrequency pcl::io::depth_sense::DepthSenseGrabberImpl::frequency_

Definition at line 89 of file depth_sense_grabber_impl.h.

const int pcl::io::depth_sense::DepthSenseGrabberImpl::HEIGHT = 240
static

Definition at line 99 of file depth_sense_grabber_impl.h.

bool pcl::io::depth_sense::DepthSenseGrabberImpl::is_running_

Definition at line 66 of file depth_sense_grabber_impl.h.

bool pcl::io::depth_sense::DepthSenseGrabberImpl::need_xyz_

Indicates whether there are subscribers for PointXYZ signal.

This is computed and stored on start()

Definition at line 83 of file depth_sense_grabber_impl.h.

bool pcl::io::depth_sense::DepthSenseGrabberImpl::need_xyzrgba_

Indicates whether there are subscribers for PointXYZRGBA signal.

This is computed and stored on start()

Definition at line 87 of file depth_sense_grabber_impl.h.

DepthSenseGrabber* pcl::io::depth_sense::DepthSenseGrabberImpl::p_

Parent grabber.

Definition at line 61 of file depth_sense_grabber_impl.h.

boost::signals2::signal<sig_cb_depth_sense_point_cloud_rgba>* pcl::io::depth_sense::DepthSenseGrabberImpl::point_cloud_rgba_signal_

Signal to indicate whether new XYZRGBA cloud is available.

Definition at line 79 of file depth_sense_grabber_impl.h.

boost::signals2::signal<sig_cb_depth_sense_point_cloud>* pcl::io::depth_sense::DepthSenseGrabberImpl::point_cloud_signal_

Signal to indicate whether new XYZ cloud is available.

Definition at line 77 of file depth_sense_grabber_impl.h.

boost::shared_ptr<DepthSense::ProjectionHelper> pcl::io::depth_sense::DepthSenseGrabberImpl::projection_

Definition at line 71 of file depth_sense_grabber_impl.h.

const int pcl::io::depth_sense::DepthSenseGrabberImpl::SIZE = WIDTH * HEIGHT
static

Definition at line 100 of file depth_sense_grabber_impl.h.

DepthSenseGrabber::TemporalFilteringType pcl::io::depth_sense::DepthSenseGrabberImpl::temporal_filtering_type_

Definition at line 69 of file depth_sense_grabber_impl.h.

const int pcl::io::depth_sense::DepthSenseGrabberImpl::WIDTH = 320
static

Definition at line 98 of file depth_sense_grabber_impl.h.


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