Package frc.robot.services.vision
Class VisionIOWhacknet
java.lang.Object
frc.robot.services.vision.VisionIOWhacknet
- All Implemented Interfaces:
VisionIO
Real IO implementation for the vision service using Whacknet.
This implementation communicates with a high-performance native vision pipeline to retrieve AprilTag pose estimations. It maps raw data from a shared direct byte buffer into WPILib geometry objects, utilizing zero-allocation patterns to maintain high performance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.services.vision.VisionIO
VisionIO.VisionIOInputs -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new VisionIOChalkydri and starts the native vision server. -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcastTelemetry(IMUState imuState) Broadcasts the high frequency 6-DOF IMU state to the vision coprocessor.voidupdateInputs(VisionIO.VisionIOInputs inputs) Updates inputs by reading the latest packets from the native library and mapping them to loggable Java objects.
-
Constructor Details
-
VisionIOWhacknet
public VisionIOWhacknet()Creates a new VisionIOChalkydri and starts the native vision server.
-
-
Method Details
-
updateInputs
Updates inputs by reading the latest packets from the native library and mapping them to loggable Java objects.- Specified by:
updateInputsin interfaceVisionIO- Parameters:
inputs- The inputs object to update.
-
broadcastTelemetry
Description copied from interface:VisionIOBroadcasts the high frequency 6-DOF IMU state to the vision coprocessor.- Specified by:
broadcastTelemetryin interfaceVisionIO- Parameters:
imuState- The latest snapshot of the robot's IMU.
-