Home › Forum › SOFA › Using SOFA › Problem when running SoftRobots python script (SOFA v18.12 on Ubuntu 16.04)
Tagged: 64_bits, Linux_ubuntu, SOFA_other
- This topic has 6 replies, 4 voices, and was last updated 5 years, 10 months ago by Damien Marchal.
-
AuthorPosts
-
29 January 2019 at 08:16 #12921nickljBlocked
Hi,
Appriciate if anyone can help on the problem. I’ve already successfully compiled SOFA with SoftRobots and STLIB. Now I’m trying to run the tutorial cases. No matter which one I use, there is always similar error and showing the messages as:
[ERROR] [PythonScript] RuntimeError: Unable to create ‘OglSceneFrame’ of type ‘OglSceneFrame’ in node ‘root’. Object type OglSceneFrame<> was not created
The object is not in the factory.File “cablegripper.pyscn”, line 8, in createScene
MainHeader(rootNode, gravity=[0.0, -981.0, 0.0], plugins=[“SoftRobots”])
File “/opt/sofa/v18.12/lib/python2.7/site-packages/stlib/scene/mainheader.py”, line 55, in MainHeader
node.createObject(‘OglSceneFrame’, style=”Arrows”, alignment=”TopRight”)Thank you very mcuh.
29 January 2019 at 09:02 #12922Bruno MarquesBlockedHi @nicklj,
Could you tell us more about your build setting?
– Which OS are you on?
– Did you manually activate / deactivate any option in cmake besides PLUGIN_SOFAPYTHON, SOFA_BUILD_METIS?
– Could you dump the whole output of runSofa on the problematic scene?29 January 2019 at 09:22 #12923WongBlockedHello @bmarques
That issue is unrelated to the OS because the component OglSceneFrame has been removed from Sofa since v18.12. To avoid this issue, a simple way is to comment out the line
#node.createObject('OglSceneFrame', style="Arrows", alignment="TopRight")
at mainheader.py in Plugin STLIB. But that is not a fundamental solution.Moreover, I have another problem that the component SparseLDLSolver always outputs the message “Failed to factorize, D(k,k) is zero”. I do not know why.
Wong
29 January 2019 at 09:48 #12924nickljBlocked29 January 2019 at 10:15 #12925Damien MarchalBlockedHi all,
You are totally right, thank you for opening an issue on this topic.
We will discuss the removal of the deprecated component in this PR https://github.com/sofa-framework/sofa/pull/905
The change proposed by Wong is also one option (Wong could you make a PR for that ? Otherwise I will do it).
Feel free to join.
29 January 2019 at 12:23 #12927WongBlockedHello @damien-marchaluniv-lille1-fr
No, I can’t. But I want to ask a question. I do not know why the component SparseLDLSolver does not work on Windows.
Wong
29 January 2019 at 13:06 #12929Damien MarchalBlockedHello @outtt
I suggest we pursue the investigation about the SparseLDLSolver problem in the corresponding thread: https://www.sofa-framework.org/community/forum/topic/how-to-use-the-component-sparseldlsolver/
Damien.
-
AuthorPosts
- You must be logged in to reply to this topic.