2 November 2018 at 17 h 54 min #12325
- Michigan State University
I am currently trying to use SOFA with an external library built in C++ for evolving Artificial Neural Networks. The best solution so far seems to be implementing the SOFA simulation in C++ for flexible integration. I have used Bullet Physics in the past with same approach, and I would like to get similar results with SOFA as my simulation environment this time.
A few notes first:
– I am already familiar with the XML scenes and Python scenes files for the runSofa binary
– I also know about the PythonScriptController for modifying/accessing simulation data from .pyscn files during animation
– I have studied most of the C++ examples at application/tutorials folder
– I am using cmake to compile and link my SOFA/ANN cpp files
The problem is that many SOFA examples that I am interested in (including plugin-based ones) are not provided in C++, so I have been spending some time doing reverse engineering from Python wrapped code to C++.
1) What are other available resources that I can use to help with my C++ implementation?
2) Also, I have been using the SOFA base modules in my C++ code. Should I switch to using the SimpleAPI library or SceneCreator plugin instead for code optimization (shortening code length as well)?22 November 2018 at 19 h 26 min #12519
- SOFA Consortium
1) Resources for SOFA :
– follow the online documentation
– watch our first Tutorials on YouTube
– start using SOFA, running the examples/Tutorials
– read a reference paper about SOFA
– browse the SOFA API
2) SOFA base modules in my C++ code is fine for your purposes at my best knowledge
Hugo19 December 2018 at 23 h 45 min #12629
- CNRS/Defrost Team
It is great to see how deep you already have learned about Sofa.
On my side I rarely use Sofa directly using the c++ interface but I appreciate a lot the SimpleApi to create scenes in c++.
SceneCreator is now deprecated, it is just there of backward compatibility (and it actually implemented on top of the SimpleApi).
The design rational behind the SimpleApi was to make it looking more like the python API. In case you would like to see more function in SimpleApi, don’t hesitate to pass by the github because this is where the software development happens.
In case you have specific question on that, feel free to ask.
Regards,16 January 2019 at 14 h 20 min #12792
You must be logged in to reply to this topic.