openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.86k stars 816 forks source link

Detecting a Qhull Exception #478

Open btickell opened 4 years ago

btickell commented 4 years ago

I am procedurally generating mujoco environments and in some cases the model is unstable and either can't be loaded at all or generates warnings. In the case where the model fails to load an exception is generated and I can easily remove that model. However some models generate a Qhull warning but continue with simulation. Is there an easy way of detecting these warnings in python?

The warning text is below:


The initial hull is narrow (cosine of min. angle is 0.9999999999999999).
Is the input lower dimensional (e.g., on a plane in 3-d)?  Qhull may
produce a wide facet.  Options 'QbB' (scale to unit box) or 'Qbb' (scale
last coordinate) may remove this warning.  Use 'Pp' to skip this warning.
See 'Limitations' in qh-impre.htm.```
rohit-kumar-j commented 1 year ago

Can you show a minimal example?