Point Cloud Library (PCL)
1.8.1
|
A simple ONI grabber. More...
#include <pcl/io/oni_grabber.h>
Public Types | |
typedef void() | sig_cb_openni_image(const boost::shared_ptr< openni_wrapper::Image > &) |
typedef void() | sig_cb_openni_depth_image(const boost::shared_ptr< openni_wrapper::DepthImage > &) |
typedef void() | sig_cb_openni_ir_image(const boost::shared_ptr< openni_wrapper::IRImage > &) |
typedef void() | sig_cb_openni_image_depth_image(const boost::shared_ptr< openni_wrapper::Image > &, const boost::shared_ptr< openni_wrapper::DepthImage > &, float constant) |
typedef void() | sig_cb_openni_ir_depth_image(const boost::shared_ptr< openni_wrapper::IRImage > &, const boost::shared_ptr< openni_wrapper::DepthImage > &, float constant) |
typedef void() | sig_cb_openni_point_cloud(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZ > > &) |
typedef void() | sig_cb_openni_point_cloud_rgb(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZRGB > > &) |
typedef void() | sig_cb_openni_point_cloud_rgba(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZRGBA > > &) |
typedef void() | sig_cb_openni_point_cloud_i(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZI > > &) |
Public Member Functions | |
ONIGrabber (const std::string &file_name, bool repeat, bool stream) | |
constuctor More... | |
virtual | ~ONIGrabber () throw () |
destructor never throws an exception More... | |
virtual void | start () |
For devices that are streaming, the streams are started by calling this method. More... | |
virtual void | stop () |
For devices that are streaming, the streams are stopped. More... | |
virtual std::string | getName () const |
returns the name of the concrete subclass. More... | |
virtual bool | isRunning () const |
Indicates whether the grabber is streaming or not. More... | |
virtual float | getFramesPerSecond () const |
returns the frames pre second. More... | |
bool | hasDataLeft () |
Check if there is any data left in the ONI file to process. More... | |
![]() | |
Grabber () | |
Constructor. More... | |
virtual | ~Grabber () throw () |
virtual desctructor. More... | |
template<typename T > | |
boost::signals2::connection | registerCallback (const boost::function< T > &callback) |
registers a callback function/method to a signal with the corresponding signature More... | |
template<typename T > | |
bool | providesCallback () const |
indicates whether a signal with given parameter-type exists or not More... | |
Protected Member Functions | |
void | imageCallback (boost::shared_ptr< openni_wrapper::Image > image, void *cookie) |
internal OpenNI (openni_wrapper) callback that handles image streams More... | |
void | depthCallback (boost::shared_ptr< openni_wrapper::DepthImage > depth_image, void *cookie) |
internal OpenNI (openni_wrapper) callback that handles depth streams More... | |
void | irCallback (boost::shared_ptr< openni_wrapper::IRImage > ir_image, void *cookie) |
internal OpenNI (openni_wrapper) callback that handles IR streams More... | |
void | imageDepthImageCallback (const boost::shared_ptr< openni_wrapper::Image > &image, const boost::shared_ptr< openni_wrapper::DepthImage > &depth_image) |
internal callback that handles synchronized image + depth streams More... | |
void | irDepthImageCallback (const boost::shared_ptr< openni_wrapper::IRImage > &image, const boost::shared_ptr< openni_wrapper::DepthImage > &depth_image) |
internal callback that handles synchronized IR + depth streams More... | |
boost::shared_ptr< pcl::PointCloud< pcl::PointXYZ > > | convertToXYZPointCloud (const boost::shared_ptr< openni_wrapper::DepthImage > &depth) const |
internal method to assemble a point cloud object More... | |
boost::shared_ptr< pcl::PointCloud< pcl::PointXYZRGB > > | convertToXYZRGBPointCloud (const boost::shared_ptr< openni_wrapper::Image > &image, const boost::shared_ptr< openni_wrapper::DepthImage > &depth_image) const |
internal method to assemble a point cloud object More... | |
boost::shared_ptr< pcl::PointCloud< pcl::PointXYZRGBA > > | convertToXYZRGBAPointCloud (const boost::shared_ptr< openni_wrapper::Image > &image, const boost::shared_ptr< openni_wrapper::DepthImage > &depth_image) const |
internal method to assemble a point cloud object More... | |
boost::shared_ptr< pcl::PointCloud< pcl::PointXYZI > > | convertToXYZIPointCloud (const boost::shared_ptr< openni_wrapper::IRImage > &image, const boost::shared_ptr< openni_wrapper::DepthImage > &depth_image) const |
internal method to assemble a point cloud object More... | |
![]() | |
virtual void | signalsChanged () |
template<typename T > | |
boost::signals2::signal< T > * | find_signal () const |
template<typename T > | |
int | num_slots () const |
template<typename T > | |
void | disconnect_all_slots () |
template<typename T > | |
void | block_signal () |
template<typename T > | |
void | unblock_signal () |
void | block_signals () |
void | unblock_signals () |
template<typename T > | |
boost::signals2::signal< T > * | createSignal () |
A simple ONI grabber.
Definition at line 73 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_depth_image(const boost::shared_ptr< openni_wrapper::DepthImage > &) |
Definition at line 78 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_image(const boost::shared_ptr< openni_wrapper::Image > &) |
Definition at line 77 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_image_depth_image(const boost::shared_ptr< openni_wrapper::Image > &, const boost::shared_ptr< openni_wrapper::DepthImage > &, float constant) |
Definition at line 80 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_ir_depth_image(const boost::shared_ptr< openni_wrapper::IRImage > &, const boost::shared_ptr< openni_wrapper::DepthImage > &, float constant) |
Definition at line 81 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_ir_image(const boost::shared_ptr< openni_wrapper::IRImage > &) |
Definition at line 79 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_point_cloud(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZ > > &) |
Definition at line 82 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_point_cloud_i(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZI > > &) |
Definition at line 85 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_point_cloud_rgb(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZRGB > > &) |
Definition at line 83 of file oni_grabber.h.
typedef void() pcl::ONIGrabber::sig_cb_openni_point_cloud_rgba(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZRGBA > > &) |
Definition at line 84 of file oni_grabber.h.
pcl::ONIGrabber::ONIGrabber | ( | const std::string & | file_name, |
bool | repeat, | ||
bool | stream | ||
) |
constuctor
[in] | file_name | the path to the ONI file |
[in] | repeat | whether the play back should be in an infinite loop or not |
[in] | stream | whether the playback should be in streaming mode or in triggered mode. |
|
virtual |
destructor never throws an exception
|
protected |
internal method to assemble a point cloud object
|
protected |
internal method to assemble a point cloud object
|
protected |
internal method to assemble a point cloud object
|
protected |
internal method to assemble a point cloud object
|
protected |
internal OpenNI (openni_wrapper) callback that handles depth streams
|
virtual |
|
virtual |
returns the name of the concrete subclass.
Implements pcl::Grabber.
|
inline |
Check if there is any data left in the ONI file to process.
Definition at line 127 of file oni_grabber.h.
|
protected |
internal OpenNI (openni_wrapper) callback that handles image streams
|
protected |
internal callback that handles synchronized image + depth streams
|
protected |
internal OpenNI (openni_wrapper) callback that handles IR streams
|
protected |
internal callback that handles synchronized IR + depth streams
|
virtual |
Indicates whether the grabber is streaming or not.
This value is not defined for triggered devices.
Implements pcl::Grabber.
|
virtual |
For devices that are streaming, the streams are started by calling this method.
Trigger-based devices, just trigger the device once for each call of start.
Implements pcl::Grabber.
|
virtual |
For devices that are streaming, the streams are stopped.
This method has no effect for triggered devices.
Implements pcl::Grabber.
|
protected |
Definition at line 189 of file oni_grabber.h.
|
protected |
Definition at line 183 of file oni_grabber.h.
|
protected |
Definition at line 188 of file oni_grabber.h.
|
protected |
Definition at line 193 of file oni_grabber.h.
|
protected |
Definition at line 187 of file oni_grabber.h.
|
protected |
the actual openni device
Definition at line 181 of file oni_grabber.h.
|
protected |
Definition at line 190 of file oni_grabber.h.
|
protected |
Definition at line 195 of file oni_grabber.h.
|
protected |
Definition at line 186 of file oni_grabber.h.
|
protected |
Definition at line 192 of file oni_grabber.h.
|
protected |
Definition at line 185 of file oni_grabber.h.
|
protected |
Definition at line 191 of file oni_grabber.h.
|
protected |
Definition at line 196 of file oni_grabber.h.
|
protected |
Definition at line 194 of file oni_grabber.h.
|
protected |
synchronizer object to synchronize IR and depth streams
Definition at line 178 of file oni_grabber.h.
|
protected |
Definition at line 198 of file oni_grabber.h.
|
protected |
Definition at line 199 of file oni_grabber.h.
|
protected |
Definition at line 200 of file oni_grabber.h.
|
protected |
Definition at line 197 of file oni_grabber.h.
|
protected |
Definition at line 182 of file oni_grabber.h.
|
protected |
synchronizer object to synchronize image and depth streams
Definition at line 175 of file oni_grabber.h.
|
protected |
Definition at line 184 of file oni_grabber.h.