45 | | Next Steps: write custom vision processing code that runs on the Pi and returns target coordinates via Network Tables. See [https://pdocs.kauailabs.com/vmx-rtk/examples/frc/ here] for a start |
| 45 | FRCVision provides sample vision processing code in C++ and Java. To build the Java vision processing example code, you will need Java 11 installed and: |
| 46 | 1. Download and install Gradle (the tool used for building): |
| 47 | 1. create a C:\Gradle folder |
| 48 | 1. download gradle from [https://gradle.org/install/ here] |
| 49 | 1. extract the gradle folder 9e.g. gradle-6.0.1) from the downloaded zip file into C:\Gradle |
| 50 | 1. add the extracted bin folder (e.g. C:\Gradle\gradle-6.0.1\bin) to the Windows search path. |
| 51 | 1. Download and build the Java vision processing example code |
| 52 | 1. Download the example (java-multiCameraserver.zip) from [https://github.com/wpilibsuite/FRCVision-pi-gen/releases here] |
| 53 | 1. Extract the .zip file into a folder in your !RobotProjects folder (e.g. FRCTest1) |
| 54 | 1. Open the folder in VSCode |
| 55 | 1. Open a terminal window in the folder: Select folder then View->Terminal |
| 56 | 1. Build the example using the command '''gradle build''' |
| 57 | 1. You should now have tar and zip files in the project build/distributions folder ready for upload to your pi |
| 58 | |
| 59 | See [https://pdocs.kauailabs.com/vmx-rtk/examples/frc/ here] for more info |