Record Class Jetson.Camera
java.lang.Object
java.lang.Record
frc.robot.subsystems.vision.Jetson.Camera
- Enclosing class:
Jetson
public static record Jetson.Camera(String name, OrinPoseSourceIO source, Transform3d robotToCamera, boolean installed)
extends Record
One configured Orin camera, as
Jetson sees it.-
Constructor Summary
ConstructorsConstructorDescriptionCamera(String name, OrinPoseSourceIO source, Transform3d robotToCamera, boolean installed) Creates an instance of aCamerarecord 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.booleanReturns the value of theinstalledrecord component.name()Returns the value of thenamerecord component.Returns the value of therobotToCamerarecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Camera
Creates an instance of aCamerarecord class.- Parameters:
name- the value for thenamerecord componentsource- the value for thesourcerecord componentrobotToCamera- the value for therobotToCamerarecord componentinstalled- the value for theinstalledrecord 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
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
robotToCamera
Returns the value of therobotToCamerarecord component.- Returns:
- the value of the
robotToCamerarecord component
-
installed
public boolean installed()Returns the value of theinstalledrecord component.- Returns:
- the value of the
installedrecord component
-