Enum Class VisionConstants.Camera

java.lang.Object
java.lang.Enum<VisionConstants.Camera>
com.stuypulse.robot.subsystems.vision.VisionConstants.Camera
All Implemented Interfaces:
Serializable, Comparable<VisionConstants.Camera>, Constable
Enclosing interface:
VisionConstants

Represents a camera from its physical position and identified by name.

An constant of this enum looks like this NAME("detailed name", new Transform3d(x, y, z, rotation), 1.0);

  • Field Details

  • Constructor Details

    • Camera

      private Camera(String name, org.wpilib.math.geometry.Transform3d robotToCamera, double stdDevFactor)
      Internal constructor to setup a camera with a VisionConstants.CameraData instance
      Parameters:
      name - name of the camera, can be more detailed than its simple enum constant's name
      robotToCamera - transformation from the robot origin to the camera's position
      stdDevFactor - scalar factor to multiply the camrea's standard deviations by
  • Method Details

    • values

      public static VisionConstants.Camera[] 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 VisionConstants.Camera 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
    • getName

      public String getName()
    • getRobotToCamera

      public org.wpilib.math.geometry.Transform3d getRobotToCamera()
    • getStdDevFactor

      public double getStdDevFactor()
    • getData

      Gets the backing data object
      Returns:
      The corresponding VisionConstants.CameraData instance