Class AprilTagCamera

java.lang.Object
xbot.common.subsystems.vision.SimpleCamera
xbot.common.subsystems.vision.AprilTagCamera

public class AprilTagCamera extends SimpleCamera
This class provides common base implementation for April Tag capable cameras on the robot.
  • Constructor Details

    • AprilTagCamera

      public AprilTagCamera(CameraInfo cameraInfo, Supplier<Double> poseStableTime, AprilTagFieldLayout fieldLayout, String prefix)
      Create a new AprilTagCamera.
      Parameters:
      cameraInfo - The information about the camera.
      poseStableTime - The time that the pose must be stable for before it is considered valid.
      fieldLayout - The layout of the field.
  • Method Details

    • getPoseEstimator

      public PhotonPoseEstimator getPoseEstimator()
      Get the pose estimator.
      Returns:
      The pose estimator.
    • getIsStableValidator

      public TimeStableValidator getIsStableValidator()
      Get the time stable validator.
      Returns:
      The time stable validator.