FtcRobotController
FtcRobotController copied to clipboard
Breaking changes for OAK-1 Lite introduced with CenterStage
Hello there!
With the addition of the VisionPortal in FTC CenterStage, our team has noticed breaking changes in the robot controller's code while attempting to install the DepthAI library required for the OAK-1 Lite vision sensor. What: The robot controller application crashes when booted after installing the DepthAI library. Why: It appears that there is a conflict between OpenCV classes in the code of the robot controller and the code of the bytedeco/javacpp-presets repository. Building the project generates errors because of this issue. Attempting to exclude the library from the module causes crashes whenever the app is launched.
Attachments:
- A logcat containing 3 instances of the RC crash
- The build.gradle file containing DepthAI and JavaCPP (OpenCV module excluded; remove the
exclude
statement to observe duplicate classes errors) - (Optional) A sample OpMode that checks how many cameras are connected, together with the image size of the preview
Additional information:
- Tested devices: OPPO A54, Control Hub
- No crash occurs on the 8.1 version of the RC
- RC version: 9.0