Skip to content

v22.06.01

Latest
Compare
Choose a tag to compare
@EulalieCoevoet EulalieCoevoet released this 02 Feb 18:12
· 2 commits to main since this release
3f4da4c

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:

Instructions

Windows

Windows

To open a Terminal: Start > type "cmd" > press Enter

Install the dependencies

  1. Install Microsoft Visual C++ 2019 Redistributable.

  2. Install python + pip
    Open a Terminal and run python -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 run python -V again. You should see the version of python you just installed.

  3. Install numpy + scipy
    Open a Terminal and run python -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

  1. Install libopengl0
    sudo apt install libopengl0

  2. Install python + pip
    Open a Terminal and run python3 -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.

  3. Install numpy + scipy
    Open a Terminal and run

    python3 -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

  1. Install python + pip
    Open a Terminal and run python3 -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.

  2. Install numpy + scipy
    Open a Terminal and run

    python3 -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