Hey. So I am new to the whole raspberry pi world and bought a pi5 to get started. Got everything up and running and decided I wanted to build a robot. Was able to control it with 2 motor hats and went all out with a Lidar and a camera. Got the Lidar to work and I am left with the camera.
Had to run a docker image with Ubuntu 22.04 since Pi5 did not support ROS2 btw.
The camera works fine on my raspberry. But when I get inside the container, build everything from source and try to run the libcamera, I get this
root@Andy:/home/pi/libcamera# libcamera-hello -v
[0:16:16.801743727] [685] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
Options:
verbose: 2
info_text:#%frame (%fps fps) exp %exp ag %ag dg %dg
timeout: 5000ms
width: 0
height: 0
output:
post_process_file:
preview: default
qt-preview: 0
transform: identity
roi: all
metering: centre
exposure: normal
ev: 0
awb: auto
flush: false
wrap: 0
brightness: 0
contrast: 1
saturation: 1
sharpness: 1
framerate: 30
denoise: auto
viewfinder-width: 0
viewfinder-height: 0
tuning-file: (libcamera)
lores-width: 0
lores-height: 0
autofocus-range: normal
autofocus-speed: normal
autofocus-window: all
hdr: off
mode: unspecified
viewfinder-mode: unspecified
metadata:
metadata-format: json
Preview window unavailable
Running without preview window
Opening camera...
Closing RPiCam application(frames displayed 0, dropped 0)
Camera stopped!
Tearing down requests, buffers and configuration
Camera closed
ERROR: *** no cameras available ***
root@Andy:/home/pi/libcamera# libcamera-hello
[0:25:39.725255519] [687] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
Preview window unavailable
ERROR: *** no cameras available ***
I have tried with increased privileges, mounting my whole dev folder and change the cgroup but to no avail. Does anyone know how to solve this or find a way to get ROS2 and a camera working on a raspberry pi 5? I can stream the video from my pi5 to my laptop, but there is a 3 sec lag and I really need it to be real time.
All the best
Had to run a docker image with Ubuntu 22.04 since Pi5 did not support ROS2 btw.
The camera works fine on my raspberry. But when I get inside the container, build everything from source and try to run the libcamera, I get this
root@Andy:/home/pi/libcamera# libcamera-hello -v
[0:16:16.801743727] [685] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
Options:
verbose: 2
info_text:#%frame (%fps fps) exp %exp ag %ag dg %dg
timeout: 5000ms
width: 0
height: 0
output:
post_process_file:
preview: default
qt-preview: 0
transform: identity
roi: all
metering: centre
exposure: normal
ev: 0
awb: auto
flush: false
wrap: 0
brightness: 0
contrast: 1
saturation: 1
sharpness: 1
framerate: 30
denoise: auto
viewfinder-width: 0
viewfinder-height: 0
tuning-file: (libcamera)
lores-width: 0
lores-height: 0
autofocus-range: normal
autofocus-speed: normal
autofocus-window: all
hdr: off
mode: unspecified
viewfinder-mode: unspecified
metadata:
metadata-format: json
Preview window unavailable
Running without preview window
Opening camera...
Closing RPiCam application(frames displayed 0, dropped 0)
Camera stopped!
Tearing down requests, buffers and configuration
Camera closed
ERROR: *** no cameras available ***
root@Andy:/home/pi/libcamera# libcamera-hello
[0:25:39.725255519] [687] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5
Preview window unavailable
ERROR: *** no cameras available ***
I have tried with increased privileges, mounting my whole dev folder and change the cgroup but to no avail. Does anyone know how to solve this or find a way to get ROS2 and a camera working on a raspberry pi 5? I can stream the video from my pi5 to my laptop, but there is a 3 sec lag and I really need it to be real time.
All the best
Statistics: Posted by stekn — Mon Apr 01, 2024 9:27 pm