Open schlexl opened 4 months ago
Hi
I am experiencing the same problem with Mujoco 3.1.5 The collision between my robot and a box is not detected when the box is thin. My workaround is to use a thicker box since I am using it as a transparent geometry to limit my workspace. Anyways, this is not the best solution.
We are working on a general re-write of the collision pipeline (ETA 1-2 months) that should fix this. These "bad" examples are extremely valuable for this purpose, so thanks (please provide more if you encounter them!). We will update here when the fix is in.
Description: I am currently optimizing body/geom positions, but my solver converges to positions that are in clear and deep contact. According to the documentation, "For example in models where bodies are initialized in penetration, large repulsive forces could push them away and cause divergence.", but as far as I understood this should be not the problem in this case?
I have provided an XML configuration with two different geom positions, as well as a script to replay the Issue. When using the deeply penetrating geom (pos="1.10164554 -0.11389316 0.74"), no collisions are detected, even though the geomDistance is negative. This seems like an unintended behavior.
Replay script:
deep penetration:
shallow penetration:
Thank you in advance!
Edit: in mujoco version 3.0.0 both deep and shallow collisions get detected.