Using the OpenSim API
The Developer's Guide has examples using the API, including:
Performing a Simulation/wiki/spaces/OpenSim/pages/53084294 - Write a main C++ program (a "tug of war") to create a model and run a forward simulation
Creating Your Own Analysis/wiki/spaces/OpenSim/pages/53084274 - Write your own Analysis to output the center of mass of each body in a model, plus velocities and accelerations
Creating a Controller - Extend the tug of war example with a custom controller
Creating an Optimization - Write an optimization to find muscle controls to maximize the forward velocity of the hand
Creating a Customized Actuator - Implement a spring with controllable stiffness
Creating a Customized Muscle Model - Implement a muscle model with fatigue
...
A summary of the steps to build the API examples is below. There are more details in the Developer's Guide. We will use the tug-of-war Example (Located in your OpenSimInstallationDirectory\sdk\APIExamples\ExampleMain folder) as an example.
...