Base class for Stereo file grabber.
More...
#include <pcl/stereo/stereo_grabber.h>
|
| | StereoGrabberBase (const std::pair< std::string, std::string > &pair_files, float frames_per_second, bool repeat) |
| | Constructor taking just one Stereo pair.
|
| |
| | StereoGrabberBase (const std::vector< std::pair< std::string, std::string > > &files, float frames_per_second, bool repeat) |
| | Constructor taking a list of paths to Stereo pair files, that are played in the order they appear in the list.
|
| |
| | ~StereoGrabberBase () noexcept override |
| | Virtual destructor.
|
| |
| void | start () override |
| | Starts playing the list of Stereo images if frames_per_second is > 0.
|
| |
| void | stop () override |
| | Stops playing the list of Stereo images if frames_per_second is > 0.
|
| |
| virtual void | trigger () |
| | Triggers a callback with new data.
|
| |
| bool | isRunning () const override |
| | whether the grabber is started (publishing) or not.
|
| |
| std::string | getName () const override |
| |
| virtual void | rewind () |
| | Rewinds to the first pair of files in the list.
|
| |
| float | getFramesPerSecond () const override |
| | Returns the frames_per_second.
|
| |
| bool | isRepeatOn () const |
| | Returns whether the repeat flag is on.
|
| |
| | Grabber ()=default |
| | Default ctor.
|
| |
| | Grabber (const Grabber &)=delete |
| | No copy ctor since Grabber can't be copied.
|
| |
| Grabber & | operator= (const Grabber &)=delete |
| | No copy assign operator since Grabber can't be copied.
|
| |
| | Grabber (Grabber &&)=default |
| | Move ctor.
|
| |
| Grabber & | operator= (Grabber &&)=default |
| | Move assign operator.
|
| |
| virtual | ~Grabber () noexcept=default |
| | virtual destructor.
|
| |
| template<typename T > |
| boost::signals2::connection | registerCallback (const std::function< T > &callback) |
| | registers a callback function/method to a signal with the corresponding signature
|
| |
| template<typename T > |
| bool | providesCallback () const noexcept |
| | indicates whether a signal with given parameter-type exists or not
|
| |
| bool | toggle () |
| | For devices that are streaming, stopped streams are started and running stream are stopped.
|
| |
Base class for Stereo file grabber.
Definition at line 51 of file stereo_grabber.h.
◆ StereoGrabberBase() [1/2]
| pcl::StereoGrabberBase::StereoGrabberBase |
( |
const std::pair< std::string, std::string > & |
pair_files, |
|
|
float |
frames_per_second, |
|
|
bool |
repeat |
|
) |
| |
Constructor taking just one Stereo pair.
- Parameters
-
| [in] | pair_files | the name of the the stereo (left + right) images. |
| [in] | frames_per_second | frames per second. If 0, start() functions like a trigger, publishing the next pair in the list. |
| [in] | repeat | whether to play files in an endless loop or not. |
◆ StereoGrabberBase() [2/2]
| pcl::StereoGrabberBase::StereoGrabberBase |
( |
const std::vector< std::pair< std::string, std::string > > & |
files, |
|
|
float |
frames_per_second, |
|
|
bool |
repeat |
|
) |
| |
Constructor taking a list of paths to Stereo pair files, that are played in the order they appear in the list.
- Parameters
-
| [in] | files | vector of paths to stereo (left+right) images. |
| [in] | frames_per_second | frames per second. If 0, start() functions like a trigger, publishing the next pair in the list. |
| [in] | repeat | whether to play files in an endless loop or not. |
◆ ~StereoGrabberBase()
| pcl::StereoGrabberBase::~StereoGrabberBase |
( |
| ) |
|
|
overridenoexcept |
◆ getFramesPerSecond()
| float pcl::StereoGrabberBase::getFramesPerSecond |
( |
| ) |
const |
|
overridevirtual |
Returns the frames_per_second.
0 if grabber is trigger-based
Implements pcl::Grabber.
◆ getName()
| std::string pcl::StereoGrabberBase::getName |
( |
| ) |
const |
|
overridevirtual |
◆ isRepeatOn()
| bool pcl::StereoGrabberBase::isRepeatOn |
( |
| ) |
const |
Returns whether the repeat flag is on.
◆ isRunning()
| bool pcl::StereoGrabberBase::isRunning |
( |
| ) |
const |
|
overridevirtual |
whether the grabber is started (publishing) or not.
- Returns
- true only if publishing.
Implements pcl::Grabber.
◆ rewind()
| virtual void pcl::StereoGrabberBase::rewind |
( |
| ) |
|
|
virtual |
Rewinds to the first pair of files in the list.
◆ start()
| void pcl::StereoGrabberBase::start |
( |
| ) |
|
|
overridevirtual |
Starts playing the list of Stereo images if frames_per_second is > 0.
Otherwise it works as a trigger: publishes only the next pair in the list.
Implements pcl::Grabber.
◆ stop()
| void pcl::StereoGrabberBase::stop |
( |
| ) |
|
|
overridevirtual |
Stops playing the list of Stereo images if frames_per_second is > 0.
Otherwise the method has no effect.
Implements pcl::Grabber.
◆ trigger()
| virtual void pcl::StereoGrabberBase::trigger |
( |
| ) |
|
|
virtual |
Triggers a callback with new data.
The documentation for this class was generated from the following file: