Gazebo | Ignition | Community
Ask Your Question

Multithreading gzserver

asked 2012-12-26 19:03:52 -0500

PMilani gravatar image

Is it possible to run gzserver over multiple cores does gzserver incorporate multithreading?

When running gzserver all the physics and plugin modelling is really only run over a single core, my computer has 4 cores and 8 threads and I was wondering if it were possible to run gzserver across more than one core inorder to get better performance. If gzclient is run a the same time, it spreads itself over the remaining cores, but for my application the gui is not really that important.

when running htop with gazebo running the gzserver runs over two threads, utilising one at 114% and the other at 98% but still only getting a real time factor of 0.08

Any suggestions?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-27 07:49:47 -0500

ThomasK gravatar image

updated 2012-12-27 07:53:34 -0500

At the moment multi-threading is not supported. There used to be a parallel_quickstep extension which allegedly worked in cturtle or diamondback but even there I only got it to compile but not run on multiple cores or even the GPU.

The only solution to this problem is probably to wait for a month until Bullet integration is finished which has a parallel solver and GPU support.

Btw. make sure you increase the update rate when decreasing the step size. 0.08 looks like you're running a 1e-4 step-size without increasing the update rate to 10k.

edit flag offensive delete link more


how do you adjust that? I'm using Gazebo 1.0 as available in the ROS installation. I thought I read somewhere that the update was fixed to "as fast as possible", but had been made adjustable in Gazebo 1.2

PMilani gravatar imagePMilani ( 2013-01-03 22:36:33 -0500 )edit

I'd suggest updating to Gazebo 1.3.1

nkoenig gravatar imagenkoenig ( 2013-01-09 16:05:50 -0500 )edit
PMilani gravatar imagePMilani ( 2013-01-12 18:42:48 -0500 )edit

Question Tools

1 follower


Asked: 2012-12-26 19:03:52 -0500

Seen: 9,669 times

Last updated: Dec 27 '12