Package frc.robot
Class FieldConstants.Hub
java.lang.Object
frc.robot.FieldConstants.Hub
- Enclosing class:
- FieldConstants
Hub geometry and reference points (center, corners, and faces).
Many points are defined using the AprilTag poses to remain consistent with the official field layout.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Translation2dTranslation 2d of the center of the Hubstatic final Pose2dPose of the hub "far" face (toward opposing side).static final Translation2dAlliance-side hub far corner (away from alliance wall), left side.static final Translation2dAlliance-side hub far corner (away from alliance wall), right side.static final doubleOuter hub height in meters (includes the catcher/top feature).static final Translation3dCenter point of the inner opening on the alliance side.static final doubleInner opening height in meters.static final doubleInner opening diameter/width in meters.static final Pose2dPose of the hub left face (higher Y direction).static final Pose2dPose of the hub "near" face (alliance side).static final Translation2dAlliance-side hub corner closest to the alliance wall, left side.static final Translation2dAlliance-side hub corner closest to the alliance wall, right side.static final Translation2dOpposing-side hub far corner (toward field center), left side.static final Translation2dOpposing-side hub far corner (toward field center), right side.static final Translation2dOpposing-side hub corner closest to the far wall, left side.static final Translation2dOpposing-side hub corner closest to the far wall, right side.static final Translation3dCenter point of the top of the hub on the opposing side.static final Pose2dPose of the hub right face (lower Y direction).static final Translation3dCenter point of the top of the hub on the alliance side.static final doubleOuter hub diameter/width in meters. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
width
public static final double widthOuter hub diameter/width in meters. -
height
public static final double heightOuter hub height in meters (includes the catcher/top feature). -
innerWidth
public static final double innerWidthInner opening diameter/width in meters. -
innerHeight
public static final double innerHeightInner opening height in meters. -
topCenterPoint
Center point of the top of the hub on the alliance side. -
innerCenterPoint
Center point of the inner opening on the alliance side. -
centerHub
Translation 2d of the center of the Hub -
nearLeftCorner
Alliance-side hub corner closest to the alliance wall, left side. -
nearRightCorner
Alliance-side hub corner closest to the alliance wall, right side. -
farLeftCorner
Alliance-side hub far corner (away from alliance wall), left side. -
farRightCorner
Alliance-side hub far corner (away from alliance wall), right side. -
oppTopCenterPoint
Center point of the top of the hub on the opposing side. -
oppNearLeftCorner
Opposing-side hub corner closest to the far wall, left side. -
oppNearRightCorner
Opposing-side hub corner closest to the far wall, right side. -
oppFarLeftCorner
Opposing-side hub far corner (toward field center), left side. -
oppFarRightCorner
Opposing-side hub far corner (toward field center), right side. -
nearFace
Pose of the hub "near" face (alliance side).Derived from AprilTag 26 pose.
-
farFace
Pose of the hub "far" face (toward opposing side).Derived from AprilTag 20 pose.
-
rightFace
Pose of the hub right face (lower Y direction).Derived from AprilTag 18 pose.
-
leftFace
Pose of the hub left face (higher Y direction).Derived from AprilTag 21 pose.
-
-
Constructor Details
-
Hub
public Hub()
-