00001 00009 #ifndef UCL_DRONE_READ_FROM_LAUNCH_H 00010 #define UCL_DRONE_READ_FROM_LAUNCH_H 00011 00012 #include <ucl_drone/ucl_drone.h> 00013 #include <opencv2/core/core.hpp> 00014 00018 class Read 00019 { 00020 private: 00021 static double _img_width; 00022 static double _img_height; 00023 static double _img_center_x; 00024 static double _img_center_y; 00025 static double _focal_length_x; 00026 static double _focal_length_y; 00027 00028 public: 00029 static bool CamMatrixParams(const std::string ¶m_name, cv::Mat &cam_matrix); 00030 static bool CamMatrixParams(const std::string ¶m_name); 00031 static bool ImgSizeParams(const std::string ¶m_name); 00032 00033 static double img_width(); 00034 static double img_height(); 00035 static double img_center_x(); 00036 static double img_center_y(); 00037 static double focal_length_x(); 00038 static double focal_length_y(); 00039 }; 00040 00041 #endif /* UCL_DRONE_READ_FROM_LAUNCH_H */