2026-01-18 12:53:07 -07:00
|
|
|
package frc4388.robot.constants;
|
|
|
|
|
|
2026-01-19 13:42:16 -07:00
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
|
|
|
|
import edu.wpi.first.apriltag.AprilTag;
|
2026-01-18 12:53:07 -07:00
|
|
|
import edu.wpi.first.apriltag.AprilTagFieldLayout;
|
2026-01-19 13:42:16 -07:00
|
|
|
import edu.wpi.first.math.geometry.Pose3d;
|
|
|
|
|
import edu.wpi.first.math.geometry.Rotation3d;
|
2026-01-18 12:53:07 -07:00
|
|
|
import edu.wpi.first.math.geometry.Translation2d;
|
2026-01-19 13:42:16 -07:00
|
|
|
import edu.wpi.first.math.geometry.Translation3d;
|
2026-01-18 12:53:07 -07:00
|
|
|
|
|
|
|
|
public final class FieldConstants {
|
2026-01-19 13:42:16 -07:00
|
|
|
// public static final AprilTagFieldLayout kTagLayout = AprilTagFieldLayout.loadField(AprilTagFields.k2025ReefscapeWelded);
|
2026-01-18 12:53:07 -07:00
|
|
|
|
|
|
|
|
public static final Translation2d BLUE_HUB_POS = new Translation2d();
|
|
|
|
|
public static final Translation2d RED_HUB_POS = new Translation2d();
|
|
|
|
|
|
2026-01-19 13:42:16 -07:00
|
|
|
// Test april tag field layout
|
|
|
|
|
public static final AprilTagFieldLayout kTagLayout = new AprilTagFieldLayout(
|
|
|
|
|
Arrays.asList(new AprilTag[] {
|
|
|
|
|
new AprilTag(0, new Pose3d(
|
|
|
|
|
new Translation3d(0.,0.,0.26035), new Rotation3d(0.,0.,0.)
|
|
|
|
|
)),
|
|
|
|
|
}), 100, 100);
|
2026-01-18 12:53:07 -07:00
|
|
|
|
|
|
|
|
}
|