Join members of the OpenSim Team on Wednesday July 26th for an introduction to OpenSim and new tools for rapidly developing musculoskeletal simulations.
...
- Open the Anaconda Prompt.
Create a new conda environment for Python 3.10.
Code Block (base) C:\Users\me> conda create -n addbio-processing python=3.10 matplotlib
Activate the conda environment.
Code Block (base) C:\Users\me> conda activate addbio-processing
- If paths to previous OpenSim versions exist on your PYTHONPATH environment variable, remove them and restart the shell.
Install the OpenSim conda package. This installs a version of OpenSim including Moco that is compatible with Python 3.10 and includes NumPy 1.21.
Code Block (addbio-processing) C:\Users\me> conda install -c opensim_admin opensim-moco=4.4.1=py310np121
Launch a Python interpreter from your conda environment.
Code Block (addbio-processing) C:\Users\me> python
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 July 2023.
OpenSim with Matlab
- Go to the OpenSim 4.4.1 release page here.
- In the dropdown window under "Assets", select the distribution for your platform.
- Windows users: download opensim-core-4.4.1-win.zip.
- Mac users: download opensim-core-4.4.1-mac.zip.
- Install OpenSim to a location of your choice; perhaps C:\opensim-core-4.4.1 (on Windows).
- The next step is platform dependent:
- For Windows users, edit your PATH environment variable to include OpenSim’s bin directory (e.g., C:\opensim-core-4.4.1\bin). See here for instructions. Make sure to remove any previous OpenSim installations from your PATH.
For Mac users, authorize the OpenSim distribution by running the following command in the Terminal
Code Block $ xattr -r -d com.apple.quarantine <opensim_install_directory>
where <opensim_install_directory> is the directory where you unzipped the installation (e.g., /Applications/opensim-core-4.4.1/).
- Configure OpenSim with Matlab by starting Matlab and running configureOpenSim.m, located at C:\opensim-core-4.4.1\Resources\Code\Matlab.
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 2023.
Test that the visualizer is working by running the following:
Code Block >> cd 'C:\opensim-core-4.4.1\Resources\Code\Matlab\Moco' >> exampleSlidingMass
You should see a visualizer window appear with a sliding mass animation. Hit ESC twice to close the window.
- 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.
...
Slides
Coming soon!
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 name 2022.07.07.499061v1.full.pdf height 250
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 | ||||
---|---|---|---|---|
|
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 | ||||
---|---|---|---|---|
|
...