|
Point Cloud Library (PCL)
1.7.2
|
Grabber interface for PCL 1.x device drivers. More...
#include <pcl/io/grabber.h>
Inheritance diagram for pcl::Grabber:Public Member Functions | |
| 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... | |
| virtual void | start ()=0 |
| For devices that are streaming, the streams are started by calling this method. More... | |
| virtual void | stop ()=0 |
| For devices that are streaming, the streams are stopped. More... | |
| virtual std::string | getName () const =0 |
| returns the name of the concrete subclass. More... | |
| virtual bool | isRunning () const =0 |
| Indicates whether the grabber is streaming or not. More... | |
| virtual float | getFramesPerSecond () const =0 |
| returns fps. More... | |
Protected Member Functions | |
| 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 () |
Protected Attributes | |
| std::map< std::string, boost::signals2::signal_base * > | signals_ |
| std::map< std::string, std::vector < boost::signals2::connection > > | connections_ |
| std::map< std::string, std::vector < boost::signals2::shared_connection_block > > | shared_connections_ |
|
inlinevirtual | |||||||||||||
|
protected |
Definition at line 174 of file grabber.h.
References connections_, and shared_connections_.
|
inlineprotected |
Definition at line 190 of file grabber.h.
References shared_connections_, and signals_.
|
protected |
|
protected |
|
protected |
|
pure virtual |
returns fps.
0 if trigger based.
Implemented in pcl::HDLGrabber, pcl::OpenNIGrabber, pcl::PCDGrabberBase, pcl::ImageGrabberBase, pcl::ONIGrabber, pcl::PXCGrabber, pcl::DinastGrabber, and pcl::RobotEyeGrabber.
|
pure virtual |
returns the name of the concrete subclass.
Implemented in pcl::HDLGrabber, pcl::OpenNIGrabber, pcl::PCDGrabberBase, pcl::ImageGrabberBase, pcl::PXCGrabber, pcl::ONIGrabber, pcl::RobotEyeGrabber, and pcl::DinastGrabber.
Referenced by registerCallback().
|
pure virtual |
Indicates whether the grabber is streaming or not.
This value is not defined for triggered devices.
Implemented in pcl::HDLGrabber, pcl::OpenNIGrabber, pcl::ONIGrabber, pcl::PCDGrabberBase, pcl::ImageGrabberBase, pcl::PXCGrabber, pcl::RobotEyeGrabber, and pcl::DinastGrabber.
|
protected |
| bool pcl::Grabber::providesCallback | ( | ) | const |
| boost::signals2::connection pcl::Grabber::registerCallback | ( | const boost::function< T > & | callback | ) |
registers a callback function/method to a signal with the corresponding signature
| [in] | callback,: | the callback function/method |
Definition at line 235 of file grabber.h.
References connections_, getName(), shared_connections_, signals_, and signalsChanged().
|
inlineprotectedvirtual |
Reimplemented in pcl::OpenNIGrabber.
Definition at line 112 of file grabber.h.
Referenced by registerCallback().
|
pure 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.
Implemented in pcl::HDLGrabber, pcl::OpenNIGrabber, pcl::PXCGrabber, pcl::PCDGrabberBase, pcl::ONIGrabber, pcl::ImageGrabberBase, pcl::DinastGrabber, and pcl::RobotEyeGrabber.
|
pure virtual |
For devices that are streaming, the streams are stopped.
This method has no effect for triggered devices.
Implemented in pcl::HDLGrabber, pcl::OpenNIGrabber, pcl::ONIGrabber, pcl::PXCGrabber, pcl::PCDGrabberBase, pcl::ImageGrabberBase, pcl::DinastGrabber, and pcl::RobotEyeGrabber.
|
protected |
Definition at line 182 of file grabber.h.
References connections_, and shared_connections_.
|
inlineprotected |
Definition at line 198 of file grabber.h.
References shared_connections_, and signals_.
|
protected |
Definition at line 139 of file grabber.h.
Referenced by block_signal(), registerCallback(), and unblock_signal().
|
protected |
Definition at line 140 of file grabber.h.
Referenced by block_signal(), block_signals(), registerCallback(), unblock_signal(), and unblock_signals().
|
protected |
Definition at line 138 of file grabber.h.
Referenced by block_signals(), createSignal(), disconnect_all_slots(), find_signal(), num_slots(), providesCallback(), registerCallback(), unblock_signals(), and ~Grabber().