This is Team 4373 RooBotics' vision code for the 2020 FIRST Robotics Infinite Recharge competition. It is designed to run on a Raspberry Pi coprocessor using the FRCVision image.
- Open the appropriate pipeline file from
pipelines/
in GRIP and generate Java code - Change
import edu.wpi.first.wpilibj.vision.VisionPipeline
toimport edu.wpi.first.vision.VisionPipeline
in the generated file - Place the Java file in the correct location (in the
java
directory)
- Ensure Java 11 is properly installed and configured (check your
JAVA_HOME
environment variable) - Run
./gradlew build
(this generates a jar file inbuild/libs
)
- Open the Pi web dashboard at http://frcvision.local
- Go to the Application tab, select "Uploaded Java jar," and upload the
RooVision2020-all.jar
file inbuild/libs
- Set the filesystem to "Writable"
- Click Save
- Set the filesystem back to "Read-Only"
To monitor output, go to the Vision Status tab on the web server.
- Run
./gradlew build
- Run
./install.sh
(replaces/home/pi/runCamera
) - Run
./runInteractive
in/home/pi
orsudo svc -t /service/camera
to restart the service