|
Point Cloud Library (PCL)
1.6.0
|
Point Cloud Data (PLY) file format writer. More...
#include <pcl/io/ply_io.h>


Public Member Functions | |
| PLYWriter () | |
| Constructor. | |
| ~PLYWriter () | |
| Destructor. | |
| std::string | generateHeaderBinary (const sensor_msgs::PointCloud2 &cloud, const Eigen::Vector4f &origin, const Eigen::Quaternionf &orientation, int valid_points, bool use_camera=true) |
| Generate the header of a PLY v.7 file format. | |
| std::string | generateHeaderASCII (const sensor_msgs::PointCloud2 &cloud, const Eigen::Vector4f &origin, const Eigen::Quaternionf &orientation, int valid_points, bool use_camera=true) |
| Generate the header of a PLY v.7 file format. | |
| int | writeASCII (const std::string &file_name, const sensor_msgs::PointCloud2 &cloud, const Eigen::Vector4f &origin=Eigen::Vector4f::Zero(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf::Identity(), int precision=8, bool use_camera=true) |
| Save point cloud data to a PLY file containing n-D points, in ASCII format. | |
| int | writeBinary (const std::string &file_name, const sensor_msgs::PointCloud2 &cloud, const Eigen::Vector4f &origin=Eigen::Vector4f::Zero(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf::Identity()) |
| Save point cloud data to a PLY file containing n-D points, in BINARY format. | |
| 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) |
| Save point cloud data to a PLY file containing n-D points. | |
| 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(), bool binary=false, bool use_camera=true) |
| Save point cloud data to a PLY 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(), bool binary=false, bool use_camera=true) |
| Save point cloud data to a PLY file containing n-D points. | |
| template<typename PointT > | |
| int | write (const std::string &file_name, const pcl::PointCloud< PointT > &cloud, bool binary=false, bool use_camera=true) |
| Save point cloud data to a PLY 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. | |
| pcl::PLYWriter::PLYWriter | ( | ) | [inline] |
| pcl::PLYWriter::~PLYWriter | ( | ) | [inline] |
| std::string pcl::PLYWriter::generateHeaderASCII | ( | const sensor_msgs::PointCloud2 & | cloud, |
| const Eigen::Vector4f & | origin, | ||
| const Eigen::Quaternionf & | orientation, | ||
| int | valid_points, | ||
| bool | use_camera = true |
||
| ) | [inline] |
Generate the header of a PLY v.7 file format.
| [in] | cloud | the point cloud data message |
| [in] | origin | the sensor data acquisition origin (translation) |
| [in] | orientation | the sensor data acquisition origin (rotation) |
| [in] | valid_points | number of valid points (finite ones for range_grid and all of them for camer) |
| [in] | use_camera | if set to true then PLY file will use element camera else element range_grid will be used. |
| std::string pcl::PLYWriter::generateHeaderBinary | ( | const sensor_msgs::PointCloud2 & | cloud, |
| const Eigen::Vector4f & | origin, | ||
| const Eigen::Quaternionf & | orientation, | ||
| int | valid_points, | ||
| bool | use_camera = true |
||
| ) | [inline] |
Generate the header of a PLY v.7 file format.
| [in] | cloud | the point cloud data message |
| [in] | origin | the sensor data acquisition origin (translation) |
| [in] | orientation | the sensor data acquisition origin (rotation) |
| [in] | valid_points | number of valid points (finite ones for range_grid and all of them for camer) |
| [in] | use_camera | if set to true then PLY file will use element camera else element range_grid will be used. |
| 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, inherited] |
Save point cloud data to a FILE file containing n-D points.
| [in] | file_name | the output file name |
| [in] | cloud | the point cloud data message (boost shared pointer) |
| [in] | binary | set to true if the file is to be written in a binary FILE format, false (default) for ASCII |
| [in] | origin | the sensor acquisition origin |
| [in] | orientation | the sensor acquisition orientation |
Reimplemented in pcl::PCDWriter.
| int pcl::FileWriter::write | ( | const std::string & | file_name, |
| const pcl::PointCloud< PointT > & | cloud, | ||
| const bool | binary = false |
||
| ) | [inline, inherited] |
Save point cloud data to a FILE file containing n-D points.
| [in] | file_name | the output file name |
| [in] | cloud | the pcl::PointCloud data |
| [in] | binary | set to true if the file is to be written in a binary FILE format, false (default) for ASCII |
Reimplemented in pcl::PCDWriter.
| int pcl::PLYWriter::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 |
||
| ) | [inline, virtual] |
Save point cloud data to a PLY file containing n-D points.
| [in] | file_name | the output file name |
| [in] | cloud | the point cloud data message |
| [in] | origin | the sensor acquisition origin |
| [in] | orientation | the sensor acquisition orientation |
| [in] | binary | set to true if the file is to be written in a binary PLY format, false (default) for ASCII |
Implements pcl::FileWriter.
| int pcl::PLYWriter::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 (), |
||
| bool | binary = false, |
||
| bool | use_camera = true |
||
| ) | [inline] |
Save point cloud data to a PLY file containing n-D points.
| [in] | file_name | the output file name |
| [in] | cloud | the point cloud data message |
| [in] | origin | the sensor acquisition origin |
| [in] | orientation | the sensor acquisition orientation |
| [in] | binary | set to true if the file is to be written in a binary PLY format, false (default) for ASCII |
| [in] | use_camera | set to true to used camera element and false to use range_grid element |
| int pcl::PLYWriter::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 (), |
||
| bool | binary = false, |
||
| bool | use_camera = true |
||
| ) | [inline] |
Save point cloud data to a PLY file containing n-D points.
| [in] | file_name | the output file name |
| [in] | cloud | the point cloud data message (boost shared pointer) |
| [in] | origin | the sensor acquisition origin |
| [in] | orientation | the sensor acquisition orientation |
| [in] | binary | set to true if the file is to be written in a binary PLY format, false (default) for ASCII |
| [in] | use_camera | set to true to used camera element and false to use range_grid element |
| int pcl::PLYWriter::write | ( | const std::string & | file_name, |
| const pcl::PointCloud< PointT > & | cloud, | ||
| bool | binary = false, |
||
| bool | use_camera = true |
||
| ) | [inline] |
Save point cloud data to a PLY file containing n-D points.
| [in] | file_name | the output file name |
| [in] | cloud | the pcl::PointCloud data |
| [in] | binary | set to true if the file is to be written in a binary PLY format, false (default) for ASCII |
| [in] | use_camera | set to true to used camera element and false to use range_grid element |
| int pcl::PLYWriter::writeASCII | ( | const std::string & | file_name, |
| const sensor_msgs::PointCloud2 & | cloud, | ||
| const Eigen::Vector4f & | origin = Eigen::Vector4f::Zero(), |
||
| const Eigen::Quaternionf & | orientation = Eigen::Quaternionf::Identity(), |
||
| int | precision = 8, |
||
| bool | use_camera = true |
||
| ) |
Save point cloud data to a PLY file containing n-D points, in ASCII format.
| [in] | file_name | the output file name |
| [in] | cloud | the point cloud data message |
| [in] | origin | the sensor data acquisition origin (translation) |
| [in] | orientation | the sensor data acquisition origin (rotation) |
| [in] | precision | the specified output numeric stream precision (default: 8) |
| [in] | use_camera | if set to true then PLY file will use element camera else element range_grid will be used. |
| int pcl::PLYWriter::writeBinary | ( | const std::string & | file_name, |
| const sensor_msgs::PointCloud2 & | cloud, | ||
| const Eigen::Vector4f & | origin = Eigen::Vector4f::Zero(), |
||
| const Eigen::Quaternionf & | orientation = Eigen::Quaternionf::Identity() |
||
| ) |
Save point cloud data to a PLY file containing n-D points, in BINARY format.
| [in] | file_name | the output file name |
| [in] | cloud | the point cloud data message |
| [in] | origin | the sensor data acquisition origin (translation) |
| [in] | orientation | the sensor data acquisition origin (rotation) |
1.7.6.1