Public Member Functions

pcl::PCDGrabberBase Class Reference
[Module io]

Base class for PCD file grabber. More...

#include <pcl/io/pcd_grabber.h>

Inheritance diagram for pcl::PCDGrabberBase:
Inheritance graph
[legend]
Collaboration diagram for pcl::PCDGrabberBase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PCDGrabberBase (const std::string &pcd_file, float frames_per_second, bool repeat)
 Constuctor taking just one PCD file.
 PCDGrabberBase (const std::vector< std::string > &pcd_files, float frames_per_second, bool repeat)
 Constuctor taking a list of paths to PCD files, that are played in the order the appear in the list.
virtual ~PCDGrabberBase ()
 virtual destructor
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 bool isRunning () const
 wheter the grabber is started (publishing) or not.
virtual std::string getName () const
virtual void rewind ()
 rewinds to the first PCD file in the list.

Detailed Description

Base class for PCD file grabber.

Definition at line 55 of file pcd_grabber.h.


Constructor & Destructor Documentation

pcl::PCDGrabberBase::PCDGrabberBase ( const std::string &  pcd_file,
float  frames_per_second,
bool  repeat 
)

Constuctor taking just one PCD file.

Parameters:
pcd_file path to the PCD file
frames_per_second frames per second. If 0, start() functions like a trigger, publishing the next PCD in the list.
repeat wheter to play PCD file in an endless lopp or not.
pcl::PCDGrabberBase::PCDGrabberBase ( const std::vector< std::string > &  pcd_files,
float  frames_per_second,
bool  repeat 
)

Constuctor taking a list of paths to PCD files, that are played in the order the appear in the list.

Parameters:
pcd_files vector of paths to PCD files.
frames_per_second frames per second. If 0, start() functions like a trigger, publishing the next PCD in the list.
repeat wheter to play PCD file in an endless lopp or not.
virtual pcl::PCDGrabberBase::~PCDGrabberBase (  )  [virtual]

virtual destructor


Member Function Documentation

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

Implements pcl::Grabber.

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

wheter the grabber is started (publishing) or not.

Returns:
true only if publishing.

Implements pcl::Grabber.

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

rewinds to the first PCD file in the list.

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

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]

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

Otherwise the method has no effect.

Implements pcl::Grabber.


The documentation for this class was generated from the following file: