lucasw / rviz_camera_stream

Custom rviz camera plugin that published rendered camera video stream
BSD 3-Clause "New" or "Revised" License
59 stars 45 forks source link

rviz image topic speed #19

Closed liuxin00738 closed 6 years ago

liuxin00738 commented 6 years ago

Hi lucasw,

This is a great package. I am currently using it. However I do have a question about the speed of this package, can it be faster? Currently I see a image topic frequency of 30hz, when I remove all the things there (no subscriber, everything run on one machine), and only has one marker, and one camera. Surprisingly, the speed does not change either I have one or three cameras. So I think there is potential to make it faster. However, I tried several places to tic-tac the system, I could not find the reason why it seems to be bound to 30hz. Maybe you can point me to a direction? I am trying to use this to interface with a user input device so I want to see how fast this can go.

Best Regards,

Xin Liu

lucasw commented 6 years ago

This plugin gets frames at the rate rviz decides to produce them, but rviz framerate can be set in the Global Options | Frame Rate:

https://answers.ros.org/question/223528/how-to-set-rviz-to-60-hz/

I tried setting it to 60 and only got about 50 fps, though I think that is using Intel rather than discrete graphics. Vsync settings or other graphics card specific options outside of rviz options may play a role if the gpu was getting used.

liuxin00738 commented 6 years ago

Thanks! I got even 90hz when I disable all subscribers.

On Mon, Apr 9, 2018 at 6:46 AM Lucas Walter notifications@github.com wrote:

This plugin gets frames at the rate rviz decides to produce them, but rviz framerate can be set in the Global Options | Frame Rate:

https://answers.ros.org/question/223528/how-to-set-rviz-to-60-hz/

I tried setting it to 60 and only got about 50 fps, though I think that is using Intel rather than discrete graphics. Vsync settings or other graphics card specific options outside of rviz options may play a role if the gpu was getting used.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lucasw/rviz_camera_stream/issues/19#issuecomment-379757602, or mute the thread https://github.com/notifications/unsubscribe-auth/ASx265HI6N317lONF3OV2gtnYqNYAnrRks5tm2Y1gaJpZM4TMCXU .

-- Xin Liu PhD Candidate Department of Mechanical Engineering University of Delaware