Package limelight.networktables.target
Class RetroreflectiveTape
java.lang.Object
limelight.networktables.target.RetroreflectiveTape
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)doubleTimestamp in milliseconds from boot.doubleX-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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the current botpose as aPose3dobject.Get the current botpose as aPose2dobject.Get the current botpose as aPose3dobject.Get the current botpose as aPose2dobject.Get the current botpose as aPose3dobject.Get the current botpose as aPose2dobject.Get the current botpose as aPose3dobject.Get the current botpose as aPose2dobject.Get the current botpose as aPose3dobject.Get the current botpose as aPose2dobject.
-
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 tsTimestamp in milliseconds from boot.
-
-
Constructor Details
-
RetroreflectiveTape
public RetroreflectiveTape()Create the RetroreflectiveTape object
-
-
Method Details
-
getCameraPose_TargetSpace
Get the current botpose as aPose3dobject.- Returns:
Pose3dobject representing the botpose.
-
getRobotPose_FieldSpace
Get the current botpose as aPose3dobject.- Returns:
Pose3dobject representing the botpose.
-
getRobotPose_TargetSpace
Get the current botpose as aPose3dobject.- Returns:
Pose3dobject representing the botpose.
-
getTargetPose_CameraSpace
Get the current botpose as aPose3dobject.- Returns:
Pose3dobject representing the botpose.
-
getTargetPose_RobotSpace
Get the current botpose as aPose3dobject.- Returns:
Pose3dobject representing the botpose.
-
getCameraPose_TargetSpace2D
Get the current botpose as aPose2dobject.- Returns:
Pose2dobject representing the botpose.
-
getRobotPose_FieldSpace2D
Get the current botpose as aPose2dobject.- Returns:
Pose2dobject representing the botpose.
-
getRobotPose_TargetSpace2D
Get the current botpose as aPose2dobject.- Returns:
Pose2dobject representing the botpose.
-
getTargetPose_CameraSpace2D
Get the current botpose as aPose2dobject.- Returns:
Pose2dobject representing the botpose.
-
getTargetPose_RobotSpace2D
Get the current botpose as aPose2dobject.- Returns:
Pose2dobject representing the botpose.
-