Package xbot.common.subsystems.vision
Class AprilTagCamera
java.lang.Object
xbot.common.subsystems.vision.SimpleCamera
xbot.common.subsystems.vision.AprilTagCamera
This class provides common base implementation for April Tag capable cameras on the robot.
-
Field Summary
Fields inherited from class xbot.common.subsystems.vision.SimpleCamera
camera, friendlyName
-
Constructor Summary
ConstructorDescriptionAprilTagCamera
(CameraInfo cameraInfo, Supplier<Double> poseStableTime, AprilTagFieldLayout fieldLayout, String prefix) Create a new AprilTagCamera. -
Method Summary
Modifier and TypeMethodDescriptionGet the time stable validator.Get the pose estimator.Methods inherited from class xbot.common.subsystems.vision.SimpleCamera
getCamera, getName, isCameraWorking
-
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
Get the pose estimator.- Returns:
- The pose estimator.
-
getIsStableValidator
Get the time stable validator.- Returns:
- The time stable validator.
-