25#include <frc/geometry/Transform3d.h>
26#include <wpi/SmallVector.h>
42 template <
typename... Args>
44 :
Base{std::forward<Args>(args)...} {}
Represents a tracked target within a pipeline.
Definition PhotonTrackedTarget.h:34
int GetFiducialId() const
Get the Fiducial ID of the target currently being tracked, or -1 if not set.
Definition PhotonTrackedTarget.h:74
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:93
frc::Transform3d GetBestCameraToTarget() const
Get the transform that maps camera space (X = forward, Y = left, Z = up) to object/fiducial tag space...
Definition PhotonTrackedTarget.h:127
PhotonTrackedTarget(Args &&... args)
Definition PhotonTrackedTarget.h:43
PhotonTrackedTarget(Base &&data)
Definition PhotonTrackedTarget.h:40
frc::Transform3d GetAlternateCameraToTarget() const
Get the transform that maps camera space (X = forward, Y = left, Z = up) to object/fiducial tag space...
Definition PhotonTrackedTarget.h:134
double GetArea() const
Returns the target area (0-100).
Definition PhotonTrackedTarget.h:62
double GetSkew() const
Returns the target skew (counter-clockwise positive).
Definition PhotonTrackedTarget.h:68
double GetPoseAmbiguity() const
Get the ratio of best:alternate pose reprojection errors, called ambiguity.
Definition PhotonTrackedTarget.h:118
float GetDetectedObjectConfidence() const
Get the object detection confidence, or -1 if not set.
Definition PhotonTrackedTarget.h:86
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:108
double GetPitch() const
Returns the target pitch (positive-up)
Definition PhotonTrackedTarget.h:56
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:80
double GetYaw() const
Returns the target yaw (positive-left).
Definition PhotonTrackedTarget.h:50
Definition VisionEstimation.h:32
Definition PhotonTrackedTargetStruct.h:31
int32_t objDetectId
Definition PhotonTrackedTargetStruct.h:37
std::vector< photon::TargetCorner > minAreaRectCorners
Definition PhotonTrackedTargetStruct.h:42
double poseAmbiguity
Definition PhotonTrackedTargetStruct.h:41
std::vector< photon::TargetCorner > detectedCorners
Definition PhotonTrackedTargetStruct.h:43
double pitch
Definition PhotonTrackedTargetStruct.h:33
int32_t fiducialId
Definition PhotonTrackedTargetStruct.h:36
double yaw
Definition PhotonTrackedTargetStruct.h:32
frc::Transform3d bestCameraToTarget
Definition PhotonTrackedTargetStruct.h:39
frc::Transform3d altCameraToTarget
Definition PhotonTrackedTargetStruct.h:40
double area
Definition PhotonTrackedTargetStruct.h:34
float objDetectConf
Definition PhotonTrackedTargetStruct.h:38
double skew
Definition PhotonTrackedTargetStruct.h:35