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);
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);
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)=NAN;
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)
This class defines a board with several markers. A Board contains several markers so that they are mo...
ROSCPP_DECL std::string append(const std::string &left, const std::string &right)
bool isExpressedInPixels() const
bool isExpressedInMeters() const
MarkerInfo(const MarkerInfo &MI)