Skip to content

Low FPS in ROS with AirSim drone #3297

@giovannifagotti

Description

@giovannifagotti

Question

What's your question?

Hello everyone,
I'm using the Unreal Plugin of Airsim in combination with ROS to record a rosbag with the drone.
Since I have a very low frame rate in ROS, I would like to increase it reducing the parameter "ClockSpeed" in settings.json.
After this setting, I effectively noticed that the simulator speed has become slower, but in ROS I continue to record with the old frame rate.
There are some parameters to set also in ROS that I have missed?

Include context on what you are trying to achieve

I would like to record a rosbag with the AirSim drone at 20fps for each camera.

Context details

Include details of what you already did to find answers

I'm using the "NoDisplay" mode in the settings.json and, with a clock speed of 1.0, I can obtain 10 fps.
Consequntly, I set the clock speed to 0.5, but I continue to get 10 fps while recording the rosbag.
In the launch file, I have setted the "update_airsim_img_response_every_n_sec" at 0.01.
Can someone explain how to use the parameter "ClockSpeed" to get a higher frame rate in ROS?

Thank you for your support,

GF

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions