Point Cloud Library (PCL)
1.3.1
|
Point Cloud Data (FILE) file format writer. More...
#include <pcl/io/file_io.h>
Public Member Functions | |
FileWriter () | |
empty constructor | |
virtual | ~FileWriter () |
empty destructor | |
virtual int | write (const std::string &file_name, const sensor_msgs::PointCloud2 &cloud, const Eigen::Vector4f &origin=Eigen::Vector4f::Zero(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf::Identity(), const bool binary=false)=0 |
Save point cloud data to a FILE file containing n-D points. | |
int | write (const std::string &file_name, const sensor_msgs::PointCloud2::ConstPtr &cloud, const Eigen::Vector4f &origin=Eigen::Vector4f::Zero(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf::Identity(), const bool binary=false) |
Save point cloud data to a FILE file containing n-D points. | |
template<typename PointT > | |
int | write (const std::string &file_name, const pcl::PointCloud< PointT > &cloud, const bool binary=false) |
Save point cloud data to a FILE file containing n-D points. |
Point Cloud Data (FILE) file format writer.
Any (FILE) format file reader should implement its virtual methodes
pcl::FileWriter::FileWriter | ( | ) | [inline] |
virtual pcl::FileWriter::~FileWriter | ( | ) | [inline, virtual] |
virtual int pcl::FileWriter::write | ( | const std::string & | file_name, |
const sensor_msgs::PointCloud2 & | cloud, | ||
const Eigen::Vector4f & | origin = Eigen::Vector4f::Zero() , |
||
const Eigen::Quaternionf & | orientation = Eigen::Quaternionf::Identity() , |
||
const bool | binary = false |
||
) | [pure virtual] |
Save point cloud data to a FILE file containing n-D points.
file_name | the output file name |
cloud | the point cloud data message |
origin | the sensor acquisition origin |
orientation | the sensor acquisition orientation |
binary | set to true if the file is to be written in a binary FILE format, false (default) for ASCII |
Implemented in pcl::PCDWriter, and pcl::PLYWriter.
int pcl::FileWriter::write | ( | const std::string & | file_name, |
const sensor_msgs::PointCloud2::ConstPtr & | cloud, | ||
const Eigen::Vector4f & | origin = Eigen::Vector4f::Zero () , |
||
const Eigen::Quaternionf & | orientation = Eigen::Quaternionf::Identity () , |
||
const bool | binary = false |
||
) | [inline] |
Save point cloud data to a FILE file containing n-D points.
file_name | the output file name |
cloud | the point cloud data message (boost shared pointer) |
binary | set to true if the file is to be written in a binary FILE format, false (default) for ASCII |
origin | the sensor acquisition origin |
orientation | the sensor acquisition orientation |
Reimplemented in pcl::PCDWriter, and pcl::PLYWriter.
int pcl::FileWriter::write | ( | const std::string & | file_name, |
const pcl::PointCloud< PointT > & | cloud, | ||
const bool | binary = false |
||
) | [inline] |
Save point cloud data to a FILE file containing n-D points.
file_name | the output file name |
cloud | the pcl::PointCloud data |
binary | set to true if the file is to be written in a binary FILE format, false (default) for ASCII |
Reimplemented in pcl::PCDWriter, and pcl::PLYWriter.