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

turnGravityOff tag doesn't work with groovy gazebo 1.5

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

this post is marked as community wiki

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

Hey,

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">
    <turnGravityOff>true</turnGravityOff>
 </gazebo>

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?

thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

psei gravatar image

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

See http://gazebosim.org/sdf/1.4.html for all possible parameters

edit flag offensive delete link more

Comments

This no longer seems to be correct, and in a URDF Gazebo reference, turnGravityOff is used: https://bitbucket.org/osrf/sdformat/s...

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

Question Tools

1 follower

Stats

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

Seen: 859 times

Last updated: Oct 15 '13