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 POSES ***static 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
-
WIDTH
-
LENGTH
-
hubCenter
-
hubCenter3d
-
leftFerryZone
-
rightFerryZone
-
outpost
-
allianceZone
-
APRILTAGS
-
RED_HUB_TAG_IDS
-
BLUE_HUB_TAG_IDS
-
RED_TRENCH_TAG_IDS
-
BLUE_TRENCH_TAG_IDS
-
RED_TOWER_TAG_IDS
-
BLUE_TOWER_TAG_IDS
-
RED_HP_TAG_IDS
-
BLUE_HP_TAG_IDS
-
ALL_TAGS
-
blueHubCenter
-
EMPTY_FIELD_POSE2D
EMPTY FIELD POSES *** -
EMPTY_FIELD_POSE3D
-
-
Method Details
-
getHubPose
-
getFerryZonePose
static edu.wpi.first.math.geometry.Pose2d getFerryZonePose(edu.wpi.first.math.geometry.Translation2d robot) -
inAllianceZone
-
isValidTag
-
getTag
-
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
static List<edu.wpi.first.math.geometry.Pose2d> transformToOppositeAlliance(List<edu.wpi.first.math.geometry.Pose2d> poses) -
clearFieldObject
-