Class LibVisionIOPhotonVision
java.lang.Object
com.flarerobotics.lib.subsystem.vision.io.LibVisionIOPhotonVision
- All Implemented Interfaces:
LibVisionIO
- Direct Known Subclasses:
LibVisionIOPhotonVisionSim
IO implementation for real PhotonVision hardware.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.flarerobotics.lib.subsystem.vision.LibVisionIO
LibVisionIO.PoseObservation, LibVisionIO.PoseObservationType, LibVisionIO.TargetObservation, LibVisionIO.VisionIOInputs
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.photonvision.PhotonCamera
final edu.wpi.first.math.geometry.Transform3d
-
Constructor Summary
ConstructorsConstructorDescriptionLibVisionIOPhotonVision
(String name, edu.wpi.first.math.geometry.Transform3d robotToCamera) Constructs a new LibVisionIOPhotonVision. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPipeline
(int pipelineIndex) Sets the current pipeline index.void
Updates the given vision inputs.
-
Field Details
-
m_camera
public final org.photonvision.PhotonCamera m_camera -
m_robotToCamera
public final edu.wpi.first.math.geometry.Transform3d m_robotToCamera
-
-
Constructor Details
-
LibVisionIOPhotonVision
Constructs a new LibVisionIOPhotonVision.- Parameters:
name
- The name of the camera.robotToCamera
- The 3D position of the camera relative to the robot (the offset from the center).
-
-
Method Details
-
updateInputs
Description copied from interface:LibVisionIO
Updates the given vision inputs.- Specified by:
updateInputs
in interfaceLibVisionIO
- Parameters:
inputs
- The inputs.
-
setPipeline
public void setPipeline(int pipelineIndex) Description copied from interface:LibVisionIO
Sets the current pipeline index.- Specified by:
setPipeline
in interfaceLibVisionIO
- Parameters:
pipelineIndex
- The index.
-