- This topic has 6 replies, 4 voices, and was last updated 3 years, 6 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Getting Started › [SOLVED] .pyscn file (SoftRobotics Plugin)
Tagged: newbie
I am new to SOFA and am trying to use the SoftRobotics plugin. So far, I’ve only used XML .scn files with SOFA.
I’ve downloaded the binaries file (https://project.inria.fr/softrobot/install-get-started-2/download/) and can open SOFA, but cannot open any of the included tutorials with the “.pyscn” file type.
Are there other steps I need to take to install SOFA and the plugin beyond just downloading the binaries file?
How can I run the .pyscn files in SOFA?
Any guidance is appreciated. Thanks!
Hi @twxu
Welcome to the SOFA forum then!
Do you have python installed on your machine? This is what seems to be missing.
Best
Hugo
Hi @Hugo
Thanks for the prompt response!
After some debugging I’ve figured out the issue:
– I had Python 3.8 installed, but it looks like Python 2.7 is required
– After rolling back to Python 2.7 and installing numpy, until Command Prompt outputs match those given in this thread, I was able to open the .pyscn files no problem.
Thanks!
Just to be clear, in v20.12 is it possible to load .pyscn files with SofaPython3? Or must I disable SofaPython3 and rebuild SOFA with SofaPython?
FYI, This is what I’m getting if I point SOFA to the FirstSteps/firststeps-tuto.pyscn file contained in the SoftRobots plugin source tree:
[ERROR] [DAGSimulation(Simulation)] extension (pyscn) not handled
I got it working. Didn’t realize you have to enable pligin shared libraries in the Plugin Manager. I also had to add a file to build/etc/python.d so that SofaPythom3 would add the location of the stlib3 package to the Python sys.path.
Now I am trying to understand API scene and object changes between the stlib and stlib3 Python modules. I’m stuck at the moment because of missing declarations for ODE solver and constraint modules.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.