Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
icl::geom::PCDFileGrabber Class Reference

#include <PCDFileGrabber.h>

Inheritance diagram for icl::geom::PCDFileGrabber:
icl::geom::PointCloudGrabber icl::utils::Configurable

List of all members.

Public Member Functions

 PCDFileGrabber ()
 Default constructor.
 PCDFileGrabber (const std::string &filepattern, bool loop=true, bool forceExactPCLType=false, const int offset=0)
 creates a new PCD file grabber instance
virtual ~PCDFileGrabber () throw ()
 creates a new PCD file grabber instance TODO: ganz raus!
virtual void grab (PointCloudObjectBase &dst)
 grab implementation

Private Member Functions

std::vector< std::string > getFields () const
 Help function to extract the pointtype in the loaded file header.

Private Attributes

Data * m_data

Constructor & Destructor Documentation

Default constructor.

icl::geom::PCDFileGrabber::PCDFileGrabber ( const std::string &  filepattern,
bool  loop = true,
bool  forceExactPCLType = false,
const int  offset = 0 
)

creates a new PCD file grabber instance

Parameters:
filenameto be grabbed PCD file name or file pattern. (e.g. files/ *.pcd)
repeatspecifies whether to play PCD file in an endless loop or not.
timestamptime stamp to render the files.
forceExactPCLTypeif this flag is set to true, the PointCloudObjectBase-reference given to grab must have exactly the same fiels as the pcl-file
offsetSimilar to the offset variable in the file pcd_io.h.

Comment from pcl: offset of where to expect the PCD Header in the file (optional parameter). One usage example for setting the offset parameter is for reading data from a TAR "archive containing multiple PCD files: TAR files always add a 512 byte header in front of the actual file, so set the offset to the next byte after the header (e.g., 513).

TODO: timestampe und timestamp feature raus!

virtual icl::geom::PCDFileGrabber::~PCDFileGrabber ( ) throw () [virtual]

creates a new PCD file grabber instance TODO: ganz raus!

Parameters:
filenameto be grabbed PCD file name or file pattern. (e.g. files/ *.pcd)
offsetSimilar to the offset variable in the file pcd_io.h. Here repeat is always true and timestamp is 0 Destructor

Member Function Documentation

std::vector<std::string> icl::geom::PCDFileGrabber::getFields ( ) const [private]

Help function to extract the pointtype in the loaded file header.

Its return as string with the point type. E.g.: Pointxyz

virtual void icl::geom::PCDFileGrabber::grab ( PointCloudObjectBase dst) [virtual]

grab implementation

Implements icl::geom::PointCloudGrabber.


Member Data Documentation


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