-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ROS 2 Humble Docker in Raspberry cannot find camera #12552
Comments
Hi @JLBicho My research of your question found a case regarding problems with using a RealSense camera with Docker on Pi where a suggested solution was to use sudo admin permissions (sudo docker run instead of just 'docker run').
|
Hello @MartyG-RealSense, thank you for the quick reply! I've tried the launching with 'sudo' and now a new error occurs:
Any idea on this one? Thanks! |
There was a Pi and ROS2 case at IntelRealSense/realsense-ros#2545 (comment) that had this Mipi device capability could not be grabbed error. Installing librealsense from source code with a build script called libuvc_installation.sh resolved the problem in their particular case, as described at IntelRealSense/realsense-ros#2545 (comment) |
I just happened to notice that contrary to @MartyG-RealSense code snippet, you seem to be missing the |
Hello, I've tried both things, privileged with cgroups and compiling from source the libuvc and still the same error with MIPI. I'll keep trying things and let you know. If you happen to come around some similar error, please let me know. Thank you! |
@JLBicho what does your If you're willing to run the development branch, this pull request allows you to pass into the container individual
Obviously if you have more video devices just add more |
@ciandonovan, thank for the suggestion. However, I still get the following error:
I don't think it has to do with the mounting of the device, rather some problem with the installation of librealsense. |
Hi @JLBicho Do you have an update about this case that you can provide, please? Thanks! |
Hello @MartyG-RealSense, I haven't been able to try more things. I'm trying to get a D400 to check if the problem is related only to the L515 or else. I'm also planning on changing the O.S. of the Rpi. I'll let you know any advances. |
Thanks very much. I look forward to your next report. Good luck! |
Hi @JLBicho Do you require further assistance with this case, please? Thanks! |
Hi @MartyG-RealSense ! For now I'm a little stuck. I'm not able to make it work with either L515 or D435. I'll try to reinstall the O.S. with Ubuntu instead of Raspbian. Anyway, thank you for your support. I'll let you know if I finally get it working. If you wish to close this issue, please do so. |
Thanks very much for the update. As you suggested, I will close the issue. Please feel free to re-open it at a future date or create a new issue if you need to do so. Good luck! |
I might have the same issue, but it worked in all old versions and still does. Only when I upgrade to 2.55.1.6486 it stops working. I use a python:3.7-slim image on a NUC with Ubuntu installed. |
Hi @sladomic When you upgraded to librealsense SDK 2.55.1, did you also update the camera's firmware driver to 5.16.0.1 which is the recommended firmware for 2.55.1. Using older firmware versions than the recommended can result in errors. And the previous SDK version 2.54.2 was mostly bug-fixes and so was not very different to 2.54.1, whilst 2.55.1 has a large number of feature and API changes. |
Thanks for the fast reply. I haven‘t updated the firmware driver since I use a L515, which isn’t supported anymore officially. However I can still use it when not upgrading to 2.55.1. Edit: I just saw, that the release notes mention this |
Thanks very much for the information about your camera model. Yes, L515 support is removed in 2.55.1 onwards. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
I have a ROS 2 Humble docker image with realsense2 and librealsense2 installed from debian packages (sudo apt install). Everything related to ROS works. The Raspberry Pi detects the Realsense with lsusb.
When I try to use docker with the following command:
The container does not find the camera:
However, the camera (or at least the IR camera) works fine with python3+OpenCV:
I think this issue is related to permissions or USB access in the Raspberry, because the same docker in my laptop works fine with the camera.
Has anyone had the same issues, or can give me any hint?
Thank you!
The text was updated successfully, but these errors were encountered: