Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Loading...
Searching...
No Matches
Tag.h
1#pragma once
2
3#include "MarkerPattern.h"
4
5#include <opencv2/core.hpp>
6
7namespace AR {
8
13
22class Tag {
23private:
24 cv::Vec3d rvec_;
25 cv::Vec3d tvec_;
26 MarkerPattern marker_;
27
28public:
29 Tag(MarkerPattern marker, cv::Vec3d rvec, cv::Vec3d tvec);
30 Tag() = delete;
37 cv::Vec3d getRVec() const;
47 cv::Vec3d getTVec() const;
61};
62
64
65} // namespace AR
A class to represent the pattern that may appear on a physical AR tag, NOT a physical instance of a t...
Definition MarkerPattern.h:28
cv::Vec3d getCoordinates() const
Gets the 3D coordinates of the tag with respect to the camera.
Definition Tag.cpp:17
cv::Vec3d getRVec() const
Gets the rotation vector of the tag.
Definition Tag.cpp:9
MarkerPattern getMarker() const
Gets the Marker associated with the tag.
Definition Tag.cpp:21
cv::Vec3d getTVec() const
Gets the translation vector of the tag.
Definition Tag.cpp:13
Vec< double, 3 > Vec3d