Package org.ironmaple.utils
Class FieldMirroringUtils
java.lang.Object
org.ironmaple.utils.FieldMirroringUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
static final double
static final Translation3d
static final Supplier<Translation2d>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Rotation2d
static boolean
static Pose2d
toCurrentAlliancePose
(Pose2d poseAtBlueSide) static Rotation2d
toCurrentAllianceRotation
(Rotation2d rotationAtBlueSide) static Translation2d
toCurrentAllianceTranslation
(Translation2d translationAtBlueSide) static Translation3d
toCurrentAllianceTranslation
(Translation3d translation3dAtBlueSide)
-
Field Details
-
FIELD_WIDTH
public static final double FIELD_WIDTH- See Also:
-
FIELD_HEIGHT
public static final double FIELD_HEIGHT- See Also:
-
SPEAKER_POSE_BLUE
-
SPEAKER_POSITION_SUPPLIER
-
-
Constructor Details
-
FieldMirroringUtils
public FieldMirroringUtils()
-
-
Method Details
-
toCurrentAllianceRotation
-
toCurrentAllianceTranslation
-
toCurrentAllianceTranslation
-
toCurrentAlliancePose
-
isSidePresentedAsRed
public static boolean isSidePresentedAsRed() -
getCurrentAllianceDriverStationFacing
-