SimPhotonCamera

class photonvision.SimPhotonCamera(*args, **kwargs)

Bases: photonvision._photonvision.PhotonCamera

Represents a camera that is connected to PhotonVision.ß

Overloaded function.

  1. __init__(self: photonvision._photonvision.SimPhotonCamera, instance: _pyntcore._ntcore.NetworkTablesInstance, cameraName: str) -> None

Constructs a Simulated PhotonCamera from a root table.

Parameters
  • instance – The NetworkTableInstance to pull data from. This can be a custom instance in simulation, but should usually be the default NTInstance from {@link NetworkTableInstance::getDefault}

  • cameraName – The name of the camera, as seen in the UI.

  1. __init__(self: photonvision._photonvision.SimPhotonCamera, cameraName: str) -> None

Constructs a Simulated PhotonCamera from the name of the camera.

Parameters

cameraName – The nickname of the camera (found in the PhotonVision UI).

submitProcessedFrame(latency: seconds, tgtList: List[photonvision._photonvision.PhotonTrackedTarget]) None

Simulate one processed frame of vision data, putting one result to NT.

Parameters
  • latency – Latency of frame processing

  • tgtList – Set of targets detected