- This topic has 2 replies, 2 voices, and was last updated 3 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SofaPython3 › Using SofaPython3 › [SOLVED] Problem adding UncoupledConstraintCorrection
Tagged: Linux_ubuntu, newbie, SOFA_2012
I am trying to do the “First Steps” tutorial in STLIB (there’s a nice video on it that I thought I could try). I am using v20.12 of SOFA and SofaPython3, and the STLIB plugin’s stlib3 Python modules. I am brand new to SOFA, so just learning where all the pieces is my first challenge. Now I actually have built a scene with “Floor” and “Cube” RigidObjects from the stlib3. But apparently the UncoupledConstraintCorrection that is applied to the cube object fails with “Can’t find any odeSolver”
I have enabled the plugins for libSofaExplicitOdeSolver.so, libSofaImplicitOdeSolver.so, libSofaGeneralExplictOdeSolver.so and libSofaGeneralImplicitOdeSolver.so.
Any idea on what I could be missing?
Hi @pzingg
Welcome to SOFA!
SOFA and the plugin SofaPython3 are officially supported by the SOFA consortium staff. STLIB is a plugin developed by one of the community team. We are therefore no expert of it.
Could you detail us here the scene you have written please?
We will try to investigate. However, the message is quite explicit: a ODE solver is missing.
I am sure we will quickly help you.
Best
Hugo
From looking at the source code I think the issue is that the default constructor (in UncoupledConstraintCorrection.inl) sets the default for the attribute d_useOdeSolverIntegrationFactors to be “true”, which means that an ODE solver must be set in the attribute m_pOdeSolver in the constructor (it is instead set to nullptr). At runtime the code spits out the “Can’t find any odeSolver” message, sets the attribute to false, and carries on with default integration factors after that. Anyway I’m moving on to other problems, now, thanks!
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.