Package limelight.networktables.target
Class AprilTagFiducial
java.lang.Object
limelight.networktables.target.AprilTagFiducial
Represents an AprilTag/Fiducial Target Result extracted from JSON Output
-
Field Summary
FieldsModifier and TypeFieldDescriptionFiducial Family (16H5C, 25H9C, 36H11C, etc)doubleFiducial tag IDdoubleThe 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 AprilTag's 3D pose in target spaceGet the AprilTag's 2D pose in target spaceGet the AprilTag's 3D pose in field spaceGet the AprilTag's 2D pose in field spaceGet the AprilTag's 3D pose in target spaceGet the AprilTag's 2D pose in target spaceGet the AprilTag's 3D pose in camera spaceGet the AprilTag's 2D pose in camera spaceGet the AprilTag's 3D pose in robot spaceGet the AprilTag's 2D pose in robot space
-
Field Details
-
fiducialID
public double fiducialIDFiducial tag ID -
fiducialFamily
Fiducial Family (16H5C, 25H9C, 36H11C, etc) -
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
-
AprilTagFiducial
public AprilTagFiducial()Create the AprilTagFiducial object
-
-
Method Details
-
getCameraPose_TargetSpace
Get the AprilTag's 3D pose in target space- Returns:
Pose3dobject representing the AprilTag's position and orientation relative to the camera
-
getRobotPose_FieldSpace
Get the AprilTag's 3D pose in field space- Returns:
Pose3dobject representing the AprilTag's position and orientation relative to the robot
-
getRobotPose_TargetSpace
Get the AprilTag's 3D pose in target space- Returns:
Pose3dobject representing the AprilTag's position and orientation relative to the robot
-
getTargetPose_CameraSpace
Get the AprilTag's 3D pose in camera space- Returns:
Pose3dobject representing the AprilTag's position and orientation relative to the camera
-
getTargetPose_RobotSpace
Get the AprilTag's 3D pose in robot space- Returns:
Pose3dobject representing the AprilTag's position and orientation relative to the robot
-
getCameraPose_TargetSpace2D
Get the AprilTag's 2D pose in target space- Returns:
Pose2dobject representing the AprilTag's position and orientation relative to the camera
-
getRobotPose_FieldSpace2D
Get the AprilTag's 2D pose in field space- Returns:
Pose2dobject representing the AprilTag's position and orientation relative to the robot
-
getRobotPose_TargetSpace2D
Get the AprilTag's 2D pose in target space- Returns:
Pose2dobject representing the AprilTag's position and orientation relative to the robot
-
getTargetPose_CameraSpace2D
Get the AprilTag's 2D pose in camera space- Returns:
Pose2dobject representing the AprilTag's position and orientation relative to the camera
-
getTargetPose_RobotSpace2D
Get the AprilTag's 2D pose in robot space- Returns:
Pose2dobject representing the AprilTag's position and orientation relative to the robot
-