Units in SOFA and vibration problems #135
-
Hello everyone I have been trying to create an arm inside SOFA that's controlled by four cables. I posted an issue before of the arm disappearing after starting the animation and the problem is solved, at that time I started by creating the arm with one cable then I added three more cables. My issue now is when I control the arm, I found that the arm breaks and vibrates with no error from SOFA. Here's a video that shows the error and my code is here I have two more questions, first what are the units that SOFA use for example in cable controller in the following examble the value of the force is increased by 1000. The arm I'm trying to simulate should be actuated by cables with maxForce = 15 Newtons. My other question is in the example when I press the plus key, the finger moves step by step as much as I press the key but when I press the minus key the finger reset to its rest position suddenly not step by step as what happens when you press the plus key. Do you know what the solution could be for this as it also happened with the arm I'm trying to simulate? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
For the vibration problem, by watching the video, I can see that the deformation at the extremity of the arm is too much at some point, making some tetrahedrons "turn over". I'm familiar with the phenomenon, but can't find any documentation about that. For the units, you are the one who decides what 1 means. It's not a setting in SOFA per se, but a choice that you make when entering the parameters such as the mass, the gravity, and Young's modulus. For instance, if your mesh is in mm, then your gravity should be For your last problem, the keyboard control works fine for me. Is it possible that you've changed the files? I should say that I'm on the master branch of SoftRobots. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi @Abdelrahman-Alkhodary,
For the vibration problem, by watching the video, I can see that the deformation at the extremity of the arm is too much at some point, making some tetrahedrons "turn over". I'm familiar with the phenomenon, but can't find any documentation about that.
For the units, you are the one who decides what 1 means. It's not a setting in SOFA per se, but a choice that you make when entering the parameters such as the mass, the gravity, and Young's modulus. For instance, if your mesh is in mm, then your gravity should be
9810
, because9.81m.s-2
is9810mm.s-2
. Now if you enter the mass in kg, and you want the Young modulus to be5e-3GPa -> 5e6Pa -> 5e6kg.m-1.s-2 -> 5e3kg.…