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.doubleThe ID of the primary in-view fiducial.doubleThe size of the target as a percentage of the image [0-1].doubledoubleThe X-coordinate of the center of the target in degrees relative to crosshair.doubleThe X-coordinate of the center of the target in degrees relative to principal piexel.doubleThe X-coordinate of the center of the target in pixels relative to crosshair.doubleThe Y-coordinate of the center of the target in degrees relative to crosshair.doubleThe Y-coordinate of the center of the target in degrees relative to principal pixel.doubleThe Y-coordinate of the center of the target in pixels relative to crosshair. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets thecameraPose_TargetSpacefor this target.Gets thecameraPose_TargetSpacefor this target.Gets therobotPose_FieldSpacefor this target.Gets therobotPose_FieldSpacefor this target.Gets therobotPose_TargetSpacefor this target.Gets therobotPose_TargetSpacefor this target.Gets thetargetPose_CameraSpacefor this target.Gets thetargetPose_CameraSpacefor this target.Gets thetargetPose_RobotSpacefor this target.Gets thetargetPose_RobotSpacefor 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_TargetSpacefor this target.- Returns:
- The
cameraPose_TargetSpacefor this target, parsed into aPose3d.
-
getRobotPose_FieldSpace
Gets therobotPose_FieldSpacefor this target.- Returns:
- The
robotPose_FieldSpacefor this target, parsed into aPose3d.
-
getRobotPose_TargetSpace
Gets therobotPose_TargetSpacefor this target.- Returns:
- The
robotPose_TargetSpacefor this target, parsed into aPose3d.
-
getTargetPose_CameraSpace
Gets thetargetPose_CameraSpacefor this target.- Returns:
- The
targetPose_CameraSpacefor this target, parsed into aPose3d.
-
getTargetPose_RobotSpace
Gets thetargetPose_RobotSpacefor this target.- Returns:
- The
targetPose_RobotSpacefor this target, parsed into aPose3d.
-
getCameraPose_TargetSpace2D
Gets thecameraPose_TargetSpacefor this target.- Returns:
- The
cameraPose_TargetSpacefor this target, parsed into aPose2d.
-
getRobotPose_FieldSpace2D
Gets therobotPose_FieldSpacefor this target.- Returns:
- The
robotPose_FieldSpacefor this target, parsed into aPose2d.
-
getRobotPose_TargetSpace2D
Gets therobotPose_TargetSpacefor this target.- Returns:
- The
robotPose_TargetSpacefor this target, parsed into aPose2d.
-
getTargetPose_CameraSpace2D
Gets thetargetPose_CameraSpacefor this target.- Returns:
- The
targetPose_CameraSpacefor this target, parsed into aPose2d.
-
getTargetPose_RobotSpace2D
Gets thetargetPose_RobotSpacefor this target.- Returns:
- The
targetPose_RobotSpacefor this target, parsed into aPose2d.
-