Package org.parts3492.partslib
Interface Field
public interface Field
This interface stores information about the field elements.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumCORAL STATIONSstatic enumAPRILTAGS -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final edu.wpi.first.math.geometry.Translation2dREEFstatic final AprilTag[]static final int[]static final doublestatic final doublestatic final doublestatic final edu.wpi.first.math.geometry.Pose2dEMPTY FIELD POSESstatic final edu.wpi.first.math.geometry.Pose3dstatic final edu.wpi.first.wpilibj.smartdashboard.Field2dstatic final doublestatic final doublestatic final edu.wpi.first.math.geometry.Translation2dstatic final int[]static final double -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic voidclearFieldObject(edu.wpi.first.wpilibj.smartdashboard.FieldObject2d fieldObject) static edu.wpi.first.math.geometry.Pose2dconditionallyTransformToOppositeAlliance(edu.wpi.first.math.geometry.Pose2d pose) static edu.wpi.first.math.geometry.Pose3dconditionallyTransformToOppositeAlliance(edu.wpi.first.math.geometry.Pose3d pose) static edu.wpi.first.math.geometry.Translation2dconditionallyTransformToOppositeAlliance(edu.wpi.first.math.geometry.Translation2d translation) static List<edu.wpi.first.math.geometry.Pose2d>conditionallyTransformToOppositeAlliance(List<edu.wpi.first.math.geometry.Pose2d> poses) static int[]static AprilTaggetTag(int id) static booleanisValidTag(int id) static booleanseesReefTags(int[] reefArray, int id) static edu.wpi.first.math.geometry.Pose2dtransformToOppositeAlliance(edu.wpi.first.math.geometry.Pose2d pose) static edu.wpi.first.math.geometry.Pose3dtransformToOppositeAlliance(edu.wpi.first.math.geometry.Pose3d pose) static edu.wpi.first.math.geometry.Translation2dtransformToOppositeAlliance(edu.wpi.first.math.geometry.Translation2d translation) static List<edu.wpi.first.math.geometry.Pose2d>transformToOppositeAlliance(List<edu.wpi.first.math.geometry.Pose2d> poses)
-
Field Details
-
FIELD2D
static final edu.wpi.first.wpilibj.smartdashboard.Field2d FIELD2D -
WIDTH
static final double WIDTH -
LENGTH
static final double LENGTH -
APRILTAGS
-
BLUE_REEF_TAG_IDS
static final int[] BLUE_REEF_TAG_IDS -
RED_REEF_TAG_IDS
static final int[] RED_REEF_TAG_IDS -
ALLIANCE_REEF_CENTER
static final edu.wpi.first.math.geometry.Translation2d ALLIANCE_REEF_CENTERREEF -
OPPOSITE_ALLIANCE_REEF_CENTER
static final edu.wpi.first.math.geometry.Translation2d OPPOSITE_ALLIANCE_REEF_CENTER -
LENGTH_OF_REEF_FACE
static final double LENGTH_OF_REEF_FACE -
CENTER_OF_REEF_TO_L1_CORNER
static final double CENTER_OF_REEF_TO_L1_CORNER -
CENTER_OF_REEF_TO_REEF_FACE
static final double CENTER_OF_REEF_TO_REEF_FACE -
CENTER_OF_TROUGH_TO_BRANCH
static final double CENTER_OF_TROUGH_TO_BRANCH -
EMPTY_FIELD_POSE2D
static final edu.wpi.first.math.geometry.Pose2d EMPTY_FIELD_POSE2DEMPTY FIELD POSES -
EMPTY_FIELD_POSE3D
static final edu.wpi.first.math.geometry.Pose3d EMPTY_FIELD_POSE3D
-
-
Method Details
-
conditionallyTransformToOppositeAlliance
static edu.wpi.first.math.geometry.Pose3d conditionallyTransformToOppositeAlliance(edu.wpi.first.math.geometry.Pose3d pose) -
conditionallyTransformToOppositeAlliance
static edu.wpi.first.math.geometry.Pose2d conditionallyTransformToOppositeAlliance(edu.wpi.first.math.geometry.Pose2d pose) -
conditionallyTransformToOppositeAlliance
static edu.wpi.first.math.geometry.Translation2d conditionallyTransformToOppositeAlliance(edu.wpi.first.math.geometry.Translation2d translation) -
conditionallyTransformToOppositeAlliance
-
transformToOppositeAlliance
static edu.wpi.first.math.geometry.Pose3d transformToOppositeAlliance(edu.wpi.first.math.geometry.Pose3d pose) -
transformToOppositeAlliance
static edu.wpi.first.math.geometry.Pose2d transformToOppositeAlliance(edu.wpi.first.math.geometry.Pose2d pose) -
transformToOppositeAlliance
static edu.wpi.first.math.geometry.Translation2d transformToOppositeAlliance(edu.wpi.first.math.geometry.Translation2d translation) -
transformToOppositeAlliance
-
isValidTag
static boolean isValidTag(int id) -
getTag
-
getAllTagIDs
static int[] getAllTagIDs() -
seesReefTags
static boolean seesReefTags(int[] reefArray, int id) -
clearFieldObject
static void clearFieldObject(edu.wpi.first.wpilibj.smartdashboard.FieldObject2d fieldObject)
-