44 int GetId()
const {
return id; }
102 return *
reinterpret_cast<const Point*
>(p[ndx]);
113 std::span<double, 8>
GetCorners(std::span<double, 8> cornersBuf)
const {
114 for (
int i = 0; i < 4; i++) {
115 cornersBuf[i * 2] = p[i][0];
116 cornersBuf[i * 2 + 1] = p[i][1];
145 float decision_margin;
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
A detection of an AprilTag tag.
Definition: AprilTagDetection.h:20
std::span< const double, 9 > GetHomography() const
Gets the 3x3 homography matrix describing the projection from an "ideal" tag (with corners at (-1,...
const Point & GetCenter() const
Gets the center of the detection in image pixel coordinates.
Definition: AprilTagDetection.h:92
AprilTagDetection & operator=(const AprilTagDetection &)=delete
const Point & GetCorner(int ndx) const
Gets a corner of the tag in image pixel coordinates.
Definition: AprilTagDetection.h:101
int GetHamming() const
Gets how many error bits were corrected.
Definition: AprilTagDetection.h:54
Eigen::Matrix3d GetHomographyMatrix() const
Gets the 3x3 homography matrix describing the projection from an "ideal" tag (with corners at (-1,...
std::string_view GetFamily() const
Gets the decoded tag's family name.
AprilTagDetection()=delete
std::span< double, 8 > GetCorners(std::span< double, 8 > cornersBuf) const
Gets the corners of the tag in image pixel coordinates.
Definition: AprilTagDetection.h:113
int GetId() const
Gets the decoded ID of the tag.
Definition: AprilTagDetection.h:44
AprilTagDetection(const AprilTagDetection &)=delete
float GetDecisionMargin() const
Gets a measure of the quality of the binary decoding process: the average difference between the inte...
Definition: AprilTagDetection.h:67
basic_string_view< char > string_view
Definition: core.h:501
Definition: AprilTagPoseEstimator.h:15
static constexpr const velocity::meters_per_second_t c(299792458.0)
Speed of light in vacuum.
A point.
Definition: AprilTagDetection.h:27
double y
Definition: AprilTagDetection.h:29
double x
Definition: AprilTagDetection.h:28