CameraServer doesn't seem to work with 2016 default dashboard #172
|
Ok, so the real problem is that |
|
When I install pynivision, I get a "Connection reset by peer" error. The problem is that when the LabVIEW dashboard connects to the server and it encounters the wrong version of networktables (see robotpy/pynetworktables#21), it disconnects from the camera. When I block the NetworkTables connection, then the camera works fine. It's pretty terrible, the CPU usage is at 51% without the robot code actually doing anything (as compared to ~7% without the camera code). I don't really want to spend time optimizing + fixing it, so I think my recommendation is that we delete the camera code for now, and focus on providing a more python friendly solution via mjpg-streamer or some such similar thing. |
|
For those who want to use this, you can install the alpha version of pynetworktables:
|
I just tried out the USBCamera class RobotPy 2016.0.0 with the default LabVIEW dashboard, and it doesn't work. Looking at tcpdump, the RoboRIO seems to be rejecting the incoming connections for some reason.
As @PeterJohnson mentioned, it also won't connect to a NetworkTables 2.0 client, and so that might have something to do with it.
If I can't get this resolved relatively quickly, then I'm not going to waste time on this, and remove it from RobotPy until someone else decides to fix it. The performance was terrible when we tried it last year, and OpenCV is a better solution.