I'm trying to simulate a custom gripper in Webots. For this purpose, I use an active-passive connector to simulate the custom gripping mechanism. So far, so good. The gripping works fine.
However, then I move the object together with the gripper. The fingers of the gripper seem to fall of the gripper. I've used SliderJoints similar to the Kuka Youbot example (in general, I tried to replicate the Youbot gripper), but the fingers still seem to be movable in other directions than the joint axis.
Here is a short video demonstrating the problem: https://youtu.be/VNdWUMkHEcM
Any ideas what could be the reason and how to debug this? I'm happy to share parts of the simulation code if required.
UPDATE 1: After a little of research if found this FAQ article: https://cyberbotics.com/doc/guide/modeling#my-robotsimulation-explodes-what-should-i-do
This helped me to reduce the problem by changing the size of my bounding boxes.
Thanks to this I now found the source of the error: When moving the object around, the object "lags" behind the gripper. When decelerating, the gripper then collides with the object.
A simple solution would be to further reduce the size of grippers bounding box. However, I think it would be better to disable collisions between my passive connector objects and the active connector gripper. However, I'm not sure how to do that.