-
Notifications
You must be signed in to change notification settings - Fork 1.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
Compressed depth from D435 ROS Kinetic publishing at low FPS (approx 3Hz) #369
Comments
I believe this is an issue with the way ROS compresses depth images (as a png). PNG compression is very slow - it wouldn't surprise me to learn you're only getting 3fps compressing a 1280x720 depth image to a png. You can try reducing the png compression level using dynamic reconfigure, but it's still not going to be very fast. |
Thanks @jpapon. However, I have never had this problem with any other RGB-D camera I have used with ROS including the original Kinect, Asus Xtion Pro Live and Stereo Labs ZED. Also, I am running the camera at only 640x480 resolution. Just now I tested my old Kinect under ROS Kinetic/Ubuntu 16.04 and I'm getting 30 fps for both RGB and depth images at 640x480 resolution. |
Try adjusting lowering the quality of compressedDepth using dynamic reconfigure. You’ll see the frame rate of the compressedDepth topic increase. In my experience, the png encoder is the bottleneck. Maybe at VGA res it’s okay, but certainly at 1280x720 it will kill you. It doesn’t matter what camera you use, the compressedDepth is going to be slow. Though it’s possible other cameras have smoother depth maps which might be faster to compress? |
OK thanks. I've switched to a ZED stereo camera for now but I was able to confirm the effect of PNG compression level on FPS on the ZED so I'm guessing you are right about the D435. |
I tried this on a d435i running on a i7-6700 laptop and can confirm the impact of For |
@aclswarm im having the same issue with latancy how do use the dynamic reconfigure to fix it i've never used it before? |
Hello,
We are using a D435 on ROS Kinetic, Ubuntu 16.04 with all the default parameters. I compiled the development branch and it can see the camera and publish RGB and depth topics. However, while the uncompressed depth topic /camera/depth/image_rect_raw is publishing at 30Hz, the compressed depth topic /camera/depth/image_rect_raw/compressedDepth publishes at only 3Hz.
I have tried restarting the driver and the computer but the result is always the same.
The text was updated successfully, but these errors were encountered: