|
| PhotonTrackedTarget ()=default |
|
| PhotonTrackedTarget (Base &&data) |
|
template<typename... Args> |
| PhotonTrackedTarget (Args &&... args) |
|
double | GetYaw () const |
| Returns the target yaw (positive-left).
|
|
double | GetPitch () const |
| Returns the target pitch (positive-up)
|
|
double | GetArea () const |
| Returns the target area (0-100).
|
|
double | GetSkew () const |
| Returns the target skew (counter-clockwise positive).
|
|
int | GetFiducialId () const |
| Get the Fiducial ID of the target currently being tracked, or -1 if not set.
|
|
int | GetDetectedObjectClassID () const |
| Get the Fiducial ID of the target currently being tracked, or -1 if not set.
|
|
float | GetDetectedObjectConfidence () const |
| Get the object detection confidence, or -1 if not set.
|
|
const std::vector< photon::TargetCorner > & | GetMinAreaRectCorners () const |
| Return a list of the 4 corners in image space (origin top left, x right, y down), in no particular order, of the minimum area bounding rectangle of this target.
|
|
const std::vector< photon::TargetCorner > & | GetDetectedCorners () const |
| Return a list of the n corners in image space (origin top left, x right, y down), in no particular order, detected for this target.
|
|
double | GetPoseAmbiguity () const |
| Get the ratio of best:alternate pose reprojection errors, called ambiguity.
|
|
frc::Transform3d | GetBestCameraToTarget () const |
| Get the transform that maps camera space (X = forward, Y = left, Z = up) to object/fiducial tag space (X forward, Y left, Z up) with the lowest reprojection error.
|
|
frc::Transform3d | GetAlternateCameraToTarget () const |
| Get the transform that maps camera space (X = forward, Y = left, Z = up) to object/fiducial tag space (X forward, Y left, Z up) with the highest reprojection error.
|
|
Represents a tracked target within a pipeline.
frc::Transform3d photon::PhotonTrackedTarget::GetBestCameraToTarget |
( |
| ) |
const |
|
inline |
Get the transform that maps camera space (X = forward, Y = left, Z = up) to object/fiducial tag space (X forward, Y left, Z up) with the lowest reprojection error.
The ratio between this and the alternate target's reprojection error is the ambiguity, which is between 0 and 1.
- Returns
- The pose of the target relative to the robot.
const std::vector< photon::TargetCorner > & photon::PhotonTrackedTarget::GetDetectedCorners |
( |
| ) |
const |
|
inline |
Return a list of the n corners in image space (origin top left, x right, y down), in no particular order, detected for this target.
For fiducials, the order is known and is always counter-clock wise around the tag, like so
-> +X 3 --— 2 | | | V + Y | | 0 --— 1