Gazebo | Ignition | Community
Ask Your Question
0

Regarding Gazebo RTF becoming low after increasing joints in the simulation

asked 2021-07-07 09:01:54 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I am working on a simulator environment in Gazebo 9.0.0 which have multiple joints in the sdf world. This causes RTF to drop down a huge number. I observed reducing the joints improves RTF I tried tweaking gazebo physics parameter: step size, update rate and iters to improve RTF but this causes instability in the simulation world, All the models starts vibrating a lot and also behaves weird in different pc. How can i improve the RTF without instability, Is there a limitation that Gazebo sim highly depends on joint numbers?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-07-12 03:05:27 -0500

Clément Rolinat gravatar image

updated 2021-07-13 02:47:43 -0500

Hello. I also had troubles with a low RTF with a lot of joints (actually, I think that the real issue is more the number of links/models in the world than the number of joints).

You could try to remove some unecessary collision checks (for example if you know that two given links won't collide anyway, or if a given collision is not relevant for your use case) with a collision bitmask tag, or the selfCollide tag for example. Also, try to use simple geometries for collision (such as sphere, box, cylinder) instead of meshes.

Finally, for the stability issue, you can try to add a bit of damping in the unstable joints, and enable the implicitSpringDamper tag in joints, wich is a more stable implementation of damping (see here in "<gazebo> Elements For Joints" part for implicitSpringDamper tag).

edit flag offensive delete link more

Comments

Thanks for your reply. RTF dropping is due to more number of joints. I verified the issue by reducing the joints and making link static.

In the simulation environment, I have made all collision simple (by using simple geometry: cuboid, sphere and cylinder). Well I ll try bitmask tag once.

Instability occurs when i change physics parameter to increase RTF.Also implicitSpringDamper tag is used along with continuous joints.Most of the joints in my simulation is fixed j

Saail gravatar imageSaail ( 2021-07-13 00:00:26 -0500 )edit

out of curiosity, what are you trying to simulate that requires a lot of fixed joints ? Maybe you could represents with a single link some group of links with fixed joints ?

Clément Rolinat gravatar imageClément Rolinat ( 2021-07-13 02:46:14 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-07-07 09:01:54 -0500

Seen: 252 times

Last updated: Jul 13 '21