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, which must be unique.

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

  • Field Details

  • Constructor Details

    • Camera

      private Camera(String name, org.wpilib.math.geometry.Transform3d robotToCamera, double stdDevFactor, VisionConstants.CameraType type)
      Internal constructor to setup a camera.
      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 camera's standard deviations by
      type - the vision software backend used by the camera
  • 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()
    • getCameraType