-
Notifications
You must be signed in to change notification settings - Fork 193
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
Low FPS in ROS 2 using Python API. #1049
Comments
Hi @Shivam7Sharma , For FPS/latency optimization please refer to the documentation here: |
@Erol444 I have looked at the webpage in this link. It says at 400 resolution i should be getting more than 10 fps. I am usimg super plus usb speed and low resolution. Do you have more debugging steps? |
@Shivam7Sharma have you tried the exact same code as I used? |
@Erol444 Thank you for your reply. I tried your code. I got 120 fps. But I want good fps in ROS 2. So if I don't open Rviz or visualize, then the fps will be higher in ROS 2? I am checking the fps using |
@Erol444 I updated the code and used no visualization. The fps I got with ROS 2 was 24 when I set it to 120. But
|
@Shivam7Sharma as per our benchmarking from the past, Python->ROS2 has very poor performance (bandwidth wise). |
@themarpe Okay, I will try C++ with a Depth AI ros bridge. I am having issues with the depthai ROS 2 driver, so that is why I am writing my own. I asked for help in the Luxonis forum for their driver, but there has been no help so far regarding this in the past month. |
@Shivam7Sharma could you share the link to the forum post you are referring to? |
FWIW, for ROS 2 data transport with large messages (like video frames), you will get a big boost from using either shared memory (good) or in-process memory (best). You can eliminate use of network and shared memory by using composition. Shared memory transport only works with messages of fixed size, so you would need to choose a message definition that has fixed size, like one from here |
Thanks for the info @jwdinius! |
Hi,
I am writing my own ROS2 driver because the one depthai gave doesn't work properly. I am using Python API. The fps is less than 10 at 400 resolution. What might be causing the low fps? How to improve the fps? The following is my code which I agree might not be 100% accurate:
Here is an image of the performance:
The text was updated successfully, but these errors were encountered: