How to get the input control matrix from SOFA #5007
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
The matrix you want to get is not available through Python in SOFA. There is a work in progress so it becomes available. Stay tune, it may come in the next days/weeks (but you will have to compile SOFA or wait the next release in december). The very short term solution would be to get it in C++ |
Beta Was this translation helpful? Give feedback.
-
Actually, I realized that the matrix is already available in the Data |
Beta Was this translation helpful? Give feedback.
-
A Pull Request has been submitted sofa-framework/SofaPython3#459. If you build SOFA yourself, you can already checkout the branch (but changes may still occur), or you wait that it is merged into |
Beta Was this translation helpful? Give feedback.
Actually, I realized that the matrix is already available in the Data
constraint
of aMechanicalObject
. The problem is that it will be a string, and you will have to parse it (making the simulation ultra-slow). Here is an example of what you would get: