Initially my team couldn’t even get the network camera to work… after a long 3 days we figured out we needed to run smart dash in 32 bit. Now we want to get a USB Camera working… its been about 5 days since we started to attempt to solve this problem. we have tried everything about usb cameras in the API (http://first.wpi.edu/FRC/roborio/release/docs/java/classedu_1_1wpi_1_1first_1_1wpilibj_1_1vision_1_1USBCamera.html)
yet it still dose not work. Please help we’re desperate at this point. Thanks!!
Have you tried the Simple Vision example? It shows how to use the CameraServer class.
Where can I find this example?
We are running Java and this post helped us. We added the code in robotInit() (Iterative Robot) and we had a USB camera image displayed in the standard dashboard while the robot was connected to the driver station, even when disabled. This code should be portable to C++ also.
In the eclipse example projects.
If you get a broken pipe error you are probably using a 64 bit version of the JDK. Switch to the 32 bit version as the camera will not work otherwise…
Also on the simple vision example you may need to change “cam0” to “cam1”.
Check the Roborio web page to see where the camera is attached.
Good Luck,
Stefano
Rookie Team 5572 - Rosbots
We are having the broken pipe error and were wondering how to actually change the jdk to the 32-bit version. We are using windows 7 64 bit eclipse and java. Does it matter if we are using C++ or Java?
Thanks.
I’m having the exact same problem. If anyone has any ideas, it would be extremely helpful.
Thanks,
Is there another thread with this answer? I cannot find x32, and am receiving the same errors.