Class Vision.VisionFieldPoseEstimate

java.lang.Object
frc.robot.subsystems.vision.Vision.VisionFieldPoseEstimate
Enclosing class:
Vision

public class Vision.VisionFieldPoseEstimate extends Object
A pose estimate bundled with the timestamp and std-devs that SwerveDrivePoseEstimator.addVisionMeasurement() expects.
  • Constructor Details

    • VisionFieldPoseEstimate

      public VisionFieldPoseEstimate(Pose2d visionRobotPoseMeters, double timestampSeconds, Matrix<N3,N1> visionMeasurementStdDevs, int numTags)
  • Method Details

    • getVisionRobotPoseMeters

      public Pose2d getVisionRobotPoseMeters()
    • getTimestampSeconds

      public double getTimestampSeconds()
      Capture time already converted out of the FPGA clock, in seconds.
    • getVisionMeasurementStdDevs

      public Matrix<N3,N1> getVisionMeasurementStdDevs()
      Std-devs for [x, y, theta]. Larger values mean less trust in that dimension.
    • getNumTags

      public int getNumTags()