OpenSim Moco
0.4.0
|
Update table column labels to use post-4.0 state paths instead of pre-4.0 state names.
For example, this converts column labels as follows:
pelvis_tilt
-> /jointset/ground_pelvis/pelvis_tilt/value
pelvis_tilt_u
-> /jointset/ground_pelvis/pelvis_tilt/speed
soleus.activation
-> /forceset/soleus/activation
soleus.fiber_length
-> /forceset/soleus/fiber_length
This can also be used to convert an Inverse Kinematics Tool solution MOT file to be used as a states file (with only coordinate values). If a column label does not identify a state in the model, the column label is not changed. Column labels must be unique. This operator is implemented using updateStateLabels40(). #include <Moco/Moco/Common/TableProcessor.h>
Public Member Functions | |
void | operate (TimeSeriesTable &table, const Model *model) const override |
This function may or may not be provided with a model. More... | |
|
inlineoverridevirtual |
This function may or may not be provided with a model.
If the operation requires a model and model == nullptr, an exception is thrown.
Implements OpenSim::TableOperator.