Class RetroreflectiveTarget
java.lang.Object
io.github.roboblazers7617.limelight.targets.RetroreflectiveTarget
Represents a Color/Retroreflective Target Result extracted from JSON Output.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleThe size of the target as a percentage of the image [0-1].doubledoubleX-coordinate of the center of the target in degrees relative to crosshair.doubleX-coordinate of the center of the target in degrees relative to principal piexel.doubleX-coordinate of the center of the target in pixels relative to crosshair.doubleY-coordinate of the center of the target in degrees relative to crosshair.doubleY-coordinate of the center of the target in degrees relative to principal pixel.doubleY-coordinate of the center of the target in pixels relative to crosshair. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RetroreflectiveTarget with blank values. -
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
-
ta
public double taThe size of the target as a percentage of the image [0-1]. -
tx
public double txX-coordinate of the center of the target in degrees relative to crosshair. Positive-right, center-zero. -
ty
public double tyY-coordinate of the center of the target in degrees relative to crosshair. Positive-down, center-zero. -
tx_pixels
public double tx_pixelsX-coordinate of the center of the target in pixels relative to crosshair. Positive-right, center-zero. -
ty_pixels
public double ty_pixelsY-coordinate of the center of the target in pixels relative to crosshair. Positive-down, center-zero. -
tx_nocrosshair
public double tx_nocrosshairX-coordinate of the center of the target in degrees relative to principal piexel. Positive-right, center-zero. -
ty_nocrosshair
public double ty_nocrosshairY-coordinate of the center of the target in degrees relative to principal pixel. Positive-right, center-zero. -
ts
public double ts
-
-
Constructor Details
-
RetroreflectiveTarget
public RetroreflectiveTarget()Creates a new RetroreflectiveTarget 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.
-