Class FiducialTarget
java.lang.Object
io.github.roboblazers7617.limelight.targets.FiducialTarget
Represents an AprilTag/Fiducial Target Result extracted from JSON Output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe family of the primary in-view fiducial.double
The ID of the primary in-view fiducial.double
The size of the target as a percentage of the image [0-1].double
double
The X-coordinate of the center of the target in degrees relative to crosshair.double
The X-coordinate of the center of the target in degrees relative to principal piexel.double
The X-coordinate of the center of the target in pixels relative to crosshair.double
The Y-coordinate of the center of the target in degrees relative to crosshair.double
The Y-coordinate of the center of the target in degrees relative to principal pixel.double
The Y-coordinate of the center of the target in pixels relative to crosshair. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets thecameraPose_TargetSpace
for this target.Gets thecameraPose_TargetSpace
for this target.Gets therobotPose_FieldSpace
for this target.Gets therobotPose_FieldSpace
for this target.Gets therobotPose_TargetSpace
for this target.Gets therobotPose_TargetSpace
for this target.Gets thetargetPose_CameraSpace
for this target.Gets thetargetPose_CameraSpace
for this target.Gets thetargetPose_RobotSpace
for this target.Gets thetargetPose_RobotSpace
for this target.
-
Field Details
-
fiducialID
public double fiducialIDThe ID of the primary in-view fiducial. -
fiducialFamily
The family of the primary in-view fiducial. -
ta
public double taThe size of the target as a percentage of the image [0-1]. -
tx
public double txThe X-coordinate of the center of the target in degrees relative to crosshair. Positive-right, center-zero. -
ty
public double tyThe Y-coordinate of the center of the target in degrees relative to crosshair. Positive-down, center-zero. -
tx_pixels
public double tx_pixelsThe X-coordinate of the center of the target in pixels relative to crosshair. Positive-right, center-zero -
ty_pixels
public double ty_pixelsThe Y-coordinate of the center of the target in pixels relative to crosshair. Positive-down, center-zero. -
tx_nocrosshair
public double tx_nocrosshairThe X-coordinate of the center of the target in degrees relative to principal piexel. Positive-right, center-zero. -
ty_nocrosshair
public double ty_nocrosshairThe Y-coordinate of the center of the target in degrees relative to principal pixel. Positive-right, center-zero. -
ts
public double ts
-
-
Constructor Details
-
FiducialTarget
public FiducialTarget()Creates a new FiducialTarget with blank values.
-
-
Method Details
-
getCameraPose_TargetSpace
Gets thecameraPose_TargetSpace
for this target.- Returns:
- The
cameraPose_TargetSpace
for this target, parsed into aPose3d
.
-
getRobotPose_FieldSpace
Gets therobotPose_FieldSpace
for this target.- Returns:
- The
robotPose_FieldSpace
for this target, parsed into aPose3d
.
-
getRobotPose_TargetSpace
Gets therobotPose_TargetSpace
for this target.- Returns:
- The
robotPose_TargetSpace
for this target, parsed into aPose3d
.
-
getTargetPose_CameraSpace
Gets thetargetPose_CameraSpace
for this target.- Returns:
- The
targetPose_CameraSpace
for this target, parsed into aPose3d
.
-
getTargetPose_RobotSpace
Gets thetargetPose_RobotSpace
for this target.- Returns:
- The
targetPose_RobotSpace
for this target, parsed into aPose3d
.
-
getCameraPose_TargetSpace2D
Gets thecameraPose_TargetSpace
for this target.- Returns:
- The
cameraPose_TargetSpace
for this target, parsed into aPose2d
.
-
getRobotPose_FieldSpace2D
Gets therobotPose_FieldSpace
for this target.- Returns:
- The
robotPose_FieldSpace
for this target, parsed into aPose2d
.
-
getRobotPose_TargetSpace2D
Gets therobotPose_TargetSpace
for this target.- Returns:
- The
robotPose_TargetSpace
for this target, parsed into aPose2d
.
-
getTargetPose_CameraSpace2D
Gets thetargetPose_CameraSpace
for this target.- Returns:
- The
targetPose_CameraSpace
for this target, parsed into aPose2d
.
-
getTargetPose_RobotSpace2D
Gets thetargetPose_RobotSpace
for this target.- Returns:
- The
targetPose_RobotSpace
for this target, parsed into aPose2d
.
-