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.```
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: