Point Cloud Library (PCL)  1.3.1
Public Member Functions
pcl::FileWriter Class Reference

Point Cloud Data (FILE) file format writer. More...

#include <pcl/io/file_io.h>

Inheritance diagram for pcl::FileWriter:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Point Cloud Data (FILE) file format writer.

Any (FILE) format file reader should implement its virtual methodes

Author:
Nizar Sallem

Constructor & Destructor Documentation

pcl::FileWriter::FileWriter ( ) [inline]

empty constructor

Definition at line 176 of file file_io.h.

virtual pcl::FileWriter::~FileWriter ( ) [inline, virtual]

empty destructor

Definition at line 178 of file file_io.h.


Member Function Documentation

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.

Parameters:
file_namethe output file name
cloudthe point cloud data message
originthe sensor acquisition origin
orientationthe sensor acquisition orientation
binaryset 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.

Parameters:
file_namethe output file name
cloudthe point cloud data message (boost shared pointer)
binaryset to true if the file is to be written in a binary FILE format, false (default) for ASCII
originthe sensor acquisition origin
orientationthe sensor acquisition orientation

Reimplemented in pcl::PCDWriter, and pcl::PLYWriter.

Definition at line 202 of file file_io.h.

template<typename PointT >
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.

Parameters:
file_namethe output file name
cloudthe pcl::PointCloud data
binaryset 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.

Definition at line 217 of file file_io.h.


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