|
| OBJReader () |
| empty constructor More...
|
|
virtual | ~OBJReader () |
| empty destructor More...
|
|
int | readHeader (const std::string &file_name, pcl::PCLPointCloud2 &cloud, Eigen::Vector4f &origin, Eigen::Quaternionf &orientation, int &file_version, int &data_type, unsigned int &data_idx, const int offset) |
| Read a point cloud data header from a FILE file. More...
|
|
int | read (const std::string &file_name, pcl::PCLPointCloud2 &cloud, Eigen::Vector4f &origin, Eigen::Quaternionf &orientation, int &file_version, const int offset=0) |
| Read a point cloud data from a FILE file and store it into a pcl/PCLPointCloud2. More...
|
|
int | read (const std::string &file_name, pcl::PCLPointCloud2 &cloud, const int offset=0) |
| Read a point cloud data from a FILE file and store it into a pcl/PCLPointCloud2. More...
|
|
int | read (const std::string &file_name, pcl::TextureMesh &mesh, Eigen::Vector4f &origin, Eigen::Quaternionf &orientation, int &file_version, const int offset=0) |
| Read a point cloud data from a FILE file and store it into a pcl/TextureMesh. More...
|
|
int | read (const std::string &file_name, pcl::TextureMesh &mesh, const int offset=0) |
| Read a point cloud data from a FILE file and store it into a pcl/TextureMesh. More...
|
|
int | read (const std::string &file_name, pcl::PolygonMesh &mesh, Eigen::Vector4f &origin, Eigen::Quaternionf &orientation, int &file_version, const int offset=0) |
| Read a point cloud data from a FILE file and store it into a pcl/PolygonMesh. More...
|
|
int | read (const std::string &file_name, pcl::PolygonMesh &mesh, const int offset=0) |
| Read a point cloud data from a FILE file and store it into a pcl/PolygonMesh. More...
|
|
template<typename PointT > |
int | read (const std::string &file_name, pcl::PointCloud< PointT > &cloud, const int offset=0) |
| Read a point cloud data from any FILE file, and convert it to the given template format. More...
|
|
| FileReader () |
| empty constructor More...
|
|
virtual | ~FileReader () |
| empty destructor More...
|
|
int | read (const std::string &file_name, pcl::PCLPointCloud2 &cloud, const int offset=0) |
| Read a point cloud data from a FILE file (FILE_V6 only!) and store it into a pcl/PCLPointCloud2. More...
|
|
template<typename PointT > |
int | read (const std::string &file_name, pcl::PointCloud< PointT > &cloud, const int offset=0) |
| Read a point cloud data from any FILE file, and convert it to the given template format. More...
|
|
Definition at line 92 of file obj_io.h.
template<typename PointT >
int pcl::OBJReader::read |
( |
const std::string & |
file_name, |
|
|
pcl::PointCloud< PointT > & |
cloud, |
|
|
const int |
offset = 0 |
|
) |
| |
|
inline |
Read a point cloud data from any FILE file, and convert it to the given template format.
- Parameters
-
[in] | file_name | the name of the file containing the actual PointCloud data |
[out] | cloud | the resultant PointCloud message read from disk |
[in] | offset | the offset in the file where to expect the true header to begin. One usage example for setting the offset parameter is for reading data from a TAR "archive containing multiple 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). |
Definition at line 231 of file obj_io.h.
References pcl::fromPCLPointCloud2(), pcl::read(), pcl::PointCloud< T >::sensor_orientation_, and pcl::PointCloud< T >::sensor_origin_.
int pcl::OBJReader::readHeader |
( |
const std::string & |
file_name, |
|
|
pcl::PCLPointCloud2 & |
cloud, |
|
|
Eigen::Vector4f & |
origin, |
|
|
Eigen::Quaternionf & |
orientation, |
|
|
int & |
file_version, |
|
|
int & |
data_type, |
|
|
unsigned int & |
data_idx, |
|
|
const int |
offset |
|
) |
| |
|
virtual |
Read a point cloud data header from a FILE file.
Load only the meta information (number of points, their types, etc), and not the points themselves, from a given FILE file. Useful for fast evaluation of the underlying data structure.
- Parameters
-
[in] | file_name | the name of the file containing the actual PointCloud data |
[out] | cloud | the resultant PointCloud message read from disk |
[out] | origin | the sensor acquisition origin always null |
[out] | orientation | the sensor acquisition orientation always identity |
[out] | file_version | always 0 |
| data_type | |
| data_idx | |
[in] | offset | the offset in the file where to expect the true header to begin. One usage example for setting the offset parameter is for reading data from a TAR "archive containing multiple 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). |
- Returns
- 0 on success.
Implements pcl::FileReader.