Hi there, we are trying to connect to an old microsoft webcams from RoboRio (which is a part of the package we received from First for the competition a few years ago, not sure if they are still sending them ), yet we couldn’t achieve that. I tried every way I could have found. and none of them worked. In the shuffleboard I am able to see the device and its specifications ( even the brand and other trivial stuff are shown there), However we don’t receive any frames.
We use Java btw
In the docs, it is said that putting CameraServer.startAutomaticCapture()
into robot init would do the magic, it didn’t.
I also saw few examples using CameraServer.getInstance().startAutomaticCapture
but in the latest library which I use startAutomaticCapture function became static I believe.
As a last resort I tried:
UsbCamera usbCamera = new UsbCamera("USB Camera 0", 0);
MjpegServer mjpegServer1 = new MjpegServer("serve_USB Camera 0", 1181);
mjpegServer1.setSource(usbCamera);
This didn’t work either.
IDK this is what happened. Any help?