Sorry for the late reply, my code base was a mess and we had to fix an issue between OpenGL and SofaPython3.
I can provide you with a simple rendering function I use.
The code below will create a pygame display, fetch the opengl context and print it on the display. You can use the commented code and the PIL Image library to export…[Read more]
PierreShg replied to the topic Using SOFA in the context of reinforcement leaening in the forum Using SOFA 1 year ago
I am working on controlling robots with RL and Sofa.
Concerning launching Sofa simulations with subprocess there is a nice launcher in sofa/tools/sofa-launcher which might be useful if you want to start several simulations maybe with different parameters (think A2C for instance).
As Bruno said, there is no nice way to advance the simulation…[Read more]
I see you solved your problem so this may not be such a useful comment but still…
I ran into the same problem a couple months ago with Sofa and an Image Processing plugin. Cmake was trying to import libpng from anaconda in one case and from the pip installation in the other case and that was messing things up.
I solved the problem by…[Read more]