christianrauch / camera_ros

ROS 2 node for libcamera supported cameras (V4L2, Raspberry Pi Camera Modules)
https://libcamera.org
MIT License
68 stars 30 forks source link

On humble, RPI 4 ARM64, Rasperry pi Cam2 -probably not your issue, but thought you'd like to know. #3

Closed anfederman closed 2 years ago

anfederman commented 2 years ago

I am guessing this has to do with a kernel /libcamera mismatch. Same erro in libcamera-hello, so I don't know if a bug report to libcamera would help.

uname -a
Linux ubiq22-desktop 5.15.0-1012-raspi #14-Ubuntu SMP PREEMPT Fri Jun 24 13:10:28 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
ros2 run camera_ros camera_node 
[0:02:06.816653196] [1983]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3777-69ae75b0
[0:02:06.872656969] [1994]  WARN RPI raspberrypi.cpp:1252 Mismatch between Unicam and CamHelper for embedded data usage!
[0:02:06.873502243] [1994]  INFO RPI raspberrypi.cpp:1368 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media1 and ISP device /dev/media0

[0:02:06.884896475] [1983]  INFO Camera camera.cpp:1029 configuring streams: (0) 1920x1080-YUYV
[0:02:06.885520356] [1994]  INFO RPI raspberrypi.cpp:759 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1920x1080-SBGGR10_1X10 - Selected unicam format: 1920x1080-pBAA
camera "/base/soc/i2c0mux/i2c@1/imx219@10" configured with 1920x1080-YUYV stream
[0:02:07.934102503] [1994] ERROR V4L2 v4l2_videodevice.cpp:1867 /dev/video0[29:cap]: Failed to start streaming: Input/output error
terminate called after throwing an instance of 'std::runtime_error'
  what():  failed to start camera
[ros2run]: Aborted
christianrauch commented 2 years ago

Yes. I got this Mismatch between Unicam and CamHelper for embedded data usage! too and I could solve this with a kernel update through rpi-update.