object_descriptor.h
Go to the documentation of this file.
1 
21 #ifndef OBJECT_DESCRIPTOR_H
22 #define OBJECT_DESCRIPTOR_H
23 
24 #include <string>
25 #include <HalconCpp.h>
26 #include "object_view_descriptor.h"
27 
28 
30 
35 
36 private:
37 
39  std::string name_;
40 
42  HalconCpp::HSurfaceModel surface_model_;
43 
45  std::string mesh_name_;
46 
49 
51  Eigen::Vector3d orientation_;
52 
54  double diameter_;
55 
57  double score_3D_;
58 
60  std::vector<ObjectViewDescriptor> model_view_descriptors_;
61 
64 
67 
69 
70 public:
71 
75  static const int ROTATION_MODEL_NONE = 0;
76  static const int ROTATION_MODEL_CYLINDER = 1;
77  static const int ROTATION_MODEL_SPHERE = 2;
78 
86  ObjectDescriptor(std::string folder_path, std::string xml_path, int instance_count, bool use_pose_val);
87 
93  bool isValid() const;
94 
98  std::string getName() const;
99  HalconCpp::HSurfaceModel getSurfaceModel() const;
100  std::string getMesh() const;
101  int getRotationModelType() const;
102  Eigen::Vector3d getOrientation() const;
103  double getDiameter() const;
104  double getScore3D() const;
105  int getInstanceCount() const;
106  std::vector<ObjectViewDescriptor> getModelViewDescriptors() const;
107  bool getUsePoseVal() const;
108 
112  void setCount(int count);
113  void setUsePoseVal(bool usePoseVal);
114 };
115 
116 }
117 #endif
std::vector< ObjectViewDescriptor > model_view_descriptors_
bool isValid() const
Checks whether this object can be used for recognition.
std::vector< ObjectViewDescriptor > getModelViewDescriptors() const
ObjectDescriptor(std::string folder_path, std::string xml_path, int instance_count, bool use_pose_val)
The constructor of this class.


asr_descriptor_surface_based_recognition
Author(s): Allgeyer Tobias, Hutmacher Robin, Meißner Pascal
autogenerated on Mon Dec 16 2019 03:31:15