Enum Class 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);
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInternal constructor to setup a camera with aVisionConstants.CameraDatainstance -
Method Summary
Modifier and TypeMethodDescriptiongetData()Gets the backing data objectgetName()org.wpilib.math.geometry.Transform3ddoublestatic VisionConstants.CameraReturns the enum constant of this class with the specified name.static VisionConstants.Camera[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Field Details
-
data
-
-
Constructor Details
-
Camera
private Camera(String name, org.wpilib.math.geometry.Transform3d robotToCamera, double stdDevFactor) Internal constructor to setup a camera with aVisionConstants.CameraDatainstance- Parameters:
name- name of the camera, can be more detailed than its simple enum constant's namerobotToCamera- transformation from the robot origin to the camera's positionstdDevFactor- scalar factor to multiply the camrea's standard deviations by
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getName
-
getRobotToCamera
-
getStdDevFactor
-
getData
Gets the backing data object- Returns:
- The corresponding
VisionConstants.CameraDatainstance
-