recognition_result.h
Go to the documentation of this file.
1 
21 #ifndef RECOGNITION_RESULT_H
22 #define RECOGNITION_RESULT_H
23 
24 #include <HalconCpp.h>
25 #include <pcl/point_cloud.h>
26 #include <pcl/point_types.h>
27 
28 
30 
35 
36 private:
39 
42 
44  double score_2D_;
45 
47  HalconCpp::HHomMat2D trans_matrix_2D_;
48 
50  Eigen::Vector2i tex_point_;
51 
53  HalconCpp::HQuaternion adjusted_rotation_;
54 
57 
60 
62  double score_3D_;
63 
65  Eigen::Vector3d tex_point_3D_;
66 
68  pcl::PointCloud<pcl::PointXYZ>::Ptr search_cloud_;
69 
71  HalconCpp::HTuple pose_;
72 
73 public:
75  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
76 
85  RecognitionResult(int view_index, double score_2D, HalconCpp::HHomMat2D &trans_matrix_2D, const Eigen::Vector2i &tex_point);
86 
92  bool checkModelFound();
93 
97  void setSearchCloud(pcl::PointCloud<pcl::PointXYZ>::Ptr &search_cloud);
98  void setPose(HalconCpp::HTuple pose);
99  void setModelFound(bool model_found = true);
100  void setTexPoint3D(pcl::PointXYZ tex_point_3D);
101  void setAdjustedRotation(HalconCpp::HQuaternion quaternion);
102  void setScore3D(double score_3D);
103  void setSearchRadius(int radius);
104  void setPoseValid(bool pose_valid);
105 
109  HalconCpp::HTuple getPose() const;
110  int getViewIndex() const;
111  double getScore2D() const;
112  double getScore3D() const;
113  HalconCpp::HHomMat2D getTransMatrix2D() const;
114  Eigen::Vector2i getTexPoint() const;
115  Eigen::Vector3d getTexPoint3D() const;
116  pcl::PointCloud<pcl::PointXYZ>::Ptr getSearchCloud() const;
117  HalconCpp::HQuaternion getAdjustedRotation() const;
118  int getSearchRadius() const;
119  bool getPoseValid() const;
120 
121 };
122 
123 
124 }
125 
126 #endif
pcl::PointCloud< pcl::PointXYZ >::Ptr getSearchCloud() const
void setSearchCloud(pcl::PointCloud< pcl::PointXYZ >::Ptr &search_cloud)
bool checkModelFound()
Checks whether the model was correctly found.
void setAdjustedRotation(HalconCpp::HQuaternion quaternion)
pcl::PointCloud< pcl::PointXYZ >::Ptr search_cloud_
EIGEN_MAKE_ALIGNED_OPERATOR_NEW RecognitionResult(int view_index, double score_2D, HalconCpp::HHomMat2D &trans_matrix_2D, const Eigen::Vector2i &tex_point)
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