luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
239 stars 173 forks source link

[Help] rgbd_pcl low FPS #409

Open SpacePanda-42 opened 9 months ago

SpacePanda-42 commented 9 months ago

Hi, I have been trying to get depth and rgb images published simultaneously from a Turtlebot4 with an Oak-D-Lite. Currently I'm using rgbd_pcl.launch.py, but am having frame rate issues (~4-5 FPS). I have tried setting i_low_bandwidth to true for everything from camera.yaml in depthai_ros_driver/config/ as well as lowering the i_low_bandwidth_quality to 20. However, nothing seems to improve the performance. It looked like I should be editing camera.yaml, but it was mentioned in another issue that rgbd_pcl has its own .yaml file (which appears to now be gone) https://github.com/luxonis/depthai-ros/issues/329.

Any insight would be appreciated. Not sure if I've modified the low_bandwidth setting incorrectly or if there's a better way to output lower resolution images.

Serafadam commented 9 months ago

Hi, are you subscribing to the images from other PC? If yes, framerate can be influenced by network/DDS settings, here you can find a guide on tuning DDS. If not, please share your config file and exact setup according to the bug template.

alduxvm commented 9 months ago

I had the same issue, until I realize it was the cable... I tested 3-4 cables until one gave me the proper FPS using the rgb_stereo_node.launch , I used to have 7-8 fps and now with a proper cable I have 30 on the color image