Record Class QuestNavProtocol.Frame
java.lang.Object
java.lang.Record
frc.robot.subsystems.vision.QuestNavProtocol.Frame
- Enclosing class:
QuestNavProtocol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theappTimestamprecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theframeCountrecord component.final inthashCode()Returns a hash code value for this object.pose()Returns the value of theposerecord component.final StringtoString()Returns a string representation of this record class.booleantracking()Returns the value of thetrackingrecord component.
-
Constructor Details
-
Frame
Creates an instance of aFramerecord class.- Parameters:
frameCount- the value for theframeCountrecord componentappTimestamp- the value for theappTimestamprecord componentpose- the value for theposerecord componenttracking- the value for thetrackingrecord 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. -
frameCount
public int frameCount()Returns the value of theframeCountrecord component.- Returns:
- the value of the
frameCountrecord component
-
appTimestamp
public double appTimestamp()Returns the value of theappTimestamprecord component.- Returns:
- the value of the
appTimestamprecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
tracking
public boolean tracking()Returns the value of thetrackingrecord component.- Returns:
- the value of the
trackingrecord component
-