Interface PoseSourceIO
- All Known Implementing Classes:
LimelightIO, OrinGyroSourceIO, OrinPoseSourceIO, QuestNavIO, SimVision.LimelightSimIO, SimVision.QuestSimIO
public interface PoseSourceIO
Hardware layer for one pose source, AdvantageKit style.
An implementation reads the device (NetworkTables for a Limelight or QuestNav, PhotonLib for
the Orin) and fills PoseSourceInputs. Nothing downstream touches the device: gating and
fusion read only the inputs, so in replay, where the IO is swapped for NONE, the same
code runs against the logged values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PoseSourceIOReplay / detached: reports nothing, so the logged inputs are what the code sees. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanderived()Whether this IO computes its observations from inputs it logs itself, rather than reading a device.voidupdateInputs(PoseSourceInputs inputs) Fillsinputswith everything reported since the last call.
-
Field Details
-
NONE
Replay / detached: reports nothing, so the logged inputs are what the code sees.
-
-
Method Details
-
updateInputs
Fillsinputswith everything reported since the last call.- Parameters:
inputs- the inputs to overwrite
-
derived
default boolean derived()Whether this IO computes its observations from inputs it logs itself, rather than reading a device. A derived IO runs in replay too (over its own replayed inputs), soPoseSourcerecords its observations as outputs instead of restoring them from the log.
-