Represents a single ArUco tag. Combines attributes from TorchTag, TensorflowTag, and the original ArucoTag structs.
More...
#include <TagDetectionUtilty.hpp>
|
std::shared_ptr< cv::Rect2d > | pBoundingBox = std::make_shared<cv::Rect2d>() |
|
double | dConfidence = 0.0 |
|
double | dStraightLineDistance = 0.0 |
|
double | dYawAngle = 0.0 |
|
int | nID = -1 |
|
std::string | szClassName = "" |
|
std::chrono::system_clock::time_point | tmCreation = std::chrono::system_clock::now() |
|
TagDetectionMethod | eDetectionMethod = TagDetectionMethod::eUnknown |
|
cv::Size | cvImageResolution = cv::Size(0, 0) |
|
double | dHorizontalFOV = 0.0 |
|
geoops::Waypoint | stGeolocatedPosition = geoops::Waypoint() |
|
Represents a single ArUco tag. Combines attributes from TorchTag, TensorflowTag, and the original ArucoTag structs.
- Author
- clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2025-04-03
◆ operator==()
bool tagdetectutils::ArucoTag::operator== |
( |
const ArucoTag & |
stOther | ) |
const |
|
inline |
Overload the equality operator for the ArucoTag struct.
- Parameters
-
stOther | - The other ArucoTag struct to compare to. |
- Returns
- true - The two ArucoTag structs are equal.
-
false - The two ArucoTag structs are not equal.
- Author
- clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2025-04-03
85 {
86 return *pBoundingBox == *stOther.pBoundingBox && dConfidence == stOther.dConfidence && dStraightLineDistance == stOther.dStraightLineDistance &&
87 dYawAngle == stOther.dYawAngle && nID == stOther.nID && szClassName == stOther.szClassName && tmCreation == stOther.tmCreation &&
88 eDetectionMethod == stOther.eDetectionMethod && cvImageResolution == stOther.cvImageResolution && dHorizontalFOV == stOther.dHorizontalFOV &&
89 stGeolocatedPosition == stOther.stGeolocatedPosition;
90 }
◆ operator!=()
bool tagdetectutils::ArucoTag::operator!= |
( |
const ArucoTag & |
stOther | ) |
const |
|
inline |
◆ operator=()
Overload the assignment operator for the ArucoTag struct to perform a deep copy.
- Parameters
-
stOther | - The other ArucoTag struct to copy from. |
- Returns
- ArucoTag& - A reference to the updated ArucoTag.
- Author
- clayjay3 (clayt.nosp@m.onra.nosp@m.ycowe.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om)
- Date
- 2025-04-06
114 {
115
116 if (this != &stOther)
117 {
118
119 pBoundingBox = stOther.pBoundingBox;
120
121
122 dConfidence = stOther.dConfidence;
123 dStraightLineDistance = stOther.dStraightLineDistance;
124 dYawAngle = stOther.dYawAngle;
125 nID = stOther.nID;
126 szClassName = stOther.szClassName;
127 tmCreation = stOther.tmCreation;
128 eDetectionMethod = stOther.eDetectionMethod;
129 cvImageResolution = stOther.cvImageResolution;
130 dHorizontalFOV = stOther.dHorizontalFOV;
131 stGeolocatedPosition = stOther.stGeolocatedPosition;
132 }
133 return *this;
134 }
The documentation for this struct was generated from the following file: