Point Cloud Library (PCL)
1.11.1-dev
|
40 #include <pcl/TextureMesh.h>
41 #include <pcl/io/file_io.h>
61 read (
const std::string& filename);
69 read (
const std::string& obj_file_name,
const std::string& mtl_file_name);
71 std::vector<pcl::TexMaterial>::const_iterator
72 getMaterial (
const std::string& material_name)
const;
88 Eigen::Matrix3f xyz_to_rgb_matrix_;
123 Eigen::Vector4f &origin, Eigen::Quaternionf &orientation,
124 int &file_version,
int &data_type,
unsigned int &data_idx,
125 const int offset)
override;
144 Eigen::Vector4f &origin, Eigen::Quaternionf &orientation,
145 int &file_version,
const int offset = 0)
override;
177 Eigen::Vector4f &origin, Eigen::Quaternionf &orientation,
178 int &file_version,
const int offset = 0);
206 Eigen::Vector4f &origin, Eigen::Quaternionf &orientation,
207 int &file_version,
const int offset = 0);
231 template<
typename Po
intT>
inline int
238 file_version, offset);
248 std::vector<pcl::MTLReader> companions_;
262 Eigen::Vector4f &origin, Eigen::Quaternionf &orientation)
266 return (p.
read (file_name, cloud, origin, orientation, obj_version));
280 return (p.
read (file_name, cloud));
288 template<
typename Po
intT>
inline int
292 return (p.
read (file_name, cloud));
306 return (p.
read (file_name, mesh));
320 return (p.
read (file_name, mesh));
332 unsigned precision = 5);
343 unsigned precision = 5);
std::vector< pcl::TexMaterial > materials_
materials array
PointCloud represents the base class in PCL for storing collections of 3D points.
int read(const std::string &file_name, pcl::PointCloud< PointT > &cloud, const int offset=0)
Read a point cloud data from any FILE file, and convert it to the given template format.
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
int loadOBJFile(const std::string &file_name, pcl::PCLPointCloud2 &cloud, Eigen::Vector4f &origin, Eigen::Quaternionf &orientation)
Load any OBJ file into a templated PointCloud type.
int read(const std::string &file_name, pcl::PCLPointCloud2 &cloud, Eigen::Vector4f &origin, Eigen::Quaternionf &orientation, int &file_version, const int offset=0) override
Read a point cloud data from a FILE file and store it into a pcl/PCLPointCloud2.
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
PCL_EXPORTS int saveOBJFile(const std::string &file_name, const pcl::TextureMesh &tex_mesh, unsigned precision=5)
Saves a TextureMesh in ascii OBJ format.
Point Cloud Data (FILE) file format reader interface.
Eigen::Vector4f sensor_origin_
Sensor acquisition pose (origin/translation).
Eigen::Quaternionf sensor_orientation_
Sensor acquisition pose (rotation).
OBJReader()
empty constructor
~OBJReader()
empty destructor
virtual ~MTLReader()
empty destructor
Defines functions, macros and traits for allocating and using memory.
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.