forked from RPi-Distro/pi-gen
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to integrate GRIP #108
Labels
Comments
You will need to import it from edu.wpi.first.wpilibj.vision.VisionThread. |
Already have it imported. |
Please post the exact error message. |
Starting a Gradle Daemon, 1 busy and 1 stopped Daemons could not be reused, use --status for details
> Task :compileJava FAILED
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:209: error: class, interface, or enum expected
public static void main(String... args) {
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:212: error: class, interface, or enum expected
}
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:217: error: class, interface, or enum expected
}
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:221: error: class, interface, or enum expected
if (server) {
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:223: error: class, interface, or enum expected
ntinst.startServer();
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:224: error: class, interface, or enum expected
} else {
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:226: error: class, interface, or enum expected
ntinst.startClientTeam(team);
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:227: error: class, interface, or enum expected
}
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:231: error: class, interface, or enum expected
for (CameraConfig cameraConfig : cameraConfigs) {
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:233: error: class, interface, or enum expected
}
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:244: error: class, interface, or enum expected
visionThread.start();
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:245: error: class, interface, or enum expected
}
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:248: error: class, interface, or enum expected
for (;;) {
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:251: error: class, interface, or enum expected
} catch (InterruptedException ex) {
^
C:\Users\Mattawan WiredCats\Documents\java-multiCameraServer\src\main\java\Main.java:253: error: class, interface, or enum expected
}
^
15 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full
insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 18s
1 actionable task: 1 executed``` |
What comes before line 209 in Main.java? Seeing the whole file would be ideal. |
|
You have an extra close brace after the “example pipeline” comment. Java is seeing this as closing the class. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm trying to get my generated GRIP pipeline running on the Raspberry Pi but I am having issues implementing it.
VisionThread visionThread = new VisionThread(cameras.get(0), new GripPipeline(), pipeline -> { });
It is saying visionThread is undefined. How would I fix this?
Thanks!
The text was updated successfully, but these errors were encountered: