Package robot.vision
Record Class TagManager.Tag
java.lang.Object
java.lang.Record
robot.vision.TagManager.Tag
- Enclosing class:
- TagManager
public static record TagManager.Tag(int id, edu.wpi.first.math.geometry.Transform3d pos, edu.wpi.first.math.geometry.Pose3d fieldPos, double time, int camera)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTag(int id, edu.wpi.first.math.geometry.Transform3d pos, edu.wpi.first.math.geometry.Pose3d fieldPos, double time, int camera) Creates an instance of aTagrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcamera()Returns the value of thecamerarecord component.final booleanIndicates whether some other object is "equal to" this one.edu.wpi.first.math.geometry.Pose3dfieldPos()Returns the value of thefieldPosrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.edu.wpi.first.math.geometry.Transform3dpos()Returns the value of theposrecord component.doubletime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tag
public Tag(int id, edu.wpi.first.math.geometry.Transform3d pos, edu.wpi.first.math.geometry.Pose3d fieldPos, double time, int camera) Creates an instance of aTagrecord class.- Parameters:
id- the value for theidrecord componentpos- the value for theposrecord componentfieldPos- the value for thefieldPosrecord componenttime- the value for thetimerecord componentcamera- the value for thecamerarecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
pos
public edu.wpi.first.math.geometry.Transform3d pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
fieldPos
public edu.wpi.first.math.geometry.Pose3d fieldPos()Returns the value of thefieldPosrecord component.- Returns:
- the value of the
fieldPosrecord component
-
time
public double time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
camera
public int camera()Returns the value of thecamerarecord component.- Returns:
- the value of the
camerarecord component
-