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