Class AprilTagVisionSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.shared.subsystems.AbstractSubsystem<AprilTagVisionSubsystemConfig>
frc.robot.subsystems.apriltagvision.AprilTagVisionSubsystem
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
Subsystem that processes AprilTag camera observations for robot pose estimation.
Uses AprilTag detection via PhotonVision to provide pose corrections for the robot state estimator. Pose filtering and uncertainty calculation are
delegated to AprilTagPoseEstimator.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAprilTagVisionSubsystem(AprilTagVisionSubsystemConfig config, VisionMeasurementConsumer consumer, Consumer<edu.wpi.first.math.geometry.Pose2d> odometryResetConsumer, Supplier<edu.wpi.first.math.geometry.Pose2d> poseSupplier) Creates a new AprilTagVisionSubsystem. -
Method Summary
Modifier and TypeMethodDescriptionvoidperiodic()Pulls the latest frames from each camera, filters pose observations, and forwards accepted measurements to the robot state estimator.Methods inherited from class frc.robot.shared.subsystems.AbstractSubsystem
getConfig, isFMSAttached, isSimulation, isSubsystemDisabled, isVerbose, isVerboseLoggingEnabled, logDisabled, reportWarningMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
Method Details
-
periodic
public void periodic()Pulls the latest frames from each camera, filters pose observations, and forwards accepted measurements to the robot state estimator.
-