23#include <wpi/math/geometry/Transform3d.hpp>
39 template <
typename... Args>
41 :
Base{std::forward<Args>(args)...} {}
Represents a tracked target within a pipeline.
Definition PhotonTrackedTarget.h:31
int GetFiducialId() const
Get the Fiducial ID of the target currently being tracked, or -1 if not set.
Definition PhotonTrackedTarget.h:71
PhotonTrackedTarget()=default
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 or...
Definition PhotonTrackedTarget.h:90
PhotonTrackedTarget(Args &&... args)
Definition PhotonTrackedTarget.h:40
PhotonTrackedTarget(Base &&data)
Definition PhotonTrackedTarget.h:37
wpi::math::Transform3d GetBestCameraToTarget() const
Get the transform that maps camera space (X = forward, Y = left, Z = up) to object/fiducial tag space...
Definition PhotonTrackedTarget.h:124
double GetArea() const
Returns the target area (0-100).
Definition PhotonTrackedTarget.h:59
double GetSkew() const
Returns the target skew (counter-clockwise positive).
Definition PhotonTrackedTarget.h:65
double GetPoseAmbiguity() const
Get the ratio of best:alternate pose reprojection errors, called ambiguity.
Definition PhotonTrackedTarget.h:115
float GetDetectedObjectConfidence() const
Get the object detection confidence, or -1 if not set.
Definition PhotonTrackedTarget.h:83
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 or...
Definition PhotonTrackedTarget.h:105
double GetPitch() const
Returns the target pitch (positive-up)
Definition PhotonTrackedTarget.h:53
wpi::math::Transform3d GetAlternateCameraToTarget() const
Get the transform that maps camera space (X = forward, Y = left, Z = up) to object/fiducial tag space...
Definition PhotonTrackedTarget.h:133
friend bool operator==(PhotonTrackedTarget const &, PhotonTrackedTarget const &)=default
int GetDetectedObjectClassID() const
Get the Fiducial ID of the target currently being tracked, or -1 if not set.
Definition PhotonTrackedTarget.h:77
double GetYaw() const
Returns the target yaw (positive-left).
Definition PhotonTrackedTarget.h:47
Definition VisionEstimation.h:30
Definition PhotonTrackedTargetStruct.h:38
wpi::math::Transform3d altCameraToTarget
Definition PhotonTrackedTargetStruct.h:47
int32_t objDetectId
Definition PhotonTrackedTargetStruct.h:44
std::vector< photon::TargetCorner > minAreaRectCorners
Definition PhotonTrackedTargetStruct.h:49
double poseAmbiguity
Definition PhotonTrackedTargetStruct.h:48
std::vector< photon::TargetCorner > detectedCorners
Definition PhotonTrackedTargetStruct.h:50
double pitch
Definition PhotonTrackedTargetStruct.h:40
int32_t fiducialId
Definition PhotonTrackedTargetStruct.h:43
double yaw
Definition PhotonTrackedTargetStruct.h:39
wpi::math::Transform3d bestCameraToTarget
Definition PhotonTrackedTargetStruct.h:46
double area
Definition PhotonTrackedTargetStruct.h:41
float objDetectConf
Definition PhotonTrackedTargetStruct.h:45
double skew
Definition PhotonTrackedTargetStruct.h:42