Two geometries have penetrated, but constraint force is 0 #2694
Replies: 1 comment
-
Hi,
I tweaked your model so that the boxes start off as penetrated. You can increase the damping in
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi!
I am a student at BIT, I use MuJoCo for my research on compliant capture control.
My setup
Mujoco 3.3.1
My question
I am trying to validate the constraint acceleration formula.

I am trying to upload two boxes, and let one box drop on another box by gravity. The falling box first penetrates the stationary box, then bounces upward, continues to fall under gravity, penetrates again, and finally stabilizes. I use geomDistance to obtain the minimum distance
dist
between the two objects. I thought that as long asdist < 0
(i.e., penetration occurs), there must be a constraint-based contact force between them. However, in the code I provided, when I output the distance and contact force from timestep 1088 to 1098, althoughdist < 0
, the contact force is 0. I don’t understand why this happens.Minimal model and/or code that explain my question
If you encountered the issue in a complex model, please simplify it as much as possible (while still reproducing the issue).
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions