ObjectDatabaseEntry.h
Go to the documentation of this file.
00001 
00021 #ifndef OBJECT_DATABASE_ENTRY_H_
00022 #define OBJECT_DATABASE_ENTRY_H_
00023 
00024 #include <boost/filesystem.hpp>
00025 #include <string>
00026 #include <geometry_msgs/Point.h>
00027 #include <geometry_msgs/Pose.h>
00028 #include "ObjectDatabaseRecognizer.h"
00029 
00030 namespace object_database
00031 {
00032 namespace fs = boost::filesystem;
00033 
00038 class ObjectDatabaseEntry
00039 {
00040 public:
00048     ROS_DEPRECATED ObjectDatabaseEntry(ObjectDatabaseRecognizer* recognizerPtr, const std::string uniqueName,
00049                         const fs::path path, const fs::path rvizMeshResourcePath,
00050                         const fs::path normalVectorResourcePath);
00051     ObjectDatabaseEntry(ObjectDatabaseRecognizer *recognizerPtr, const std::string uniqueName,
00052                         const fs::path path, const fs::path rvizMeshResourcePath,
00053                         const fs::path normalVectorResourcePath, const fs::path getDeviationResourcePath,
00054                         const fs::path rotation_invariance_resource_path);
00055 
00056     // dtor
00057     virtual ~ObjectDatabaseEntry()
00058     { }
00059 
00063     ObjectDatabaseRecognizer* getRecognizer();
00064 
00068     const std::string getUniqueName();
00069 
00073     const fs::path getPath();
00074 
00078     const fs::path getRvizMeshResourcePath();
00079 
00083     const fs::path getNormalVectorResourcePath();
00084 
00085     std::vector<geometry_msgs::Point> getNormalVectors();
00086 
00087     fs::path getDeviationResourcePath() const;
00088 
00089     std::vector<double> getDeviationsFromFile();
00090     
00091 
00092     fs::path getRotationInvarianceResourcePath() const;
00093 
00097     const bool getRotationInvarianceFromFile();
00098     
00099 private:
00103     ObjectDatabaseRecognizer* mRecognizerPtr;
00104 
00108     std::string mUniqueName;
00109 
00113     fs::path mPath;
00114 
00118     fs::path mRvizMeshResourcePath;
00119 
00123     fs::path mNormalVectorResourcePath;
00124 
00128     fs::path deviation_resource_path_;
00129 
00133     fs::path rotation_invariance_resource_path;
00134 
00135     std::vector<geometry_msgs::Point> mNormalVectors;
00136     std::vector<double> deviations_;
00137     bool rotation_invariant;
00138 };
00139 }
00140 
00141 #endif


asr_object_database
Author(s): Allgeyer Tobias, Aumann Florian, Borella Jocelyn, Braun Kai, Heizmann Heinrich, Heller Florian, Kasper Alexander, Marek Felix, Mehlhaus Jonas, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Walter Milena
autogenerated on Thu Jun 6 2019 21:11:02