Enum Class LimelightPoseEstimator.BotPose

java.lang.Object
java.lang.Enum<LimelightPoseEstimator.BotPose>
limelight.networktables.LimelightPoseEstimator.BotPose
All Implemented Interfaces:
Serializable, Comparable<LimelightPoseEstimator.BotPose>, Constable
Enclosing class:
LimelightPoseEstimator

public static enum LimelightPoseEstimator.BotPose extends Enum<LimelightPoseEstimator.BotPose>
BotPose enum for easier decoding.
  • Enum Constant Details

    • RED

      public static final LimelightPoseEstimator.BotPose RED
      (Not Recommended) The robot's pose in the WPILib Red Alliance Coordinate System.
    • RED_MEGATAG2

      public static final LimelightPoseEstimator.BotPose RED_MEGATAG2
      (Not Recommended) The robot's pose in the WPILib Red Alliance Coordinate System with MegaTag2.
    • BLUE

      public static final LimelightPoseEstimator.BotPose BLUE
      (Recommended) The robot's 3D pose in the WPILib Blue Alliance Coordinate System.
    • BLUE_MEGATAG2

      public static final LimelightPoseEstimator.BotPose BLUE_MEGATAG2
      (Recommended) The robot's 3D pose in the WPILib Blue Alliance Coordinate System with MegaTag2.
  • Method Details

    • values

      public static LimelightPoseEstimator.BotPose[] 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 LimelightPoseEstimator.BotPose 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
    • get

      public Optional<PoseEstimate> get(Limelight camera)
      Fetch the PoseEstimate if it exists.
      Parameters:
      camera - Limelight to use.
      Returns:
      Current PoseEstimate.