Record Class VisionConstants.CameraData
java.lang.Object
java.lang.Record
com.stuypulse.robot.subsystems.vision.VisionConstants.CameraData
- Enclosing interface:
VisionConstants
public static record VisionConstants.CameraData(String name, org.wpilib.math.geometry.Transform3d robotToCamera, double stdDevFactor)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thenamerecord component.private final org.wpilib.math.geometry.Transform3dThe field for therobotToCamerarecord component.private final doubleThe field for thestdDevFactorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCameraData(String name, org.wpilib.math.geometry.Transform3d robotToCamera, double stdDevFactor) Creates an instance of aCameraDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.org.wpilib.math.geometry.Transform3dReturns the value of therobotToCamerarecord component.doubleReturns the value of thestdDevFactorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
-
robotToCamera
The field for therobotToCamerarecord component. -
stdDevFactor
The field for thestdDevFactorrecord component.
-
-
Constructor Details
-
CameraData
public CameraData(String name, org.wpilib.math.geometry.Transform3d robotToCamera, double stdDevFactor) Creates an instance of aCameraDatarecord class.- Parameters:
name- the value for thenamerecord componentrobotToCamera- the value for therobotToCamerarecord componentstdDevFactor- the value for thestdDevFactorrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
robotToCamera
Returns the value of therobotToCamerarecord component.- Returns:
- the value of the
robotToCamerarecord component
-
stdDevFactor
Returns the value of thestdDevFactorrecord component.- Returns:
- the value of the
stdDevFactorrecord component
-