41 #include <pcl/io/buffers.h>
42 #include <pcl/io/depth_sense_grabber.h>
44 #include <DepthSense.hxx>
148 template <typename Point>
void
Grabber for DepthSense devices (e.g.
void(const pcl::PointCloud< pcl::PointXYZ >::ConstPtr &) sig_cb_depth_sense_point_cloud
void(const pcl::PointCloud< pcl::PointXYZRGBA >::ConstPtr &) sig_cb_depth_sense_point_cloud_rgba
A helper class to measure frequency of a certain event.
PointCloud represents the base class in PCL for storing collections of 3D points.
Define methods for measuring time spent in code blocks.
DepthSenseGrabber::sig_cb_depth_sense_point_cloud_rgba sig_cb_depth_sense_point_cloud_rgba
float getFramesPerSecond() const
bool need_xyzrgba_
Indicates whether there are subscribers for PointXYZRGBA signal.
boost::signals2::signal< sig_cb_depth_sense_point_cloud > * point_cloud_signal_
Signal to indicate whether new XYZ cloud is available.
EventFrequency frequency_
void configureColorNode(DepthSense::ColorNode node) const
void onDepthDataReceived(DepthSense::DepthNode node, DepthSense::DepthNode::NewSampleReceivedData data)
A callback for processing depth data.
int confidence_threshold_
~DepthSenseGrabberImpl() noexcept
std::vector< std::uint8_t > color_data_
Temporary buffer to store color data.
void enableTemporalFiltering(DepthSenseGrabber::TemporalFilteringType type, std::size_t window_size)
DepthSenseGrabber * p_
Parent grabber.
void setCameraParameters(const DepthSense::StereoCameraParameters ¶meters)
std::string device_id_
Serial number of the device captured by this grabber.
std::shared_ptr< pcl::io::Buffer< float > > depth_buffer_
bool need_xyz_
Indicates whether there are subscribers for PointXYZ signal.
DepthSenseGrabber::sig_cb_depth_sense_point_cloud sig_cb_depth_sense_point_cloud
void onColorDataReceived(DepthSense::ColorNode node, DepthSense::ColorNode::NewSampleReceivedData data)
A callback for processing color data.
void setConfidenceThreshold(int threshold)
static const int FRAMERATE
boost::signals2::signal< sig_cb_depth_sense_point_cloud_rgba > * point_cloud_rgba_signal_
Signal to indicate whether new XYZRGBA cloud is available.
static const int COLOR_HEIGHT
void computeXYZ(PointCloud< Point > &cloud)
static const int COLOR_WIDTH
static const int COLOR_SIZE
DepthSenseGrabber::TemporalFilteringType temporal_filtering_type_
std::shared_ptr< DepthSense::ProjectionHelper > projection_
void configureDepthNode(DepthSense::DepthNode node) const
DepthSenseGrabberImpl(DepthSenseGrabber *parent, const std::string &device_id)