Record Class VisionPoseObservation
java.lang.Object
java.lang.Record
xbot.common.subsystems.vision.VisionPoseObservation
public record VisionPoseObservation(org.wpilib.math.geometry.Pose2d visionRobotPoseMeters, double timestampSeconds, org.wpilib.math.linalg.Matrix<org.wpilib.math.numbers.N3, org.wpilib.math.numbers.N1> visionMeasurementStdDevs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVisionPoseObservation(org.wpilib.math.geometry.Pose2d visionRobotPoseMeters, double timestampSeconds, org.wpilib.math.linalg.Matrix<org.wpilib.math.numbers.N3, org.wpilib.math.numbers.N1> visionMeasurementStdDevs) Creates an instance of aVisionPoseObservationrecord 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.doubleReturns the value of thetimestampSecondsrecord component.final StringtoString()Returns a string representation of this record class.org.wpilib.math.linalg.Matrix<org.wpilib.math.numbers.N3, org.wpilib.math.numbers.N1> Returns the value of thevisionMeasurementStdDevsrecord component.org.wpilib.math.geometry.Pose2dReturns the value of thevisionRobotPoseMetersrecord component.
-
Constructor Details
-
VisionPoseObservation
public VisionPoseObservation(org.wpilib.math.geometry.Pose2d visionRobotPoseMeters, double timestampSeconds, org.wpilib.math.linalg.Matrix<org.wpilib.math.numbers.N3, org.wpilib.math.numbers.N1> visionMeasurementStdDevs) Creates an instance of aVisionPoseObservationrecord class.- Parameters:
visionRobotPoseMeters- the value for thevisionRobotPoseMetersrecord componenttimestampSeconds- the value for thetimestampSecondsrecord componentvisionMeasurementStdDevs- the value for thevisionMeasurementStdDevsrecord 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. -
visionRobotPoseMeters
public org.wpilib.math.geometry.Pose2d visionRobotPoseMeters()Returns the value of thevisionRobotPoseMetersrecord component.- Returns:
- the value of the
visionRobotPoseMetersrecord component
-
timestampSeconds
public double timestampSeconds()Returns the value of thetimestampSecondsrecord component.- Returns:
- the value of the
timestampSecondsrecord component
-
visionMeasurementStdDevs
public org.wpilib.math.linalg.Matrix<org.wpilib.math.numbers.N3, org.wpilib.math.numbers.N1> visionMeasurementStdDevs()Returns the value of thevisionMeasurementStdDevsrecord component.- Returns:
- the value of the
visionMeasurementStdDevsrecord component
-