Image Component Library (ICL)
|
#include <PCDFileGrabber.h>
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 |
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
filename | to be grabbed PCD file name or file pattern. (e.g. files/ *.pcd) |
repeat | specifies whether to play PCD file in an endless loop or not. |
timestamp | time stamp to render the files. |
forceExactPCLType | if this flag is set to true, the PointCloudObjectBase-reference given to grab must have exactly the same fiels as the pcl-file |
offset | Similar 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!
filename | to be grabbed PCD file name or file pattern. (e.g. files/ *.pcd) |
offset | Similar to the offset variable in the file pcd_io.h. Here repeat is always true and timestamp is 0 Destructor |
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.
Data* icl::geom::PCDFileGrabber::m_data [private] |