Point Cloud Library (PCL)
1.11.1-dev
|
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
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.
~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.