Here at the Orlando Regionals while waiting in the pits for our robot to start working, I ported mjpg-streamer to the roboRIO. It was pretty funky since the source doesn’t lend itself to cross-compilation. So, the answer? Compile it on a Beaglebone Black running Angstrom and copy the files over.
Result? A working camera feed that takes only 1% of the CPU. And, with a little Javascript magic, you can have multiple cameras running at the same time. There was only one little problem in that the libjpeg code isn’t available on the roboRIO. So, simply copy the libraries from the BBB and place them in /usr/lib. Open source is a wonderful thing.
Then, untar the mjpg-streamer code and run it ala the instructions.
Enjoy,
Mike
mjpg-streamer-built.tgz (1.47 MB)
jpeg.tgz (197 KB)
mjpg-streamer-built.tgz (1.47 MB)
jpeg.tgz (197 KB)