re_visionmodelcreator.h
Go to the documentation of this file.
00001 
00047 #ifndef RE_VISIONMODELCREATOR_H
00048 #define RE_VISIONMODELCREATOR_H
00049 
00050 #include <vector>
00051 #include <boost/shared_ptr.hpp>
00052 #include <pcl/point_cloud.h>
00053 #include <pcl/point_types.h>
00054 #include <QDir>
00055 #include <QString>
00056 
00057 // Enable this define to estimate the normals and store them in ply files
00058 // (can take a long time for bigger clouds)
00059 //#define ESTIMATE_NORMALS
00060 
00064 class re_visionModelCreator
00065 {
00066 public:
00071     re_visionModelCreator(const std::vector<boost::shared_ptr<pcl::PointCloud<pcl::PointXYZRGB> > >& pointclouds);
00072 
00079     void createModel(const QDir& parent_dir, const pcl::PointCloud<pcl::PointXYZRGB>& merged_pcl, const QString& modelname);
00080 
00082     static void saveAsPLY(pcl::PointCloud<pcl::PointXYZRGB>::ConstPtr pcl, const QString& filename);
00084     static void createMetaFile(QDir model_dir, QString modelname, QString modeltype, size_t face_count, double scale);
00085 
00086 protected:
00087     const std::vector<boost::shared_ptr<pcl::PointCloud<pcl::PointXYZRGB> > >& pcls;
00088 };
00089 
00090 #endif // RE_VISIONMODELCREATOR_H


re_object_recorder
Author(s): Andreas Koch
autogenerated on Sun Jan 5 2014 11:39:12