Point Cloud Library (PCL)
1.14.1-dev
|
#include <pcl/io/depth_sense/depth_sense_grabber_impl.h>
Public Member Functions | |
DepthSenseGrabberImpl (DepthSenseGrabber *parent, const std::string &device_id) | |
~DepthSenseGrabberImpl () noexcept | |
void | start () |
void | stop () |
float | getFramesPerSecond () const |
void | setConfidenceThreshold (int threshold) |
void | enableTemporalFiltering (DepthSenseGrabber::TemporalFilteringType type, std::size_t window_size) |
void | setCameraParameters (const DepthSense::StereoCameraParameters ¶meters) |
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 | |
DepthSenseGrabber * | p_ |
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_ |
std::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_ |
std::mutex | fps_mutex_ |
std::vector< std::uint8_t > | color_data_ |
Temporary buffer to store color data. More... | |
std::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 |
Definition at line 58 of file depth_sense_grabber_impl.h.
using pcl::io::depth_sense::DepthSenseGrabberImpl::sig_cb_depth_sense_point_cloud = DepthSenseGrabber::sig_cb_depth_sense_point_cloud |
Definition at line 74 of file depth_sense_grabber_impl.h.
using pcl::io::depth_sense::DepthSenseGrabberImpl::sig_cb_depth_sense_point_cloud_rgba = DepthSenseGrabber::sig_cb_depth_sense_point_cloud_rgba |
Definition at line 75 of file depth_sense_grabber_impl.h.
pcl::io::depth_sense::DepthSenseGrabberImpl::DepthSenseGrabberImpl | ( | DepthSenseGrabber * | parent, |
const std::string & | device_id | ||
) |
|
noexcept |
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, |
std::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 | ( | ) |
std::vector<std::uint8_t> pcl::io::depth_sense::DepthSenseGrabberImpl::color_data_ |
Temporary buffer to store color data.
Definition at line 94 of file depth_sense_grabber_impl.h.
|
static |
Definition at line 103 of file depth_sense_grabber_impl.h.
|
static |
Definition at line 104 of file depth_sense_grabber_impl.h.
|
static |
Definition at line 102 of file depth_sense_grabber_impl.h.
int pcl::io::depth_sense::DepthSenseGrabberImpl::confidence_threshold_ |
Definition at line 69 of file depth_sense_grabber_impl.h.
std::shared_ptr<pcl::io::Buffer<float> > pcl::io::depth_sense::DepthSenseGrabberImpl::depth_buffer_ |
Definition at line 96 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 65 of file depth_sense_grabber_impl.h.
|
mutable |
Definition at line 91 of file depth_sense_grabber_impl.h.
|
static |
Definition at line 98 of file depth_sense_grabber_impl.h.
EventFrequency pcl::io::depth_sense::DepthSenseGrabberImpl::frequency_ |
Definition at line 90 of file depth_sense_grabber_impl.h.
|
static |
Definition at line 100 of file depth_sense_grabber_impl.h.
bool pcl::io::depth_sense::DepthSenseGrabberImpl::is_running_ |
Definition at line 67 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 84 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 88 of file depth_sense_grabber_impl.h.
DepthSenseGrabber* pcl::io::depth_sense::DepthSenseGrabberImpl::p_ |
Parent grabber.
Definition at line 62 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 80 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 78 of file depth_sense_grabber_impl.h.
std::shared_ptr<DepthSense::ProjectionHelper> pcl::io::depth_sense::DepthSenseGrabberImpl::projection_ |
Definition at line 72 of file depth_sense_grabber_impl.h.
Definition at line 101 of file depth_sense_grabber_impl.h.
DepthSenseGrabber::TemporalFilteringType pcl::io::depth_sense::DepthSenseGrabberImpl::temporal_filtering_type_ |
Definition at line 70 of file depth_sense_grabber_impl.h.
|
static |
Definition at line 99 of file depth_sense_grabber_impl.h.