robotpy / robotpy-cscore

Moved to https://github.com/robotpy/mostrobotpy
Other
17 stars 12 forks source link

[BUG]: CvSource missing isEnabled method #111

Closed agasser closed 2 years ago

agasser commented 2 years ago

Problem description

The CvSource object does not expose the [isEnabled](https://first.wpi.edu/wpilib/allwpilib/docs/release/java/edu/wpi/first/cscore/VideoSource.html#isEnabled()) method from cscore.

Operating System

Linux

Installed Python Packages

No response

Reproducible example code

cs = CameraServer.getInstance()
csSource = cs.putVideo("Jetson", 640, 360)

if csSource.isEnabled(): # Fails here
  print("It is enabled")