-
Notifications
You must be signed in to change notification settings - Fork 38
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
ov5647 with Ubuntu 22.04.4 64bit (Jammy Jellyfish) error #51
Comments
I don't fully follow what commands work and which do not. If the "rpicam-apps" do not work, you should open an issue at https://github.com/raspberrypi/rpicam-apps. If libcamera does not detect any cameras, then there is nothing the node can do. Maybe this is just a configuration issue? I am also testing on an ov5647 on a Raspberry Pi Zero 2 W, previously with Ubuntu 22.04 and libcamera 0.1, now with Ubuntu 24.04 with libcamera 0.3, without issues. You could try to compile a newer libcamera version from source or simply switch to Ubuntu 24.04. |
So the prerequisites if rpicam-apps (without sudo) work and libcamera detected OV5647, camera_ros should work? |
Of course, libcamera has to recognise the camera. The ROS node is just using the library to access cameras, read image data, etc. This all should work as normal user without sudo. If you can use libcamera only with sudo, then your user is probably missing the access rights or other settings are missing or wrong. Can you please confirm if you can or cannot use the libcamera example applications (a.k.a. You can list the video devices with
shows me that the I am not in the |
I cannot use it without sudo. it could be due to raspberrypi step recommend sudo ninja -C build install while GitHub site recommends without sudo.
|
And this is the same for the ROS node, i.e. you can use it with sudo but not without sudo? If this is the case, then I guess you have to take the issue with libcamera or the rpicam-apps projects since there is nothing the node can do about this. |
if I use sudo ros2 run,
separately, what is your opinion on the humble-libcamera? |
after the following change. still on libcamera v0.1.0 $cheese works
![]() |
A new finding, after disabling start_x=1
|
You can also start the node directly via its |
Concretely, I mean that instead of @Jai-GAY Can you check if running the node with sudo this way allows you to access the camera? Also, can you be specific about what you expect to work and what concretely does not work? You are mixing a couple of things here and I am still not sure what issues are caused by the node and what is irrelevant to this repo. |
camera_ros was installed via
hoping this works. ros2 run camera_ros camera_node. by the way, if it works what will user see? I think camera_ros depends on libcamera, so I understand what you mean. current error.
|
Of course, you have to pick the correct path. If you install the node via the Debian package, the executable will be somewhere under
What issues do you have with this? You should still get images from the camera. |
No, that is the thing. |
Can you please be more specific about what the observed and expected behaviour is? What did you try, what did you expect and what was the actual observed behaviour? Is this still related to your initial problem? It is not possible to help you with this sparse information. The missing calibration file does not affect the published images. |
can you provide a screen capture of when the user runs this command and what success output is expected? ros2 run camera_ros camera_node |
If you are trying to use the node, there must be something that you expect it to do for you :-) Typically, you want to subscribe to an image topic to get the images from the camera. If you say you are not receiving images, what did you try? |
how does the user verify setup and that everything is working when executing the following command, ros2 run camera_ros camera_node? Do you have a screenshot example? |
I won't be able to help you unless you tell me explicitly and in detail 1)what you have tried, 2) what you expect to happen and 3) what actually happened. Your questions are generically about how to run a ROS node and use topics etc. For this, please consult the ROS tutorials and documentation at https://docs.ros.org/en/jazzy/Tutorials.html. |
I have only tried installing and launching the node. |
But what did you try with the node in order to access the images? Did you subscribe to the image topics? You said that you are not getting images from the camera. What makes you say that? |
First, I needed to verify that my hardware and settings were okay, so I used 3rd party software module or application to verify. So, I like to know how users verify that their subscription for images is not working or Camera_ros is not working. |
I created PR #52 to add more information about ROS topics, calibration and debugging to the documentation. Please have a look if this helps you to better understand what the node is supposed to do and let me know if anything is missing from your side there.
Not in the default info log level. You can enable the libcamera and ROS debug levels. With the libcamera debug information, you should see something like |
finally, I got the legacy camera working with Ubuntu 22.04 over OpenCV 4.x. |
The "legacy" mode will be removed at some point since libcamera is now the official way to access the cameras: https://www.raspberrypi.com/documentation/computers/camera_software.html. If you need something future-proof, I would not invest in the legacy mode. |
I am unsure if anything has to do with the libcamera I recompiled and reinstalled last month. Raspberry Pi’s implementation of libcamera supports the following cameras: |
I don't get what you want to say. libcamera supports all Raspberry Pi cameras. It's the officially supported camera software stack on the Raspberry Pi and the one this ROS node is made for. If you still want to use the legacy stack for a while, then you cannot use this node. |
I can run sudo rpicam-hello but not rpicam-hello, and also I get a Could not open any dmaHeap device error with the camera_ros. What am I missing?
ros-humble-camera-ros (0.1.0-2jammy.20240524.040616)
$sudo libcamera-hello --list-cameras
$ sudo v4l2-ctl --list-devices
The text was updated successfully, but these errors were encountered: