Class CameraConfiguration
java.lang.Object
org.photonvision.common.configuration.CameraConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionName as reported by CSCoreint
double
User-set nicknameString[]
Can be either path (ex /dev/videoX) or index (ex 1).int
Name used to title the subfolder of this configint
int
-
Constructor Summary
ConstructorDescriptionCameraConfiguration
(String baseName, String path) CameraConfiguration
(String baseName, String uniqueName, String nickname, double FOV, String path, CameraType cameraType, QuirkyCamera cameraQuirks, List<CameraCalibrationCoefficients> calibrations, int currentPipelineIndex, int usbVID, int usbPID) CameraConfiguration
(String baseName, String uniqueName, String nickname, String path, String[] alternates) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCalibration
(CameraCalibrationCoefficients calibration) Replace a calibration in our list with the same unrotatedImageSize with a new one, or add it if none exists yet.void
addPipelineSetting
(CVPipelineSettings setting) void
addPipelineSettings
(List<CVPipelineSettings> settings) Get a unique descriptor of the USB port this camera is attached to.void
setPipelineSettings
(List<CVPipelineSettings> settings) toString()
-
Field Details
-
baseName
Name as reported by CSCore -
uniqueName
Name used to title the subfolder of this config -
nickname
User-set nickname -
path
Can be either path (ex /dev/videoX) or index (ex 1). -
cameraQuirks
-
otherPaths
-
usbVID
public int usbVID -
usbPID
public int usbPID -
cameraType
-
FOV
public double FOV -
calibrations
-
currentPipelineIndex
public int currentPipelineIndex -
streamIndex
public int streamIndex -
pipelineSettings
-
driveModeSettings
-
-
Constructor Details
-
CameraConfiguration
-
CameraConfiguration
-
CameraConfiguration
public CameraConfiguration(String baseName, String uniqueName, String nickname, double FOV, String path, CameraType cameraType, QuirkyCamera cameraQuirks, List<CameraCalibrationCoefficients> calibrations, int currentPipelineIndex, int usbVID, int usbPID)
-
-
Method Details
-
addPipelineSettings
-
addPipelineSetting
-
setPipelineSettings
-
addCalibration
Replace a calibration in our list with the same unrotatedImageSize with a new one, or add it if none exists yet. If we are replacing an existing calibration, the old one will be "released" and the underlying data matrices will become invalid.- Parameters:
calibration
- The calibration to add.
-
getUSBPath
Get a unique descriptor of the USB port this camera is attached to. EG "/dev/v4l/by-path/platform-fc800000.usb-usb-0:1.3:1.0-video-index0"- Returns:
-
toShortString
-
toString
-