SOFA v22.06 integrating several of the plugins made by Defrost for SoftRobotics.
This is a bundle of SOFA binaries specially intented for soft robotics.
The bundle contains:
- SOFA
- SofaPython3
- STLIB
- SoftRobots
- SoftRobots.Inverse (private repository)
- BeamAdapter
- Cosserat
- ModelOrderReduction
Instructions
Windows
Windows
To open a Terminal: Start > type "cmd" > press Enter
Install the dependencies
-
Install python + pip
Open a Terminal and runpython -V
If the command shows a version that is in [3.7 ; 3.10], 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
Install the SOFA bundle for soft robotics
Go to https://github.com/SofaDefrost/DefrostSofaBundle/releases/
Download the ZIP corresponding to your system your version of python.
Extract the ZIP on your Desktop.
Execute runSofa
Open a Terminal and run
cd %HOMEPATH%\Desktop\DefrostSofaBundle*
set PYTHONPATH=plugins\SofaPython3\lib\python3\site-packages
set PYTHONPATH=%PYTHONPATH%;plugins\STLIB\lib\python3\site-packages
bin\runSofa.exe
Ubuntu
Ubuntu
Install the dependencies
-
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
Install the SOFA bundle for soft robotics
Go to https://github.com/SofaDefrost/DefrostSofaBundle/releases/
Download the ZIP corresponding to your system your version of python.
Extract the ZIP on your Desktop.
Execute runSofa
Open a Terminal and run
cd ~/Desktop/DefrostSofaBundle*
export PYTHONPATH=plugins/SofaPython3/lib/python3/site-packages
export PYTHONPATH=$PYTHONPATH:plugins/STLIB/lib/python3/site-packages
./bin/runSofa
MacOS
MacOS
Install the dependencies
-
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
Install the SOFA bundle for soft robotics
Go to https://github.com/SofaDefrost/DefrostSofaBundle/releases/
Download the ZIP corresponding to your system your version of python.
Extract the ZIP in your User folder.
Execute runSofa
Open a Terminal and run
cd ~/DefrostSofaBundle*
export PYTHONPATH="plugins/SofaPython3/lib/python3/site-packages"
export PYTHONPATH=$PYTHONPATH:"plugins/STLIB/lib/python3/site-packages"
./bin/runSofa