How to get the input control matrix from SOFA #5007
Answered
by
alxbilger
xlsufo
asked this question in
SofaPython3
Answered by
alxbilger
Sep 19, 2024
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++ |
1 reply
Answer selected by
xlsufo
|
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





Actually, I realized that the matrix is already available in the Data
constraintof 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: