...
To use the OpenSim classes directly, follow the code below. This code will give you OpenSim Times Series Tables for both markers and forces.
Expand |
---|
Code Block |
---|
%% Read C3D into memory
% Import OpenSim Library
import org.opensim.modeling.*
% Instantiate a C3DFileAdapter()
c3dAdapter = C3DFileAdapter();
% Read c3d data
data = c3dAdapter.read('walking2.c3d');
% Get a TimesSeriesTable with all the marker Data
markers = data.get('markers');
% Get a TimeSeriesTable with all the Force Data
forces = data.get('forces'); |
|
Reading Data through Python and C++
Some example code for using C3DFileAdapter through Python can be found below.
...