gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.16k stars 476 forks source link

gzsdf: Can't disable gravity for a single link #1185

Open osrf-migration opened 10 years ago

osrf-migration commented 10 years ago

Original report (archived issue) by Jonathan Bohren (Bitbucket: jbohren).


When using gzsdf to convert an URDF with a <gazebo> tag with a <gravity> child like the following, gzsdf adds an additional <gravity> tag which re-enables it. This prevents the feature from being used via URDF.

in URDF:

<gazebo reference="link_name">
  <gravity>0</gravity>
</gazebo>

in generated SDF:

<link name="link_name">
  <!-- ... -->
  <gravity>0</gravity>
  <gravity>1</gravity>
</link>

When trying to spawn a similar URDF in gazebo, errors similar to these are shown:

Warning [parser_urdf.cc:1010] multiple inconsistent <gravity> exists due to fixed joint reduction overwriting previous value [false] with [true].
Warning [parser_urdf.cc:1010] multiple inconsistent <gravity> exists due to fixed joint reduction overwriting previous value [false] with [true].
Warning [parser_urdf.cc:1010] multiple inconsistent <gravity> exists due to fixed joint reduction overwriting previous value [0] with [true].
osrf-migration commented 10 years ago

Original comment by Jonathan Bohren (Bitbucket: jbohren).


osrf-migration commented 10 years ago

Original comment by Jonathan Bohren (Bitbucket: jbohren).


osrf-migration commented 6 years ago

Original comment by Andrew Symington (Bitbucket: asymingt).


I am experiencing this issue too.

osrf-migration commented 6 years ago

Original comment by dan (Bitbucket: dan77062).


Me too.

osrf-migration commented 6 years ago

Original comment by Zheng Qu (Bitbucket: Mavericks_qu).


I can confirm this issue on Gazebo 7.0. Is anyone working on this issue right now?