ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

turnGravityOff tag doesn't work with groovy gazebo 1.5

asked 2013-10-15 03:51:10 -0500

this post is marked as community wiki

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


I'm having a problem with switching off the gravity for my models. I'm using ros groovy with gazebo 1.5 (but I installed gazebo seperately because I wanted to edit the sources). When I first tried the roslaunch, my model from the urdf file wouldn't load, I got the error message:

XML Element[turnGravityOff], child of element[link] not defined in SDF. Ignoring.[link]

So I removed the code

  <gazebo reference="my_model">

and the model would load correctly. But now its falling or doing other weird stuff like jumping etc... Does anyone know what the right tag for gravity off is for the urdf file without getting this error message?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-15 21:01:35 -0500

psei gravatar image

"<turngravityoff>true</turngravityoff>" is not defined in SDF (as the error message says), you should use "<gravity>false<gravity>".

See for all possible parameters

edit flag offensive delete link more


This no longer seems to be correct, and in a URDF Gazebo reference, turnGravityOff is used:

Adam Allevato gravatar image Adam Allevato  ( 2017-09-16 13:54:33 -0500 )edit

Question Tools

1 follower


Asked: 2013-10-15 03:51:10 -0500

Seen: 823 times

Last updated: Oct 15 '13