Package org.team1126.robot.util
Class Field
java.lang.Object
org.team1126.robot.util.Field
Field locations and utilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExtTranslationThe far left corner of the HUB, from the perspective of the DRIVER STATION.static final ExtTranslationThe far right corner of the HUB, from the perspective of the DRIVER STATION.static final doubleFAR X coordinate of the barrier.static final doubleMagic number (108.5") based on the measurement from the diagrams.static final doubleLEFT Y coordinate of the barrier.static final ExtTranslationThe near left corner of the HUB, from the perspective of the DRIVER STATION.static final ExtTranslationThe near right corner of the HUB, from the perspective of the DRIVER STATION.static final doubleNEAR X coordinate of the barrier.static final doubleRIGHT Y coordinate of the barrier.static final doubleThe X coordinate of the edge of the blue ALLIANCE ZONE.static final edu.wpi.first.math.geometry.Rotation2dstatic final doublestatic final doublestatic final doubleHUB Center Y Coordinatestatic final ExtTranslationPicking the center of the hub as the hub's location, for the purpose of aiming.static final doubleCenter X of the hub is half way between AT26 and AT20.static final doubleAT26 Y point is the center Y for the hub.static final doubleThe width of the hub as indicated on field maps.static final PAPFController.Obstacle[]Obstacles for the P-APF.static final ExtPoseInline with the trench (to pass through), so facing opposite of april tag.static final doubleX location of pivot point, relative to blue, right.static final doubleY location of pivot point, relative to blue, right.static final doubleThe X coordinate of the edge of the red ALLIANCE ZONE.static final ExtTranslationstatic final ExtTranslationstatic final doubleY coordinate of the depot side of the tower.static final doubleDepth of the tower base from the end wall to the edge of the plate.static final doubleX coordinate of the far edge of the tower base.static final doubleHalf of the width of the tower base.static final doubleX coordinate of the driver side wall for the tower base.static final ExtTranslationstatic final ExtTranslationstatic final doubleY coordinate of the outpost side of the tower.static final doubleThe center of the field over its length (X direction).static final doubleThe center of the field over its width (Y direction). -
Method Summary
-
Field Details
-
PIVOT_X
public static final double PIVOT_XX location of pivot point, relative to blue, right. -
PIVOT_Y
public static final double PIVOT_YY location of pivot point, relative to blue, right. -
pivot
Inline with the trench (to pass through), so facing opposite of april tag. -
DEPOT_X
public static final double DEPOT_X -
DEPOT_Y
public static final double DEPOT_Y -
DEPOT_ROT
public static final edu.wpi.first.math.geometry.Rotation2d DEPOT_ROT -
X_CENTER
public static final double X_CENTERThe center of the field over its length (X direction). Also the CENTER LINE. -
Y_CENTER
public static final double Y_CENTERThe center of the field over its width (Y direction). -
FIELD_CENTER_Y
public static final double FIELD_CENTER_YHUB Center Y Coordinate -
HUB_WIDTH
public static final double HUB_WIDTHThe width of the hub as indicated on field maps. -
BLUE_ZONE
public static final double BLUE_ZONEThe X coordinate of the edge of the blue ALLIANCE ZONE. -
RED_ZONE
public static final double RED_ZONEThe X coordinate of the edge of the red ALLIANCE ZONE. -
HUB_CENTER_Y
public static final double HUB_CENTER_YAT26 Y point is the center Y for the hub. -
HUB_CENTER_X
public static final double HUB_CENTER_XCenter X of the hub is half way between AT26 and AT20. -
HUB
Picking the center of the hub as the hub's location, for the purpose of aiming. -
BARRIER_HALF_WIDTH
public static final double BARRIER_HALF_WIDTHMagic number (108.5") based on the measurement from the diagrams. -
BARRIER_LEFT_Y
public static final double BARRIER_LEFT_YLEFT Y coordinate of the barrier. -
BARRIER_RIGHT_Y
public static final double BARRIER_RIGHT_YRIGHT Y coordinate of the barrier. -
BARRIER_NEAR_X
public static final double BARRIER_NEAR_XNEAR X coordinate of the barrier. -
BARRIER_FAR_X
public static final double BARRIER_FAR_XFAR X coordinate of the barrier. -
BARRIER_NEAR_LEFT_CORNER
The near left corner of the HUB, from the perspective of the DRIVER STATION. -
BARRIER_NEAR_RIGHT_CORNER
The near right corner of the HUB, from the perspective of the DRIVER STATION. -
BARRIER_FAR_LEFT_CORNER
The far left corner of the HUB, from the perspective of the DRIVER STATION. -
BARRIER_FAR_RIGHT_CORNER
The far right corner of the HUB, from the perspective of the DRIVER STATION. -
TOWER_DEPTH
public static final double TOWER_DEPTHDepth of the tower base from the end wall to the edge of the plate. -
TOWER_HALF_WIDTH
public static final double TOWER_HALF_WIDTHHalf of the width of the tower base. -
TOWER_DEPOT_Y
public static final double TOWER_DEPOT_YY coordinate of the depot side of the tower. -
TOWER_OUTPOST_Y
public static final double TOWER_OUTPOST_YY coordinate of the outpost side of the tower. -
TOWER_NEAR_X
public static final double TOWER_NEAR_XX coordinate of the driver side wall for the tower base. -
TOWER_FAR_X
public static final double TOWER_FAR_XX coordinate of the far edge of the tower base. -
TOWER_DEPOT_NEAR_CORNER
-
TOWER_DEPOT_FAR_CORNER
-
TOWER_OUTPOST_NEAR_CORNER
-
TOWER_OUTPOST_FAR_CORNER
-
OBSTACLES
Obstacles for the P-APF.
-