28 #ifndef _Aruco_board_h 29 #define _Aruco_board_h 30 #include <opencv2/opencv.hpp> 33 #include <aruco/exports.h> 34 #include <aruco/marker.h> 45 vector<cv::Point3f> ::operator=(MI);
69 class ARUCO_EXPORTS BoardConfiguration:
public vector<MarkerInfo>
82 BoardConfiguration(
const BoardConfiguration &T);
86 BoardConfiguration & operator=(
const BoardConfiguration &T);
89 void saveToFile(
string sfile)
throw (cv::Exception);
92 void readFromFile(
string sfile)
throw (cv::Exception);
96 return mInfoType==METERS;
101 return mInfoType==PIX;
105 int getIndexOfMarkerId(
int id)
const;
108 const MarkerInfo& getMarkerInfo(
int id)
const throw (cv::Exception);
111 void getIdList(vector<int> &ids,
bool append=
true)
const;
115 void saveToFile(cv::FileStorage &fs)
throw (cv::Exception);
118 void readFromFile(cv::FileStorage &fs)
throw (cv::Exception);
127 BoardConfiguration conf;
134 Rvec.create(3,1,CV_32FC1);
135 Tvec.create(3,1,CV_32FC1);
136 for (
int i=0;i<3;i++)
137 Tvec.at<
float>(i,0)=Rvec.at<
float>(i,0)=-999999;
143 void glGetModelViewMatrix(
double modelview_matrix[16])
throw(cv::Exception);
155 void OgreGetPoseParameters(
double position[3],
double orientation[4] )
throw(cv::Exception);
160 void saveToFile(
string filePath)
throw(cv::Exception);
163 void readFromFile(
string filePath)
throw(cv::Exception);
MarkerInfo & operator=(const MarkerInfo &MI)
ROSCPP_DECL std::string append(const std::string &left, const std::string &right)
bool isExpressedInPixels() const
bool isExpressedInMeters() const
MarkerInfo(const MarkerInfo &MI)