Package frc.robot.subsystems.vision
Record Class PoseObservation
java.lang.Object
java.lang.Record
frc.robot.subsystems.vision.PoseObservation
public record PoseObservation(edu.wpi.first.math.geometry.Pose3d robotPose, double timestampSeconds, double ambiguity, int id, edu.wpi.first.math.Matrix<edu.wpi.first.math.numbers.N3,edu.wpi.first.math.numbers.N1> stdDevs, org.photonvision.PhotonPoseEstimator.PoseStrategy method) extends Record
Constructor Summary
ConstructorsConstructorDescriptionPoseObservation(edu.wpi.first.math.geometry.Pose3d robotPose, double timestampSeconds, double ambiguity, int id, edu.wpi.first.math.Matrix<edu.wpi.first.math.numbers.N3, edu.wpi.first.math.numbers.N1> stdDevs, org.photonvision.PhotonPoseEstimator.PoseStrategy method) Creates an instance of aPoseObservationrecord class.Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theambiguityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.org.photonvision.PhotonPoseEstimator.PoseStrategymethod()Returns the value of themethodrecord component.edu.wpi.first.math.geometry.Pose3dReturns the value of therobotPoserecord component.edu.wpi.first.math.Matrix<edu.wpi.first.math.numbers.N3,edu.wpi.first.math.numbers.N1> stdDevs()Returns the value of thestdDevsrecord component.doubleReturns the value of thetimestampSecondsrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
PoseObservation
public PoseObservation(edu.wpi.first.math.geometry.Pose3d robotPose, double timestampSeconds, double ambiguity, int id, edu.wpi.first.math.Matrix<edu.wpi.first.math.numbers.N3, edu.wpi.first.math.numbers.N1> stdDevs, org.photonvision.PhotonPoseEstimator.PoseStrategy method) Creates an instance of aPoseObservationrecord class.- Parameters:
robotPose- the value for therobotPoserecord componenttimestampSeconds- the value for thetimestampSecondsrecord componentambiguity- the value for theambiguityrecord componentid- the value for theidrecord componentstdDevs- the value for thestdDevsrecord componentmethod- the value for themethodrecord 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 '=='.robotPose
public edu.wpi.first.math.geometry.Pose3d robotPose()Returns the value of therobotPoserecord component.- Returns:
- the value of the
robotPoserecord component
timestampSeconds
public double timestampSeconds()Returns the value of thetimestampSecondsrecord component.- Returns:
- the value of the
timestampSecondsrecord component
ambiguity
public double ambiguity()Returns the value of theambiguityrecord component.- Returns:
- the value of the
ambiguityrecord component
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
stdDevs
public edu.wpi.first.math.Matrix<edu.wpi.first.math.numbers.N3,edu.wpi.first.math.numbers.N1> stdDevs()Returns the value of thestdDevsrecord component.- Returns:
- the value of the
stdDevsrecord component
method
public org.photonvision.PhotonPoseEstimator.PoseStrategy method()Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component