Quote:
Originally Posted by razar51
Our team has been looking into using Roborealms this year but we are having issues.
We can't seem to get a USB camera image over to Roborealms. We can get the feed to show up at the Default Driver station by using StartAutomaticCapture.
|
Are you sure that you've upgraded your RoboRIO to the 2016 image and your driver station to the 2016 tools? If you're using python, it doesn't work in 2016 because of NTCore compatibility issues (see
https://github.com/robotpy/robotpy-wpilib/issues/172). We might have something compatible with LabVIEW by the end of this week, which would resolve this bug.
Quote:
I browsed some of the C++/Java forum sections and saw multiple mentions of not using automatic capture but instead using setImage from the cameraserver object. They all mention an intermediate code example (which I don't have since we are not using c++/Java). We are a bit stumped about how we can get the image to feed into setImage.
Does anyone have any ideas?
|
The USBCamera stuff in python is going to be very low performance, and I wouldn't recommend using it. Instead, I would recommend using mjpg-streamer (see
https://github.com/robotpy/roborio-packages for more information on installing packages), and it appears that the HTTP_READ module in RoboRealm will support this type of stream (their docs:
http://www.roborealm.com/help/HTTP_Read.php).
Let me know if it works, and we can add notes to the mjpg-streamer notes.