Changes between Version 3 and Version 4 of ControlSystems/SoftwareTeam/Training/AdvancedTraining/FRCVision


Ignore:
Timestamp:
Jan 11, 2020, 5:18:56 PM (5 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/AdvancedTraining/FRCVision

    v3 v4  
    4343If all went well, you should be able to download code to your RoboRIO and when you launch the driver station, you will have a new camera choice: 'rPi Camera 0' that is streaming video.  The next step is to start writing java code that runs on the roboRIO, does vision processing, and sends processed results (e.g. coordinates of a target) back to the Rio using Network Tables.  Network Table support is included with FRCVision and you can view an extensive set of variables included by default in the Variables tab of the Smart Dashboard.
    4444
    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
     45FRCVision provides sample vision processing code in C++ and Java.  To build the Java vision processing example code, you will need Java 11 installed and:
     461. 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.
     511. 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
     59See [https://pdocs.kauailabs.com/vmx-rtk/examples/frc/ here] for more info