Class VisionIOLimelight
java.lang.Object
com.stuypulse.robot.subsystems.vision.VisionIOLimelight
- All Implemented Interfaces:
VisionIO
IO implementation for real Limelight hardware.
-
Nested Class Summary
Nested classes/interfaces inherited from interface VisionIO
VisionIO.MegaTagMode, VisionIO.PoseObservation, VisionIO.PoseObservationType, VisionIO.TargetObservation, VisionIO.VisionIOInputs, VisionIO.VisionIOOutputs -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.wpilib.networktables.DoubleArrayPublisherprivate final org.wpilib.networktables.IntegerPublisherprivate final org.wpilib.networktables.DoubleSubscriberprivate final org.wpilib.networktables.DoubleArraySubscriberprivate final org.wpilib.networktables.DoubleArraySubscriberprivate VisionIO.MegaTagModeprivate final org.wpilib.networktables.DoubleArrayPublisherprivate final org.wpilib.networktables.IntegerPublisherprivate final org.wpilib.networktables.IntegerSubscriberprivate final Supplier<org.wpilib.math.geometry.Rotation2d> private final org.wpilib.networktables.DoubleSubscriberprivate final org.wpilib.networktables.DoubleSubscriber -
Constructor Summary
ConstructorsConstructorDescriptionVisionIOLimelight(String name, org.wpilib.math.geometry.Transform3d robotToCamera, Supplier<org.wpilib.math.geometry.Rotation2d> rotationSupplier) Creates a new VisionIOLimelight. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyOutputs(VisionIO.VisionIOOutputs outputs) private static org.wpilib.math.geometry.Pose3dparsePose(double[] rawLLArray) Parses the 3D pose from a Limelight botpose array.voidupdateInputs(VisionIO.VisionIOInputs inputs)
-
Field Details
-
rotationSupplier
-
orientationPublisher
-
pipelinePublisher
-
imuModePublisher
-
aprilTagWhitelistPublisher
-
latencySubscriber
-
txSubscriber
-
tySubscriber
-
megatag1Subscriber
-
megatag2Subscriber
-
pipelineSubscriber
-
megaTagMode
-
-
Constructor Details
-
VisionIOLimelight
public VisionIOLimelight(String name, org.wpilib.math.geometry.Transform3d robotToCamera, Supplier<org.wpilib.math.geometry.Rotation2d> rotationSupplier) Creates a new VisionIOLimelight.- Parameters:
name- The configured name of the Limelight.rotationSupplier- Supplier for the current estimated rotation, used for MegaTag 2.
-
-
Method Details
-
updateInputs
- Specified by:
updateInputsin interfaceVisionIO
-
parsePose
Parses the 3D pose from a Limelight botpose array. -
applyOutputs
- Specified by:
applyOutputsin interfaceVisionIO
-