Class PhotonOrinIO
java.lang.Object
frc.robot.subsystems.vision.PhotonOrinIO
- All Implemented Interfaces:
OrinCameraIO
One PhotonVision camera on the Jetson Orin, read with PhotonLib alpha-2 (the robot must stay on
alpha-2: it is the Jetson's wire format).
Reads only; the pose solve is in OrinSolver, which runs in replay too. Besides the
results it reads the Jetson's per-camera topics (SpectrumJetson patches 16, 17, 22-29):
health/*, mount/* and settingsJson, all under /photonvision/<camera>/.
The Jetson publishes numbers as double or integer depending on the topic, so they are read
generically.
-
Field Summary
Fields inherited from interface OrinCameraIO
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPipelineIndex(int index) Asks the camera to run a pipeline (issue #10, 11c: 0 = event, 1 = practice field).voidupdateInputs(OrinCameraInputs inputs) Fillsinputswith everything reported since the last call.
-
Constructor Details
-
PhotonOrinIO
- Parameters:
cameraName- the camera's name in PhotonVision (the Jetson names them after the USB port: TopLeft, TopRight, BottomLeft, BottomRight)
-
-
Method Details
-
updateInputs
Description copied from interface:OrinCameraIOFillsinputswith everything reported since the last call.- Specified by:
updateInputsin interfaceOrinCameraIO- Parameters:
inputs- the inputs to overwrite
-
setPipelineIndex
public void setPipelineIndex(int index) Description copied from interface:OrinCameraIOAsks the camera to run a pipeline (issue #10, 11c: 0 = event, 1 = practice field).- Specified by:
setPipelineIndexin interfaceOrinCameraIO- Parameters:
index- pipeline index
-