Commit Graph

17 Commits

Author SHA1 Message Date
Peter Johnson
9fe4460068
Add NetworkTable-selectable switched camera support (#117)
Fixes #100.

Also expand the newest added camera.
2019-02-18 19:47:05 -08:00
Peter Johnson
ee70b90853
Python example: Use UTF-8 encoding when opening frc.json (#101) 2019-02-09 21:51:55 -08:00
Peter Johnson
6ad1d2eb92
Bundle Windows make with C++ example (#84) 2019-02-05 20:37:48 -08:00
Peter Johnson
c85fd9f33c
Revamp image to build dependencies as part of stages (#83)
Fixes #17.

Stage 2 is fairly minimal, stage 3 builds/installs OpenCV and WPILib et al, and stage 4
builds/installs the FRCVision webdash and adds the vision examples.

Other changes:
- OpenCV compiled with ffmpeg, OpenBLAS, and libgtk (fixes #79, fixes #80)
- OpenBLAS added to image (fixes #65)
- C++ Makefile is more easily extensible (fixes #71)
- Sources for everything are bundled into image into /usr/src
- README updated (fixes #16)
- pkg-config files for wpilibc et al are now installed and C++ Makefile uses them (if compiled local to Pi)
- Both dynamic and static libs are included in image

The only downside of all these changes (particularly the ffmpeg, OpenBLAS, and libgtk inclusion)
is the image size is now over 3GB (800MB compressed). The previous image didn't quite fit on a
2GB card however.
2019-02-02 23:37:18 -08:00
David Vo
02d5c468a2 Fix docstrings in Python example (#78) 2019-01-18 22:38:41 -08:00
Peter Johnson
08163c0681
Fix ordering between CameraServer.getInstance and UsbCamera creation (#69)
If the CameraServer instance is started after the UsbCamer is created, it
never gets the source created event to actually build the NetworkTable table.
2019-01-13 21:23:44 -08:00
Peter Johnson
c36a761a33
Java example README: note that Java 11 is required (#68) 2019-01-13 17:44:38 -08:00
Peter Johnson
03dae15ddf
Add stream settings to webdash and examples (#61) 2019-01-13 16:59:08 -08:00
Peter Johnson
f0982f2f17
Update example README.txt files (#57)
* C++ libraries are now included in the downloaded zip

* It's no longer necessary to override CXX
2019-01-11 13:21:20 -08:00
Peter Johnson
47c38400d1
Add all opencv libraries to C++ example (#58) 2019-01-11 13:16:27 -08:00
Peter Johnson
63120aee69
Build wpilibc and wpilibj and include in image (#54)
This is mainly useful for Shuffleboard and SmartDashboard classes.
2019-01-11 13:13:15 -08:00
Peter Johnson
f511557b89
Default Python output to unbuffered (#52) 2019-01-11 03:20:41 -08:00
Peter Johnson
0e9d2fbb99 Set connection strategy to keep open
Apply to both default camera server and examples.
2019-01-11 01:13:09 -08:00
Peter Johnson
7c5b84d7ef
Fix the C++ example (#41)
- Build with -pthread
- Detach the thread to avoid std::thread exception
- Remove __RASPBIAN__ check (it's not defined by the on-Pi compiler)
2019-01-10 00:10:42 -08:00
Peter Johnson
c702b9421a
Add hooks for image processing to examples (#27)
Fixes #23.
2019-01-02 23:12:32 -08:00
Peter Johnson
43c710ec39
Build wpilib with cmake instead of gradle (#15)
* Move java lib install to /usr/local/frc/java
* Build and install both debug and normal OpenCV libraries
* Install OpenCV cmake files
* Build OpenCV Java with version 8 target
* Build static OpenCV for static allwpilib binaries
* Move netconsoleTee install to /usr/local/frc/bin
* Move multiCameraServer default app install to /usr/local/frc/bin
* Install more FRC binaries
* Fix /home/pi/zips/java-multiCameraServer.zip owner to pi:pi
* Remove azure 60 minute timeout
* Add openjdk-8-jdk to Azure docker image (this is needed for cmake to find javah as only cmake 3.9 is available)
2018-12-30 02:07:22 -08:00
Peter Johnson
88f549108f
Add java, cpp, and python examples 2018-12-08 00:45:27 -08:00