Gazebo | Ignition | Community
Ask Your Question

Migrate SDF from Gazebo4 to Gazebo5

asked 2016-03-13 12:47:14 -0500

tik0 gravatar image

updated 2016-03-15 19:26:09 -0500

Dear community,

we recently try to migrate our SDF model of a simplistic differential wheel drive robot from Gazebo version 4 to 5 (and above). Unfortunately, the kinematic model completely miss behaves in the upper version. Everything works fine in Gazebo 4, but e.g. when we set the velocities of one wheel-joint, the robot jumps away until the wheels rip of. We explicitly set all the inertia, mass, friction coefficients, etc., and it worked fine even with our self written plugins.

Is there any migration manual or "known issues" form porting models from Gazebo 4 to >5?

Kind regards, Tik0

[EDIT] link to sdf:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-13 23:02:56 -0500

updated 2016-03-15 19:28:11 -0500

Welcome to gazebo answers! You can find all the API changes that might be causing the problem. Does your code have any new warnings about deprecations?

Looking at your SDF, the inertias are incorrect. This would explain the wonky physics. image description

I'd check your math on that again. Nonetheless, I tested setting small forces/velocities to the wheels and had no issues (gazebo 7). If you're using jointCmd messages make sure to set all P, I, and D constants even if you want them to be zero.

edit flag offensive delete link more


Your link does not provide information about the changes in the SDF parsing behavior. Anyway, the API tells me indeed that the method "physics::JointPtr::SetMaxForces" is deprecated. But I face the strange behavior even without my plugins. Please find the the SDF (without the plugins) here:

tik0 gravatar imagetik0 ( 2016-03-15 09:34:09 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-03-13 12:47:14 -0500

Seen: 116 times

Last updated: Mar 15 '16