Class VisionModule
java.lang.Object
org.photonvision.vision.processes.VisionModule
This is the God Class
VisionModule has a pipeline manager, vision runner, and data providers. The data providers provide info on settings changes. VisionModuleManager holds a list of all current vision modules.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final QuirkyCamera
protected TrackedTarget
protected final int
protected final PipelineManager
protected final VisionSource
-
Constructor Summary
ConstructorDescriptionVisionModule
(PipelineManager pipelineManager, VisionSource visionSource, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCalibrationToConfig
(CameraCalibrationCoefficients newCalibration) void
addResultConsumer
(CVPipelineResultConsumer dataConsumer) void
changeCameraQuirks
(HashMap<CameraQuirk, Boolean> quirksToChange) Add/remove quirks from the camera we're controllingvoid
void
void
void
setCameraNickname
(String newName) void
setFov
(double fov) void
setTargetModel
(TargetModel targetModel) void
start()
void
void
-
Field Details
-
pipelineManager
-
visionSource
-
moduleIndex
protected final int moduleIndex -
cameraQuirks
-
lastPipelineResultBestTarget
-
-
Constructor Details
-
VisionModule
-
-
Method Details
-
start
public void start() -
setFov
public void setFov(double fov) -
getChangeSubscriber
-
startCalibration
-
saveInputSnapshot
public void saveInputSnapshot() -
saveOutputSnapshot
public void saveOutputSnapshot() -
takeCalibrationSnapshot
public void takeCalibrationSnapshot() -
endCalibration
-
saveModule
public void saveModule() -
setCameraNickname
-
toUICameraConfig
-
getStateAsCameraConfig
-
addResultConsumer
-
setTargetModel
-
addCalibrationToConfig
-
changeCameraQuirks
Add/remove quirks from the camera we're controlling- Parameters:
quirksToChange
- map of true/false for quirks we should change
-