Skip to content

Repository files navigation

OpenSim Fitter

A Python library for fitting OpenSim model geometry and kinematics to motion capture and video-based data sources.

Create the Python environment

conda create -n opensim_fitter python=3.13
conda activate opensim_fitter
pip install -r dependencies/requirements.txt

OpenSim installation

For now, OpenSim Fitter requires installing a custom branch of OpenSim that disables the installation of the CasADi dependency that would conflict with the CasADi installed in the Python package we just created.

Dependencies

Install the following dependencies with your favorite package manager on your platform (Homebrew, apt-get, etc.):

  • cmake
  • autoconf
  • automake
  • pkg-config
  • libtool
  • openblas
  • lapack
  • freeglut
  • doxygen
  • pcre
  • pcre2
  • openssl
  • gcc

Consult the OpenSim build scripts for platform-specific package installation commands.

Create the config.yaml file

Create a file named config.yaml in the root directory of the repository with the field python_root_dir, which is a full path to a Python installation directory, e.g.,

python_root_dir: '/Users/nbianco/miniconda3/envs/opensim_dev'

Note: make sure that the Python version in python_root_dir matches the Python version in your installation environment.

Build OpenSim

Run the following command from the root directory to build OpenSim and install it into your conda environment.

python dependencies/install_opensim.py

Install OpenSim Fitter

To install the OpenSim Fitter Python package,

pip install .

Or, if you're a developer, install in "editable" mode,

pip install -e .

About

A Python library for fitting OpenSim model geometry and kinematics to motion capture and video-based data sources.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages