+ +
+ +

Enum Class AprilTagFields

+
+
java.lang.Object +
java.lang.Enum<AprilTagFields> +
common.hardware.camera.AprilTagFields
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<AprilTagFields>, Constable
+
+
+
public enum AprilTagFields +extends Enum<AprilTagFields>
+
Loadable AprilTag field layouts.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      k2022RapidReact

      +
      public static final AprilTagFields k2022RapidReact
      +
      2022 Rapid React.
      +
      +
    • +
    • +
      +

      k2023ChargedUp

      +
      public static final AprilTagFields k2023ChargedUp
      +
      2023 Charged Up.
      +
      +
    • +
    • +
      +

      k2024Crescendo

      +
      public static final AprilTagFields k2024Crescendo
      +
      2024 Crescendo.
      +
      +
    • +
    • +
      +

      k2024OffseasonCrescendo

      +
      public static final AprilTagFields k2024OffseasonCrescendo
      +
      2024 Offseason Crescendo
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      kBaseResourceDir

      +
      public static final String kBaseResourceDir
      +
      Base resource directory.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      kDefaultField

      +
      public static final AprilTagFields kDefaultField
      +
      Alias to the current game.
      +
      +
    • +
    • +
      +

      m_resourceFile

      +
      public final String m_resourceFile
      +
      Resource filename.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static AprilTagFields[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static AprilTagFields valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      loadAprilTagLayoutField

      +
      public edu.wpi.first.apriltag.AprilTagFieldLayout loadAprilTagLayoutField()
      +
      Get a AprilTagFieldLayout from the resource JSON.
      +
      +
      Returns:
      +
      AprilTagFieldLayout of the field
      +
      Throws:
      +
      UncheckedIOException - If the layout does not exist
      +
      +
      +
    • +
    • +
      +

      loadFromResource

      +
      public static edu.wpi.first.apriltag.AprilTagFieldLayout loadFromResource(String resourcePath) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +