Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
pcl::PCDGrabber< PointT > Class Template Reference

#include <pcl/io/pcd_grabber.h>

Inheritance diagram for pcl::PCDGrabber< PointT >:
Inheritance graph
[legend]
Collaboration diagram for pcl::PCDGrabber< PointT >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PCDGrabber (const std::string &pcd_path, float frames_per_second=0, bool repeat=false)
 PCDGrabber (const std::vector< std::string > &pcd_files, float frames_per_second=0, bool repeat=false)
virtual void start ()
 Starts playing the list of PCD files if frames_per_second is > 0.
virtual void stop ()
 Stops playing the list of PCD files if frames_per_second is > 0.
virtual void trigger ()
 Triggers a callback with new data.
virtual bool isRunning () const
 whether the grabber is started (publishing) or not.
virtual std::string getName () const
virtual void rewind ()
 Rewinds to the first PCD file in the list.
virtual float getFramesPerSecond () const
 Returns the frames_per_second.
bool isRepeatOn () const
 Returns whether the repeat flag is on.
template<typename T >
boost::signals2::connection registerCallback (const boost::function< T > &callback)
 registers a callback function/method to a signal with the corresponding signature
template<typename T >
bool providesCallback () const
 indicates whether a signal with given parameter-type exists or not

Detailed Description

template<typename PointT>
class pcl::PCDGrabber< PointT >

Definition at line 141 of file pcd_grabber.h.


Constructor & Destructor Documentation

template<typename PointT >
pcl::PCDGrabber< PointT >::PCDGrabber ( const std::string &  pcd_path,
float  frames_per_second = 0,
bool  repeat = false 
)

Definition at line 159 of file pcd_grabber.h.

template<typename PointT >
pcl::PCDGrabber< PointT >::PCDGrabber ( const std::vector< std::string > &  pcd_files,
float  frames_per_second = 0,
bool  repeat = false 
)

Definition at line 170 of file pcd_grabber.h.


Member Function Documentation

virtual float pcl::PCDGrabberBase::getFramesPerSecond ( ) const [virtual, inherited]

Returns the frames_per_second.

0 if grabber is trigger-based

Implements pcl::Grabber.

virtual std::string pcl::PCDGrabberBase::getName ( ) const [virtual, inherited]
Returns:
The name of the grabber

Implements pcl::Grabber.

bool pcl::PCDGrabberBase::isRepeatOn ( ) const [inherited]

Returns whether the repeat flag is on.

virtual bool pcl::PCDGrabberBase::isRunning ( ) const [virtual, inherited]

whether the grabber is started (publishing) or not.

Returns:
true only if publishing.

Implements pcl::Grabber.

template<typename T >
bool pcl::Grabber::providesCallback ( ) const [inherited]

indicates whether a signal with given parameter-type exists or not

Returns:
true if signal exists, false otherwise

Definition at line 265 of file grabber.h.

template<typename T >
boost::signals2::connection pcl::Grabber::registerCallback ( const boost::function< T > &  callback) [inherited]

registers a callback function/method to a signal with the corresponding signature

Parameters:
[in]callback,:the callback function/method
Returns:
Connection object, that can be used to disconnect the callback method from the signal again.

Definition at line 236 of file grabber.h.

virtual void pcl::PCDGrabberBase::rewind ( ) [virtual, inherited]

Rewinds to the first PCD file in the list.

virtual void pcl::PCDGrabberBase::start ( ) [virtual, inherited]

Starts playing the list of PCD files if frames_per_second is > 0.

Otherwise it works as a trigger: publishes only the next PCD file in the list.

Implements pcl::Grabber.

virtual void pcl::PCDGrabberBase::stop ( ) [virtual, inherited]

Stops playing the list of PCD files if frames_per_second is > 0.

Otherwise the method has no effect.

Implements pcl::Grabber.

virtual void pcl::PCDGrabberBase::trigger ( ) [virtual, inherited]

Triggers a callback with new data.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines