Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to change Gazebo client framerate?

asked 2017-01-25 08:05:28 -0500

reubenjohn gravatar image

updated 2017-01-26 03:23:01 -0500

It's a simple question for which I couldn't find anything online. Is it possible to set the framerate of the Gazebo Client at launch?

FPS indicator

I am having issues with my real-time factor reducing down to 0.3 and below. But this isn't acceptable since my control algorithms among other things start messing up with this unexpected "sluggishness" of the simulated robot.

I wouldn't mind compensating with a framerate of 16 FPS just to get the real-time factor higher. The GUI alone unnecessarily consumes as much as 20% of my system.

image description

Apologies if such functionalities are staring at me in the face but I literally got 0 results with the search term "Gazebo framerate". Thanks in advance!

Specifications:

  • i5 6200U, 8GB DDR3 RAM, Intel HD graphics (Integrated)
  • Ubuntu 16.04
  • Gazebo 7.0.0
  • empty_world simulation of URDF car-like bot with simple mesh, 2D LIDAR, IMU, low-res Camera, basic shape obstacles.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-25 08:49:46 -0500

nkoenig gravatar image

FPS in the GUI does not affect the real-time factor. The real-time factor represents the ratio of real time required by the physics engine to the amount of time simulated.

You can try running gazebo without the client, and you should see the same real-time factor.

What version of Gazebo are you using, what are your system specs, and what are you simulating?

edit flag offensive delete link more

Comments

Sorry, added the missing Specifications section. Ideally, the client shouldn't reduce real-time factor, but during simulation, all 4 cores peak to 100%, and real-time factor drops from 1.00 -> ~0.3. This indicates that the drop in real-time factor is at least partly attributed to the gzclient consuming ~20% on each core.

reubenjohn gravatar imagereubenjohn ( 2017-01-26 03:27:23 -0500 )edit

@nkoenig, even if FPS doesn't affect real-time factor, it would be good to control the frame rate to reduce overall CPU load. Is this something that is already implemented?

JLiviero gravatar imageJLiviero ( 2017-01-26 08:27:13 -0500 )edit

There is no easy mechanism to change the frame rate. You can compile Gazebo from source and change the default render rate. You can also offer a patch to Gazebo the make it easier to adjust the FPS rate.

nkoenig gravatar imagenkoenig ( 2017-01-26 09:26:16 -0500 )edit

Thanks, I'll consider adding a parameter for this purpose at launch.

reubenjohn gravatar imagereubenjohn ( 2017-01-26 12:22:52 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-01-25 08:05:28 -0500

Seen: 1,690 times

Last updated: Jan 26 '17