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
00058
00059
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