OpenSim Moco
0.1.0-preprint
Solve optimal control problems with OpenSim models
|
This guide shows the various ways of using Moco.
Moco provides easy-to-use tools for solving for muscle activity that can achieve an observed motion. See the following pages:
These tools derive from the MocoTool class.
If the MocoTools do not satisfy your needs, you can create and solve your own custom optimal control problem using the MocoStudy class.
Moco allows you to compose your cost from multiple existing cost terms. This gives you flexibility and means that you usually do not need to write your cost yourself, even if it has many terms. Moco's existing costs are ususally well-tested and work well with Moco's solvers, so we encourage you to use them if possible. In the case that you want to create your own custom cost term, you can derive from MocoGoal in C++.
If you do not want to write C++ code, you can prototype your cost in Matlab and we can help convert it to C++. See the Matlab example examplePrototypeCustomGoal.m for more information.
In the future, Moco could allow you to define custom cost terms in Python. If this is of interest to you, please let the Moco developers know (on GitHub).
Moco contains utilities for creating models, modifying models, working with data, and postprocessing results.
opensim
Python package).