Point Cloud Library (PCL)
1.11.0
|
40 #include <pcl/point_cloud.h>
41 #include <pcl/PCLPointCloud2.h>
42 #include <pcl/conversions.h>
43 #include <pcl/io/boost.h>
44 #include <pcl/PolygonMesh.h>
88 int &ifs_version,
unsigned int &data_idx);
123 template<
typename Po
intT>
int
130 int res =
read (file_name, blob, ifs_version);
160 const std::string &cloud_name =
"cloud");
171 template<
typename Po
intT>
int
173 const std::string &cloud_name =
"cloud")
176 pcl::toPCLPointCloud2<PointT> (cloud, blob);
177 return (
write (file_name, blob, cloud_name));
195 return (p.
read (file_name, cloud, ifs_version));
205 template<
typename Po
intT>
inline int
224 return (p.
read (file_name, mesh, ifs_version));
238 return (w.
write (file_name, cloud));
248 template<
typename Po
intT>
int
int loadIFSFile(const std::string &file_name, pcl::PCLPointCloud2 &cloud)
Load an IFS file into a PCLPointCloud2 blob type.
Point Cloud Data (IFS) file format writer.
PointCloud represents the base class in PCL for storing collections of 3D points.
A point structure representing Euclidean xyz coordinates, and the RGB color.
int write(const std::string &file_name, const pcl::PointCloud< PointT > &cloud, const std::string &cloud_name="cloud")
Save point cloud data to an IFS file containing 3D points.
int read(const std::string &file_name, pcl::PointCloud< PointT > &cloud)
Read a point cloud data from an IFS file, and convert it to the given template pcl::PointCloud format...
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
int readHeader(const std::string &file_name, pcl::PCLPointCloud2 &cloud, int &ifs_version, unsigned int &data_idx)
Read a point cloud data header from an IFS file.
int read(const std::string &file_name, pcl::PolygonMesh &mesh, int &ifs_version)
Read a point cloud data from an IFS file and store it into a PolygonMesh.
~IFSReader()
Empty destructor.
int write(const std::string &file_name, const pcl::PCLPointCloud2 &cloud, const std::string &cloud_name="cloud")
Save point cloud data to an IFS file containing 3D points.
Eigen::Vector4f sensor_origin_
Sensor acquisition pose (origin/translation).
Eigen::Quaternionf sensor_orientation_
Sensor acquisition pose (rotation).
void write(std::ostream &stream, Type value)
Function for writing data to a stream.
int saveIFSFile(const std::string &file_name, const pcl::PCLPointCloud2 &cloud)
Save point cloud data to an IFS file containing 3D points.
IFSReader()
Empty constructor.
int read(const std::string &file_name, pcl::PCLPointCloud2 &cloud, int &ifs_version)
Read a point cloud data from an IFS file and store it into a pcl/PCLPointCloud2.
void fromPCLPointCloud2(const pcl::PCLPointCloud2 &msg, pcl::PointCloud< PointT > &cloud, const MsgFieldMap &field_map)
Convert a PCLPointCloud2 binary data blob into a pcl::PointCloud<T> object using a field_map.
Indexed Face set (IFS) file format reader.