bluerobotics / BlueOS

The open source platform for ROV, USV, robotic system operation, development, and expansion.
https://blueos.cloud/docs/
Other
133 stars 71 forks source link

core: camera-manager: add support for Raspberry Pi cameras #991

Open ES-Alexander opened 2 years ago

ES-Alexander commented 2 years ago

Current behaviour

Raspberry Pi Camera gets plugged into CSI port, but doesn't get detected, and isn't possible to stream to the surface.

Caused by Debian Bullseye* switching things away from v4l2 to libcamera (e.g. RPi camera no longer compatible with v4l2-ctl or gstreamer's v4l2src, and needs to use libcamerasrc instead).

Means that users with Raspberry Pi cameras either can't use them, or can't use BlueOS, which is problematic since they're nice as an extra camera option, or a decent camera for low cost vehicle builds.

*Note: BlueOS on older images (e.g. Buster) should not have this camera issue.

Expected or desired behaviour

Ideally should just be able to plug it in and it's detected the same way a H264 USB camera is, and can be streamed to the surface.

Prerequisites

ES-Alexander commented 2 years ago

On the off chance it could be useful, here's the (unsanitised) terminal output from my unsuccessful attempt at getting this set up and working a month ago (on a standard RPi4 running fresh RaspberryOS Bullseye, not BlueOS):

unsanitised_attempt_terminal.txt

patrickelectric commented 2 years ago

Done.

ES-Alexander commented 3 months ago

I'm re-opening this because our legacy camera workaround is not guaranteed to work long term, and only supports the original camera module (not the more recent ones, which people are more likely to try to use).