robotology / gazebo-yarp-plugins

Plugins to interface Gazebo with YARP.
33 stars 48 forks source link

Model in different physics engines Gazebo 4.0 #146

Open hu-yue opened 10 years ago

hu-yue commented 10 years ago

I open a new issue regarding the model of iCubHeidelberg01 that was obtained from a direct conversion from CAD as a reminder of the encountered problems. @traversaro and I tried to load the model in Gazebo 4.0 with different physics engines (ODE, Bullet and SImBody), the model was loaded correctly and if the one being loaded is the fixed one it seems there is no big difference among the different engines. However if we take the model that's supposed to stand on the ground, the following happens:

traversaro commented 10 years ago

For SimBody : I guess that is caused by Gazebo Issue https://bitbucket.org/osrf/gazebo/issue/883/simbodycollision-doesnt-support-meshes-or . I suggest voting for this issue, however for getting simbody to work it could also make sense to substitute collision meshes with primitive shapes (useful also for performance reasons).

For Bullet: could it still be related to friction problems, I would consider looking if we define all the friction parameters that the atlas model is defining: https://bitbucket.org/osrf/drcsim/src/2df318b039f040dca6b430534dd104abd7a23cc7/atlas_description/urdf/atlas_v4.gazebo?at=default .

hu-yue commented 10 years ago

In the sdf format there is the possibility to specify contact and friction parameters for ode and bullet (http://sdformat.org/spec?ver=1.5&elem=collision#bullet_friction). In icub-gazebo there is only ode, however I tried to introduce the bullet parameters in iCubHeidelberg01 and it doesn't seem to work, but I need to check further if the numbers I put make sense and if it is ok to put both ode and bullet.

traversaro commented 10 years ago

I found that most of the instability problems are related to the "fake" fixed joints thay we are using for simulating ft sensors. I guess that until this bugs in Gazebo are fixed, it could make sense to provide a version of the model without this "fake" fixed joints for increased stability. This will be trivial using the URDF format and the <disableFixedJointLumping> joint, as soon they merge my PR https://bitbucket.org/osrf/sdformat/pull-request/126/added-urdf-gazebo-extension-option-to (it then should be available in Gazebo 5).