Using AttachConstraint to tie deformable and rigid objects together #2735
-
Hi, I am trying to simulate the behaviour of a deformable object grasped by a robotic arm. The problem is to perform motions of the rigid object (gripper) that induce deformations in the flexible part. The code is attached to this post.
What I don't get is the syntax to pass a list of nodal positions based on indices to the "position" field of another component. Best |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Dear @adkoessler Welcome on the SOFA!
Thus, you will be able to create an AttachConstraint Hope this helps. Do not hesitate to share updates if any. Hugo |
Beta Was this translation helpful? Give feedback.
-
Sorry for the long wait. I have come to an answer thanks to @hugtalbot and I attach some scripts to exemplify the solutions that we found. It seems that using a projective constraint was not what I looked for, so I did not use an AttachConstraint Solution based on BilateralInteractionConstraintThe principle is as follows:
The example script Solution based on MechanicalMatrixMapperThe principle is as follows:
The example script Comparison
|
Beta Was this translation helpful? Give feedback.
Sorry for the long wait. I have come to an answer thanks to @hugtalbot and I attach some scripts to exemplify the solutions that we found. It seems that using a projective constraint was not what I looked for, so I did not use an AttachConstraint
Solution based on BilateralInteractionConstraint
The principle is as follows: