Package com.stuypulse.robot.constants
Interface Field
public interface Field
This interface stores information about the field elements.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int[]static final edu.wpi.first.math.geometry.Pose2dstatic final AprilTag[]static final int[]static final int[]static final int[]static final int[]static final edu.wpi.first.math.geometry.Pose2dstatic final edu.wpi.first.math.geometry.Pose2dEMPTY FIELD POSESstatic final edu.wpi.first.math.geometry.Pose3dstatic final edu.wpi.first.wpilibj.smartdashboard.Field2dstatic final edu.wpi.first.math.geometry.Pose2dstatic final edu.wpi.first.math.geometry.Pose3dstatic final edu.wpi.first.math.geometry.Pose2dstatic final doublestatic final edu.wpi.first.math.geometry.Pose2dstatic final int[]static final int[]static final int[]static final int[]static final edu.wpi.first.math.geometry.Pose2dstatic final double -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic voidclearFieldObject(edu.wpi.first.wpilibj.smartdashboard.FieldObject2d fieldObject) static edu.wpi.first.math.geometry.Pose2dstatic edu.wpi.first.math.geometry.Pose2dgetFerryZonePose(edu.wpi.first.math.geometry.Translation2d robot) static edu.wpi.first.math.geometry.Pose2dstatic AprilTaggetTag(int id) static booleanstatic booleanisValidTag(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 -
hubCenter
static final edu.wpi.first.math.geometry.Pose2d hubCenter -
hubCenter3d
static final edu.wpi.first.math.geometry.Pose3d hubCenter3d -
leftFerryZone
static final edu.wpi.first.math.geometry.Pose2d leftFerryZone -
rightFerryZone
static final edu.wpi.first.math.geometry.Pose2d rightFerryZone -
outpost
static final edu.wpi.first.math.geometry.Pose2d outpost -
allianceZone
static final edu.wpi.first.math.geometry.Pose2d allianceZone -
APRILTAGS
-
RED_HUB_TAG_IDS
static final int[] RED_HUB_TAG_IDS -
BLUE_HUB_TAG_IDS
static final int[] BLUE_HUB_TAG_IDS -
RED_TRENCH_TAG_IDS
static final int[] RED_TRENCH_TAG_IDS -
BLUE_TRENCH_TAG_IDS
static final int[] BLUE_TRENCH_TAG_IDS -
RED_TOWER_TAG_IDS
static final int[] RED_TOWER_TAG_IDS -
BLUE_TOWER_TAG_IDS
static final int[] BLUE_TOWER_TAG_IDS -
RED_HP_TAG_IDS
static final int[] RED_HP_TAG_IDS -
BLUE_HP_TAG_IDS
static final int[] BLUE_HP_TAG_IDS -
ALL_TAGS
static final int[] ALL_TAGS -
blueHubCenter
static final edu.wpi.first.math.geometry.Pose2d blueHubCenter -
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
-
getHubPose
static edu.wpi.first.math.geometry.Pose2d getHubPose() -
getFerryZonePose
static edu.wpi.first.math.geometry.Pose2d getFerryZonePose(edu.wpi.first.math.geometry.Translation2d robot) -
inAllianceZone
static boolean inAllianceZone() -
isValidTag
static boolean isValidTag(int id) -
getTag
-
getAllianceHubPose
static edu.wpi.first.math.geometry.Pose2d getAllianceHubPose() -
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
-
clearFieldObject
static void clearFieldObject(edu.wpi.first.wpilibj.smartdashboard.FieldObject2d fieldObject)
-