Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Toggle main menu visibility
Loading...
Searching...
No Matches
src
ar
Tag.h
1
#pragma once
2
3
#include "MarkerPattern.h"
4
5
#include <
opencv2/core.hpp
>
6
7
namespace
AR {
8
13
22
class
Tag {
23
private
:
24
cv::Vec3d
rvec_;
25
cv::Vec3d
tvec_;
26
MarkerPattern
marker_;
27
28
public
:
29
Tag(
MarkerPattern
marker,
cv::Vec3d
rvec,
cv::Vec3d
tvec);
30
Tag() =
delete
;
37
cv::Vec3d
getRVec
()
const
;
47
cv::Vec3d
getTVec
()
const
;
56
cv::Vec3d
getCoordinates
()
const
;
60
MarkerPattern
getMarker
()
const
;
61
};
62
64
65
}
// namespace AR
AR::MarkerPattern
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
AR::Tag::getCoordinates
cv::Vec3d getCoordinates() const
Gets the 3D coordinates of the tag with respect to the camera.
Definition
Tag.cpp:17
AR::Tag::getRVec
cv::Vec3d getRVec() const
Gets the rotation vector of the tag.
Definition
Tag.cpp:9
AR::Tag::getMarker
MarkerPattern getMarker() const
Gets the Marker associated with the tag.
Definition
Tag.cpp:21
AR::Tag::getTVec
cv::Vec3d getTVec() const
Gets the translation vector of the tag.
Definition
Tag.cpp:13
core.hpp
cv::Vec3d
Vec< double, 3 > Vec3d
Generated by
1.17.0