gramods
Loading...
Searching...
No Matches
ArucoGridBoard.hh
1
2#ifndef GRAMODS_TRACK_ARUCOGRIDBOARD
3#define GRAMODS_TRACK_ARUCOGRIDBOARD
4
5#include <gmTrack/ArucoBoard.hh>
6
7#ifdef gramods_ENABLE_OpenCV_objdetect
8
9// Required before gmCore/OFactory.hh for some compilers
10#include <gmCore/io_eigen.hh>
11#include <gmCore/io_float.hh>
12
13#include <gmCore/OFactory.hh>
14
15#include <Eigen/Eigen>
16
17BEGIN_NAMESPACE_GMTRACK;
18
27class ArucoGridBoard : public ArucoBoard {
28
29public:
30
32
38 void setColumns(size_t N);
39
45 void setRows(size_t N);
46
52 void setMarkerSize(float s);
53
60 void setMarkerSeparation(float s);
61
70 void setFirstId(size_t id);
71
101 void setDictionary(std::string dict);
102
111 void setPosition(Eigen::Vector3f p);
112
120 void setOrientation(Eigen::Quaternionf q);
121
125 cv::Ptr<cv::aruco::Board> getBoard() override;
126
127 GM_OFI_DECLARE;
128
129private:
130
131 struct Impl;
132 std::unique_ptr<Impl> _impl;
133};
134
135END_NAMESPACE_GMTRACK;
136
137#endif
138#endif
The ArucoBoard is used by the ArucoTracker node to get the board configuration to track.
Definition ArucoBoard.hh:20
The Aruco grid board creates a flat grid of fiducial markers.
Definition ArucoGridBoard.hh:27
Definition ArucoGridBoard.cpp:24