Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Join members of the OpenSim Team on Wednesday July 26th for an introduction to OpenSim and new tools for rapidly developing musculoskeletal simulations.

...

  • Windows 10 or later (64-bit) or Mac (macOS 10. 11 or later)
  • Python via Anaconda
    • Python 3.8, 3.9, or 3.10
    • NumPy
    • Matplotlib
  • Matlab
    • Matlab 2016b or later (64-bit). Matlab 2018a or later is best.
  • A text editor (e.g., Notepad++)

...

  1. Download and install Anaconda.
  2. Open the Anaconda Prompt (or, Powershell on Windows, Terminal on Mac, etc).
  3. Before proceeding, you may need to initialize conda for shell interaction by running

    Code Block
    C:\> conda init <shell-name>

    where <shell-name> is one of the following: cmd.exe (Windows default), bash (macOS default), powershell, fish, zsh, tcsh, xonsh.

  4. Create a new conda environment with your Python version (e.g., 3.10). TODO update package list for OpenCap.

    Code Block
    C:\> conda create -n tgcs2023 python=3.10 numpy=1.21 matplotlib 


  5. Activate the conda environment.

    Code Block
    C:\> conda activate tgcs2023


4. OpenSim installation

OpenSim with Python (Windows only

...

)

  1. If paths to previous OpenSim versions exist on your PYTHONPATH environment variable, remove them and restart the shell.
  2. Install the OpenSim conda package. This installs a version of OpenSim including Moco that is compatible with Python 3.10 and NumPy 1.21. 

    Code Block
    C:\> conda install -c opensim_admin-org opensim-moco=4.4.1=py310np121


  3. Launch a Python interpreter from your conda environment.

    Code Block
    C:\> python


  4. Test the OpenSim configuration by checking the timestamp from running 

    Code Block
    >>> import opensim
    >>> opensim.GetVersionAndDate()

    in the Python interpreter; the date should be in June 2023.

OpenSim with Matlab (TODO update with 4.4.1 build)

  1. Download the OpenSim 4.4.1 software from SimTK.
    1. Go to the "Download Latest Releases" dropdown menu.
    2. Choose the option that matches your platform ending in win64.exe (Windows) or mac.pkg (macOS).Windows: 
    3. Mac: 
  2. Install OpenSim to a location of your choice; perhaps C:\OpenSim 4.4 (on Windows).
  3. If you use Windows, edit your PATH environment variable to include OpenSim’s bin directory (e.g., C:\OpenSim 4.4\bin). See here for instructions. Make sure to remove any previous OpenSim installations from your PATH.
  4. Run the OpenSim application to open the GUI. If the instructions below do not work, go the OpenSim executable in the bin folder and launch it from there.  
    1. Windows: open the Start menu and click OpenSim 4.4
    2. Mac: go to Applications and click OpenSim 4.4
  5. A prompt will appear to install the OpenSim resources to a location of your choice; perhaps C:\Users\<PROFILE_NAME_HERE>\Documents\OpenSim\4.4 (on Windows; replace <PROFILE_NAME_HERE> with your Windows profile name). We will refer to this directory as <RESOURCES_DIR> in the remaining instructions below.
  6. Configure OpenSim with Matlab by starting Matlab and running configureOpenSim.m, located at <RESOURCES_DIR>\Code\Matlab .

  7. After the script completes, restart Matlab and test the configuration by checking the timestamp from running 

    Code Block
    >> org.opensim.modeling.opensimCommon.GetVersionAndDate()

     in the Matlab command window; the date should be in July 2022. Test that the visualizer is working by running the following:

    Code Block
    >> cd 'C:\Users\<profile>\Documents\OpenSim\4.4\Code\Matlab\Moco'
    >> exampleSlidingMass

    You should see a visualizer window appear with a sliding mass animation. Hit ESC twice to close the window.

  8. Note for OpenSim 3.3 users: You cannot concurrently use OpenSim 3.3 and 4.4 in Matlab; to switch versions you must re-run configureOpenSim.m and edit your PATH environment variable.

...

Visit the Moco website here.


Slides

TODO


Publications

Uhlrich SD, Falisse A, Kidzinski L, Muccini J, Ko M, Chaudhari AS, Hicks JL, Delp SL (2022) OpenCap: 3D human movement dynamics from smartphone videos. bioRxiv. https://doi.org/10.1101/2022.07.07.499061

View file
name2022.07.07.499061v1.full.pdf
height250


Werling K, Bianco NA, Raitor M, Stingel J, Hicks JL, Collins SH, Delp SL, Liu CK (2023) AddBiomechanics: Automating model scaling, inverse kinematics, and inverse dynamics from human motion data through sequential optimization. bioRxiv. https://doi.org/10.1101/2023.06.15.545116

View file
name2023.06.15.545116v1.full.pdf
height250


Dembia CL, Bianco NA, Falisse A, Hicks JL, Delp SL (2020) OpenSim Moco: Musculoskeletal optimal control. PLoS Comput Biol 16(12): e1008493. https://doi.org/10.1371/journal.pcbi.1008493

View file
namejournal.pcbi.1008493 (2).pdf
height250

...