Enum Class PhotonPoseEstimator.PoseStrategy

java.lang.Object
java.lang.Enum<PhotonPoseEstimator.PoseStrategy>
org.photonvision.PhotonPoseEstimator.PoseStrategy
All Implemented Interfaces:
Serializable, Comparable<PhotonPoseEstimator.PoseStrategy>, Constable
Enclosing class:
PhotonPoseEstimator

public static enum PhotonPoseEstimator.PoseStrategy extends Enum<PhotonPoseEstimator.PoseStrategy>
Position estimation strategies that can be used by the PhotonPoseEstimator class.
  • Enum Constant Details

    • LOWEST_AMBIGUITY

      public static final PhotonPoseEstimator.PoseStrategy LOWEST_AMBIGUITY
      Choose the Pose with the lowest ambiguity.
    • CLOSEST_TO_CAMERA_HEIGHT

      public static final PhotonPoseEstimator.PoseStrategy CLOSEST_TO_CAMERA_HEIGHT
      Choose the Pose which is closest to the camera height.
    • CLOSEST_TO_REFERENCE_POSE

      public static final PhotonPoseEstimator.PoseStrategy CLOSEST_TO_REFERENCE_POSE
      Choose the Pose which is closest to a set Reference position.
    • CLOSEST_TO_LAST_POSE

      public static final PhotonPoseEstimator.PoseStrategy CLOSEST_TO_LAST_POSE
      Choose the Pose which is closest to the last pose calculated
    • AVERAGE_BEST_TARGETS

      public static final PhotonPoseEstimator.PoseStrategy AVERAGE_BEST_TARGETS
      Return the average of the best target poses using ambiguity as weight.
    • MULTI_TAG_PNP_ON_COPROCESSOR

      public static final PhotonPoseEstimator.PoseStrategy MULTI_TAG_PNP_ON_COPROCESSOR
      Use all visible tags to compute a single pose estimate on coprocessor. This option needs to be enabled on the PhotonVision web UI as well.
    • MULTI_TAG_PNP_ON_RIO

      public static final PhotonPoseEstimator.PoseStrategy MULTI_TAG_PNP_ON_RIO
      Use all visible tags to compute a single pose estimate. This runs on the RoboRIO, and can take a lot of time.
  • Method Details

    • values

      public static PhotonPoseEstimator.PoseStrategy[] 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 PhotonPoseEstimator.PoseStrategy 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