Package frc.robot.subsystems.vision
Record Class Vision.AprilTagCamera
java.lang.Object
java.lang.Record
frc.robot.subsystems.vision.Vision.AprilTagCamera
- Enclosing class:
- Vision
public static record Vision.AprilTagCamera(ApriltagIO io, Vision.AprilTagIOInputs inputs, PhotonConfig config, edu.wpi.first.wpilibj.Alert disconnectedAlert) extends Record
Constructor Summary
ConstructorsConstructorDescriptionAprilTagCamera
(ApriltagIO io, Vision.AprilTagIOInputs inputs, PhotonConfig config, edu.wpi.first.wpilibj.Alert disconnectedAlert) Creates an instance of aAprilTagCamera
record class.Method Summary
Modifier and TypeMethodDescriptionconfig()
Returns the value of theconfig
record component.edu.wpi.first.wpilibj.Alert
Returns the value of thedisconnectedAlert
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.inputs()
Returns the value of theinputs
record component.io()
Returns the value of theio
record component.final String
toString()
Returns a string representation of this record class.
Constructor Details
AprilTagCamera
public AprilTagCamera(ApriltagIO io, Vision.AprilTagIOInputs inputs, PhotonConfig config, edu.wpi.first.wpilibj.Alert disconnectedAlert) Creates an instance of aAprilTagCamera
record class.- Parameters:
io
- the value for theio
record componentinputs
- the value for theinputs
record componentconfig
- the value for theconfig
record componentdisconnectedAlert
- the value for thedisconnectedAlert
record component
Method Details
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.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. All components in this record class are compared withObjects::equals(Object,Object)
.io
Returns the value of theio
record component.- Returns:
- the value of the
io
record component
inputs
Returns the value of theinputs
record component.- Returns:
- the value of the
inputs
record component
config
Returns the value of theconfig
record component.- Returns:
- the value of the
config
record component
disconnectedAlert
public edu.wpi.first.wpilibj.Alert disconnectedAlert()Returns the value of thedisconnectedAlert
record component.- Returns:
- the value of the
disconnectedAlert
record component