Class CameraConfiguration

java.lang.Object
org.photonvision.common.configuration.CameraConfiguration

public class CameraConfiguration extends Object
  • Field Details

    • baseName

      public String baseName
      Name as reported by CSCore
    • uniqueName

      public String uniqueName
      Name used to title the subfolder of this config
    • nickname

      public String nickname
      User-set nickname
    • path

      public String path
      Can be either path (ex /dev/videoX) or index (ex 1).
    • cameraQuirks

      public QuirkyCamera cameraQuirks
    • otherPaths

      public String[] otherPaths
    • usbVID

      public int usbVID
    • usbPID

      public int usbPID
    • cameraType

      public CameraType cameraType
    • FOV

      public double FOV
    • calibrations

      public final List<CameraCalibrationCoefficients> calibrations
    • currentPipelineIndex

      public int currentPipelineIndex
    • streamIndex

      public int streamIndex
    • pipelineSettings

      public List<CVPipelineSettings> pipelineSettings
    • driveModeSettings

      public DriverModePipelineSettings driveModeSettings
  • Constructor Details

  • Method Details

    • addPipelineSettings

      public void addPipelineSettings(List<CVPipelineSettings> settings)
    • addPipelineSetting

      public void addPipelineSetting(CVPipelineSettings setting)
    • setPipelineSettings

      public void setPipelineSettings(List<CVPipelineSettings> settings)
    • addCalibration

      public void addCalibration(CameraCalibrationCoefficients calibration)
      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

      public Optional<String> 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

      public String toShortString()
    • toString

      public String toString()
      Overrides:
      toString in class Object