This is a bundle of SOFA binaries specially intented for soft robotics.
The usage is limited to academia: research and teaching.
The bundle contains:
- SOFA
- SofaPython3
- STLIB
- SoftRobots
- SoftRobots.Inverse (private repository)
- BeamAdapter
- Cosserat
- ModelOrderReduction
To open a Terminal: Start > type "cmd" > press Enter
-
Install python + pip
Open a Terminal and runpython -V
If the command shows a version that is in [3.7 ; 3.9], skip to step 3.
Else, install one of these compatible versions:Make sure to enable pip installation and addition to PATH.
Open a Terminal and runpython -V
again. You should see the version of python you just installed. -
Install numpy + Scipy
Open a Terminal and runpython -m pip install numpy scipy
Go to https://github.com/SofaDefrost/DefrostSofaBundle/releases/
Download the ZIP corresponding to your system and the version of python you just installed.
Extract the ZIP on your Desktop.
Open a Terminal and run
cd %HOMEPATH%\Desktop\SOFA_BUNDLE_*
set PYTHONPATH=plugins\SofaPython3\lib\python3\site-packages
set PYTHONPATH=%PYTHONPATH%;plugins\STLIB\lib\python3\site-packages
bin\runSofa.exe
-
Install libopengl0
sudo apt install libopengl0
-
Install python + pip
Open a Terminal and runpython3 -V
If the command shows a version that is in [3.7 ; 3.10], skip to step 3.
Else, search which compatible version is proposed by your package manager:sudo apt update sudo apt info python3 | grep -i 'version: '
If the proposed version is in [3.7 ; 3.10] then install it
sudo apt install python3-dev python3-distutils curl -L https://bootstrap.pypa.io/pip/get-pip.py --output /tmp/get-pip3.py python3 /tmp/get-pip3.py
Open a Terminal and run
python3 -V
again. You should see the version of python you just installed. -
Install numpy + scipy
Open a Terminal and runpython3 -m pip install --upgrade pip python3 -m pip install numpy scipy
Go to https://github.com/SofaDefrost/DefrostSofaBundle/releases/
Download the ZIP corresponding to your system and the version of python you just installed.
Extract the ZIP on your Desktop.
Open a Terminal and run
cd ~/Desktop/SOFA_BUNDLE_*
export PYTHONPATH=plugins/SofaPython3/lib/python3/site-packages
export PYTHONPATH=$PYTHONPATH:plugins/STLIB/lib/python3/site-packages
./bin/runSofa
-
Install python + pip
Open a Terminal and runpython3 -V
If the command shows a version that is in [3.7 ; 3.10], skip to step 2.
Else, search which compatible version is proposed by your package manager:brew update brew info python
If the proposed version is in [3.7 ; 3.10] then install it
brew install python
Open a Terminal and run
python3 -V
again. You should see the version of python you just installed. -
Install numpy + scipy
Open a Terminal and runpython3 -m pip install --upgrade pip python3 -m pip install numpy scipy
Go to https://github.com/SofaDefrost/DefrostSofaBundle/releases/
Download the ZIP corresponding to your system and the version of python you just installed.
Extract the ZIP in your User folder.
Open a Terminal and run
cd ~/SOFA_BUNDLE_*
export PYTHONPATH="plugins/SofaPython3/lib/python3/site-packages"
export PYTHONPATH=$PYTHONPATH:"plugins/STLIB/lib/python3/site-packages"
./bin/runSofa