|
C++ Vision Camera Problems
Hey there, programming geniuses at Chief Delphi!
We're having a bit of trouble with our vision camera, and I'm hoping you can help. To summarize, when we try to use the camera, our robot completely crashes. This problem came out of nowhere one day; the camera went from working perfectly to not working at all, and there were no changes to the robot or the code in the meantime. I've attached all the errors and messages associated with the problem.
This happens when the camera is plugged in to the cRIO and the code tries to create a camera object. We get one or two frames of video, then robot communication dies on the driver station. If either the camera is unplugged, or the code doesn't try to start the camera, there are no other problems. It happens with our team code, and the unmodified 2010 Vision Example code. We have all the latest updates applied to WPILib/WindRiver (C++ Team Update 4.3/Workbench Version: 3.0.1) and the driver station (update 1.1), and the latest version of the cRIO image (v20).
We've tried: different cRIOs, different programming laptops, reinstalling WindRiver, reimaging the cRIO, reinstalling the driver station, restoring camera to factory settings (we put the FRC/FRC user account back on afterwards), and deploying code that creates the camera object only. The one thing we haven't tried is using a different camera, as we don't have another one available.
The camera works properly (if laggy) in both LabView and Java. It also is fully accessible and streams properly from the web interface. It's only when we use C++ that this problem occurs. From the cRIO console, the camera is pingable at 192.168.0.90. We're using the newer Axis M1011 camera. Any ideas?
Last edited by SnarkyNinja : 12-27-2010 at 04:51 PM.
|