40 #include <pcl/point_cloud.h>
41 #include <pcl/PCLPointCloud2.h>
42 #include <pcl/conversions.h>
43 #include <pcl/PolygonMesh.h>
87 int &ifs_version,
unsigned int &data_idx);
122 template<
typename Po
intT>
int
129 int res =
read (file_name, blob, ifs_version);
159 const std::string &cloud_name =
"cloud");
170 template<
typename Po
intT>
int
172 const std::string &cloud_name =
"cloud")
175 pcl::toPCLPointCloud2<PointT> (cloud, blob);
176 return (
write (file_name, blob, cloud_name));
194 return (p.
read (file_name, cloud, ifs_version));
204 template<
typename Po
intT>
inline int
223 return (p.
read (file_name, mesh, ifs_version));
237 return (w.
write (file_name, cloud));
247 template<
typename Po
intT>
int
Indexed Face set (IFS) file format reader.
IFSReader()=default
Empty constructor.
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::PointCloud< PointT > &cloud)
Read a point cloud data from an IFS file, and convert it to the given template pcl::PointCloud format...
~IFSReader()=default
Empty destructor.
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.
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.
Point Cloud Data (IFS) file format writer.
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.
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.
PointCloud represents the base class in PCL for storing collections of 3D points.
Eigen::Quaternionf sensor_orientation_
Sensor acquisition pose (rotation).
Eigen::Vector4f sensor_origin_
Sensor acquisition pose (origin/translation).
int loadIFSFile(const std::string &file_name, pcl::PCLPointCloud2 &cloud)
Load an IFS file into a PCLPointCloud2 blob type.
int saveIFSFile(const std::string &file_name, const pcl::PCLPointCloud2 &cloud)
Save point cloud data to an IFS file containing 3D points.
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
void fromPCLPointCloud2(const pcl::PCLPointCloud2 &msg, pcl::PointCloud< PointT > &cloud, const MsgFieldMap &field_map, const std::uint8_t *msg_data)
Convert a PCLPointCloud2 binary data blob into a pcl::PointCloud<T> object using a field_map.
void write(std::ostream &stream, Type value)
Function for writing data to a stream.
A point structure representing Euclidean xyz coordinates, and the RGB color.