All Projects → opensim-org → opensim-moco

opensim-org / opensim-moco

Licence: Apache-2.0 license
Solve optimal control problems for musculoskeletal models using OpenSim and direct collocation.

Programming Languages

C++
36643 projects - #6 most used programming language
matlab
3953 projects
python
139335 projects - #7 most used programming language
CMake
9771 projects
c
50402 projects - #5 most used programming language
SWIG
194 projects

Projects that are alternatives of or similar to opensim-moco

Awesome Human Motion
🏃‍♀️ A curated list about human motion capture, analysis and synthesis.
Stars: ✭ 161 (+257.78%)
Mutual labels:  motion
Droidmotion
🏂 Implementation of a simple android motion
Stars: ✭ 200 (+344.44%)
Mutual labels:  motion
Anix
🐿 Super easy and lightweight(<3kb) JavaScript animation library
Stars: ✭ 239 (+431.11%)
Mutual labels:  motion
Motion Ai
AI assisted motion detection for Home Assistant
Stars: ✭ 169 (+275.56%)
Mutual labels:  motion
Opticalflow visualization
Python optical flow visualization following Baker et al. (ICCV 2007) as used by the MPI-Sintel challenge
Stars: ✭ 183 (+306.67%)
Mutual labels:  motion
Pikrellcam
Raspberry Pi motion vector detection program with OSD web interface.
Stars: ✭ 211 (+368.89%)
Mutual labels:  motion
Scenejs
🎬 Scene.js is JavaScript & CSS timeline-based animation library
Stars: ✭ 2,019 (+4386.67%)
Mutual labels:  motion
gaitutils
Extract and visualize gait data
Stars: ✭ 28 (-37.78%)
Mutual labels:  biomechanics
Vim Sneak
The missing motion for Vim 👟
Stars: ✭ 2,467 (+5382.22%)
Mutual labels:  motion
Motion Shapeofview
Explain how to use MotionLayout with ShapeOfView
Stars: ✭ 236 (+424.44%)
Mutual labels:  motion
Watch Test
⌚运动演示-支持H5,Android,微信小程序
Stars: ✭ 171 (+280%)
Mutual labels:  motion
Amass
Data preparation and loader for AMASS
Stars: ✭ 180 (+300%)
Mutual labels:  motion
Mathutilities
A collection of some of the neat math and physics tricks that I've collected over the last few years.
Stars: ✭ 2,815 (+6155.56%)
Mutual labels:  motion
Ui Motion
How to apply meaningful and delightful motion in a sample Android app
Stars: ✭ 165 (+266.67%)
Mutual labels:  motion
Human body prior
VPoser: Variational Human Pose Prior
Stars: ✭ 244 (+442.22%)
Mutual labels:  motion
Yapanimator
Your fast and friendly physics-based animation system.
Stars: ✭ 1,928 (+4184.44%)
Mutual labels:  motion
Raspberrypi Facedetection Mtcnn Caffe With Motion
MTCNN with Motion Detection, on Raspberry Pi with Love
Stars: ✭ 204 (+353.33%)
Mutual labels:  motion
Juicer
Juicer is a generic animation / motion library for macOS & iOS & tvOS written in Swift
Stars: ✭ 13 (-71.11%)
Mutual labels:  motion
use-spring
Hooke's law hook
Stars: ✭ 53 (+17.78%)
Mutual labels:  motion
Shiny
Shiny uses your gyroscope to simulate lighting and motion effects on colors. Works on almost every SwiftUI View.
Stars: ✭ 226 (+402.22%)
Mutual labels:  motion

OpenSim Moco

Build Status with GitHub Actions Appveyor Travis

OpenSim Moco is a toolkit for solving optimal control problems involving musculoskeletal systems using the direct collocation method. Moco solves the following broad categories of problems:

  1. Solve for the muscle activity that produces an observed motion.
  2. Solve for the muscle activity that approximately tracks an observed motion.
  3. Solve for a new motion that optimizes user-defined costs.
  4. Solve for muscle properties that yield a good match between simulated and measured muscle activity.

Building Moco

Moco depends on the following software:

  1. OpenSim: Platform for simulating musculoskeletal systems.
    1. Simbody: Multibody dynamics.
  2. CasADi: Algorithmic differentiation and interface to nonlinear solvers.
  3. Tropter: C++ library for solving general optimal control problems with direct collocation. Currently, Tropter's source code is part of Moco.
    1. Eigen: C++ matrix library.
    2. ColPack: Used to efficiently compute derivatives.
    3. ADOL-C: Automatic differentiation.
  4. Ipopt: Nonlinear program solver.

Build the dependencies by building the CMake project in the dependencies folder.

Windows

On Windows, you can run the build_on_windows.ps1 PowerShell script to obtain Moco's dependencies and to build Moco. This script assumes you have installed Microsoft Visual Studio 2019 (with C++ support) and CMake 3.2 or greater. You can alternatively use Microsoft Visual Studio 2015 or Microsoft Visual Studio 2017.

Mac

Install the following:

  • gfortran
  • pkgconfig
  • autoreconf
  • aclocal
  • glibtoolize
  • wget
  • cmake
  • doxygen (optional)

You can install these with Homebrew:

brew install cmake pkgconfig gcc autoconf libtool automake wget doxygen

Nagivate to the directory where you placed the opensim-moco source code.

ex: cd ~/opensim-moco

Run build_on_mac from the terminal.

ex ./build_on_mac.sh

Ubuntu

sudo apt install git wget build-essential libtool autoconf cmake pkg-config gfortran liblapack-dev

Use the CMake project in the dependencies directory to install remaining dependencies.

Design goals

  1. Allow biomechanists to solve certain classes of optimal control problems with ease and without writing any code.

    1. Solving for muscle activity from a known motion should be faster than using OpenSim Computed Muscle Control.

    2. Users should be able to solve for mass properties that minimize residual forces.

    3. Advanced users can construct optimal control problems programmatically in C++.

  2. Advanced users can create plugins to create custom cost terms and constraints.

  3. Allow biomechanists to customize an optimal control problem.

    1. Choose an objective functional (sum of squared muscle activation, metabolic cost, joint loads, coordinate tracking, marker tracking).

    2. Choose constraints (activation within range of electromyography).

  4. The software and its source code are made freely available in a way that allows for commercial use (permissive licensing).

  5. Users do not need to manually specify derivatives (gradient, Jacobian, Hessian) for their optimal control problems.

  6. For advanced users, there should be utilities to easily debug issues with problem formulation (which variables are hitting their constraints?) and to improve performance (visualize sparsity pattern).

  7. The software should fully exploit all cores available on a user's computer, but should provide the option to only use 1 thread (if the user is solving multiple problems in parallel).

  8. Users can construct a Moco problem in MATLAB and Python.

  9. The software is easy to build from source.

  10. The software runs on Windows, macOS, and Linux (Ubuntu).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].