AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

How to change the publishing rate of airsim_node ?

Open jzstudent opened this issue 7 years ago • 5 comments


Hi, when I used the ros package ( airsim_ros_pkgs ) to publish the image or depth image, I found that the rate is only 0.6! How to improve it? I have already changed the publish_to_ros in .json, but it seems to be useless. Maybe the reason is that simgetImage() is slow, how can I slove it?

jzstudent avatar Aug 09 '19 11:08 jzstudent

What image resolution are you using?

saihv avatar Jan 20 '20 09:01 saihv

I have the same question, was anyone able to figure out how to change the publishing rate?

Omar-Elmofty avatar May 26 '20 12:05 Omar-Elmofty

I have the same question, was anyone able to figure out how to change the publishing rate?

First please check if the "update_airsim_img_response_every_n_sec" parameter has been tuned.

If the publishing rate is limited by the computer performance, maybe changing the ClockSpeed setting to a less than one number is a solution.

I have tested that slower simulation would produce denser image response.

Related discussion in #2369

GimpelZhang avatar May 26 '20 13:05 GimpelZhang

I have the same question, was anyone able to figure out how to change the publishing rate?

Hi, I've tried to set "ViewMode": "NoDisplay" in .json, it makes the rate improve and I 've already slove it.

jzstudent avatar May 26 '20 15:05 jzstudent

Thanks! The NoDisplay mode helped a lot, also slowing down the simulation helps.

Omar-Elmofty avatar May 26 '20 21:05 Omar-Elmofty