Skip to content
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

Breaking changes for OAK-1 Lite introduced with CenterStage #749

Open
Powercube7 opened this issue Oct 6, 2023 · 3 comments
Open

Breaking changes for OAK-1 Lite introduced with CenterStage #749

Powercube7 opened this issue Oct 6, 2023 · 3 comments

Comments

@Powercube7
Copy link

Powercube7 commented Oct 6, 2023

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
@Windwoes
Copy link
Member

Windwoes commented Oct 6, 2023

Hi there - if there's an incompatibility in the versions of OpenCV used, probably your best bet will be to exclude the entirety of the Vision module from the Robot Controller build.

@Powercube7
Copy link
Author

Powercube7 commented Oct 8, 2023

@Windwoes Thank you for the commment! Is there any resource on how I would be able to do that? Wouldn't doing so break the Robot Controller?

@Windwoes
Copy link
Member

Windwoes commented Oct 8, 2023

It would essentially just be commenting out this line:

https://github.com/FIRST-Tech-Challenge/FtcRobotController/blob/master/build.dependencies.gradle#L15

And then deleting all the vision portal sample OpModes from the samples directory.

I do not think it would break the robot controller build but I'm not sure. The blocks module does depend on the vision module, but it's already been compiled into an artifact here so I think you could get away with it. Obviously trying to use vision portal from inside blocks would crash

As an aside, it may be worthwhile to confirm on the Q&A forum whether the OAK1 is legal for competition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants