Comments (11)
I am using Ubuntu for this. But I recently also observed crashes inside the RPi ipa. Are you able to build libcamera 0.1 from source to see if this is a regression from 0.1 to 0.2?
from camera_ros.
It looks like libcamera v0.1 works better, I haven't had any crashes so far. However, now the images come very slow (5+ s per image, regardless of parameters).
I want to double check that it is not caused by our setup (distributed ros with a dedicated "camera pi"). But before, framerates worked fine (if they worked at all).
from camera_ros.
Okay, looks like the low frame rate is somehow an issue of distributed ROS. With libcamera v0.1, I can get a stable 1920x1080@10Hz locally, for example. Thanks for the tip!
How would one report this? I guess it is a libcamera problem, right?
from camera_ros.
How would one report this? I guess it is a libcamera problem, right?
You can report libcamera issues via https://bugs.libcamera.org but you would need a minimal reproducer outside of ROS, for example the cam
or qcam
executables.
from camera_ros.
I built arm64 Debian packages for version 0.1 and 0.2 of libcamera that contain the cam
executable: ros-humble-libcamera.zip. You can use them to check if the example executable reads data continuously without issues.
from camera_ros.
Can confirm same behavior with the IMX477. (Crashes on subscribe, works better at slower data rates or lower resolutions)
Trying these libcamera versions now... (Screenshot of GDB backtrace from original libcamera version)
rpicam-apps build: 6202c09b2bfa-intree 19-04-2024 (05:46:57)
libcamera build: v0.2.0
from camera_ros.
I manually compiled the node with libcamera 0.1 and can confirm that it does not crash for me with the older version.
from camera_ros.
I reverted the libcamera version in the ROS repos back to 0.1 and this fixes the issue for me. With the "testing repos" (https://docs.ros.org/en/humble/Installation/Testing.html) you should be able to install the older version again that does not show this crash.
@IGNNE @nbaldy Can you conform this works for you with libcamera 0.1 in the testing repos?
from camera_ros.
Sorry for my late answers, there are some deadlines coming up and I am just happy that I found a setup that "works for me" (manually compiled against libcamera 0.1). I'll try that version as soon as I can, thank you for looking into this!
from camera_ros.
I'm hitting the same issue and was able to try the testing version tonight. I can confirm the crash does not occur in the v0.1 version.
Environment:
- RPi 4B
- Camera Module v2 (IMX219)
- Ubuntu 22.04
Node arguments:
ros2 run camera_ros camera_node --ros-args -p width:=640 -p height:=480 -p format:=BGR888
In all cases, the subscriber is an instance of ros2 topic hz /camera/image_raw
.
Behavior with libcamera v0.2:
- subscribing locally shows messages coming in at 15 Hz
- subscribing from another machine causes the node on the Pi to segfault
Behavior with libcamera v0.1:
- subscribing locally shows messages coming in at 15 Hz
- subscribing from another machine shows messages coming in at 6 Hz
from camera_ros.
I can reproduce the issue without ROS and have reported this as https://bugs.libcamera.org/show_bug.cgi?id=220. However, since the libcamera examples (cam
, qcam
) run fine on the Raspberry Pi, the issue is still somehow triggered by the way the code is interacting with libcamera.
from camera_ros.
Related Issues (20)
- error specifying default camera HOT 5
- No cameras available on Ubuntu 22.04 with ROS humble HOT 4
- Libcamera on Ubuntu 22 HOT 1
- FPS and resolution HOT 1
- Support for Image Transport (Idea) HOT 9
- Error "what(): cannot create std::vector larger than max_size() [ros2run]: Aborted" when run camera_node HOT 4
- Is there an example launch file? HOT 18
- Build errors when remote building ROS packages HOT 2
- Image encoding issue HOT 2
- Invalid configuration HOT 18
- Camera feeds send data for half a second then become unstable. HOT 2
- How can I disable auto exposure and set exposure time? HOT 10
- Raspberry Pi 5 with IMX477 HOT 1
- Build issue when running colcon
- IMX477 sensor configured as a sink HOT 1
- Is there a ROS1 version? HOT 2
- No Calibration File for OV5647 HOT 10
- Upper limit of ExposureTime is 0 HOT 2
- default configuration differs from libcamera examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camera_ros.