-
Notifications
You must be signed in to change notification settings - Fork 37
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
Unable to discover Raspberry Pi Camera on RPi 5/Ubuntu 24.05/ROS 2 Jazzy #72
Comments
Which OS are you using? Is that camera supported on the Raspberry Pi 5 with that OS? For generic questions about camera support on specific Raspberry Pi boards or OSes, please refer to https://forums.raspberrypi.com. |
I have the same issue and I'm using the Raspberry Pi 5 with Ubuntu 24.05 and the camera is Raspberrry Pi Camera Rev 1.3. The camera is supported and I tested it using rpicam-hello --qt-preview. |
Tnx 4 response and hope this is useful information on the failure of the ros2 camera_ros package to find the RPi Camera on /dev/video0. Machine is a Raspberry Pi 5/4G. My previous posted log from v4l2-ctl is using installed OS Canonical Ubuntu 24.04/ROS 2 Jazzy on the Raspberry Pi5/Raspberry Pi Camera v2.1. Kernal is 6.8.0-1015-raspi ubuntu@rp5-ub24j-mb:~$ uname -a To test the RPi & Camera on a booted raspberrypi-os directly equipped with rpi-os SDCard: $ uname -a > Linux raspberrypi-os 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux) Connected Camera is a Raspberry Pi V2.1 Camera imx219 which functions on a raspberrypi-os SD Card boot displayed below. Note the reference to BCM2712 instead of the BCM2835 overlay pi@raspberrypi-os:~ $ libcamera-hello --list-cameras
|
@ARLunan I understand that you have two different OS setups for the same Raspberry Pi + Camera combination. Can you systematically run all the commands that you are using for debugging on both OS setups for comparison? Also, is there evidence that the Ubuntu 24.04 image on the Raspberry Pi 5 is indeed supporting the camera you want to use? Do you have a working example where the camera runs on Ubuntu without the ROS node? |
Following up on your question about Raspberry Pi 5 support for Raspberry Pi CSI Camera, unfortunately no. Please refer to this post by other developers and myself investigating the matter . Raspberry Pi Camera Support. The critical situation appears to be BCM2711 Library which is different than the one in a Raspberry Pi 4 that uses the BCM2835 Library, where the RPI Camera correctly works. Not even the Canonical Apps work with the CSI Camera So until some means to support the RPI CSI Camera on Canonical Ubuntu 24.04 is developed, ROS 2 Nodes are a problem. |
Looking at https://askubuntu.com/questions/1535607/do-ubuntu-24-04-raspberry-pi-desktop-camera-and-cheese-apps-support-raspberry-pi, the question is rather new, and it will take some time to get an answer.
What do you mean by "BCM2711 Library which is different [...] BCM2835 Library"? These are different chip sets, not libraries. You need kernel driver support for these, of course. If the chip set is not fully supported by Ubuntu, you may need to build custom kernel modules or install a different kernel altogether.
Not sure why "ROS 2 Nodes are a problem" here. If the kernel is missing driver support (kernel modules) for some hardware needed to run the cameras, then you simply cannot use anything relying on libcamera or other software support. There is nothing a ROS 2 node can do here. |
I encountered the same issue, and here’s how I resolved it:
Everything works perfectly for me now. I’m running Ubuntu 24.04 on a Raspberry Pi 5, and I’m using ROS 2 Jazzy for my robot. |
I cannot reproduce this on a Raspberry Pi 5 with the Are you using the upstream version of libcamera or the Raspberry Pi fork? The camera is correctly detected:
and
It works with the libcamera packages that come with Raspberry Pi OS though. So this is very likely related to which libcamera fork you use. |
Deploying the Camera with config.txt : camera_auto_detect=1, camera appears as rpe-cfe after successfully installing Binary libcamera and building camera _ros, able to launch camera_node with result below: When using a USB Webcam an image is published /camera/image/raw - implying the Package works with a Usb camera.
With Raspi Camera v2.1 (IMX219) which checked out ok with raspberry-os:
I understand that the RPi5 doe not use the RPi 4 bcm2835 driver that may be an issue here, but would appreciate an assessment of the observed behavior or troubleshooting steps.
Run package: (Same behavior with ros2 launch camera_ros camera.launch.py)
ubuntu@rp5-ub24j-mb:~/camera_ws$ ros2 run camera_ros camera_node
[0:38:26.527483208] [5760] INFO Camera camera_manager.cpp:325 libcamera v0.3.2
terminate called after throwing an instance of 'std::runtime_error'
what(): no cameras available
[ros2run]: Aborted
Checking the device list a RPi camera on video0 appears to be detected.
ubuntu@rp5-ub24j-mb:~/camera_ws$ ls -l /dev/video0
crw-rw----+ 1 root video 81, 10 Dec 13 18:37 /dev/video0
ubuntu@rp5-ub24j-mb:~/camera_ws$ v4l2-ctl --list-devices
pispbe (platform:1000880000.pisp_be):
/dev/video20
/dev/video21
/dev/video22
/dev/video23
/dev/video24
/dev/video25
/dev/video26
/dev/video27
/dev/video28
/dev/video29
/dev/video30
/dev/video31
/dev/video32
/dev/video33
/dev/video34
/dev/video35
/dev/video36
/dev/video37
/dev/media1
/dev/media3
rp1-cfe (platform:1f00110000.csi):
/dev/video0
/dev/video1
/dev/video2
/dev/video3
/dev/video4
/dev/video5
/dev/video6
/dev/video7
/dev/media0
rpivid (platform:rpivid):
/dev/video19
/dev/media2
The text was updated successfully, but these errors were encountered: