Loads an OpenSim session and performs batch movement analysis using a TaskSchema for event detection and normalization.
Usage
batch_analyze_opensim(
session_dir,
schema,
signal_mapping = list(),
trials = NULL,
normalize_method = NULL,
...
)Arguments
- session_dir
Directory containing OpenSim output files, or an opensim_session/opensim_workflow object from signalIO
- schema
A TaskSchema object defining events and phases
- signal_mapping
Named list mapping schema signal names to actual channel names in the data
- trials
Character vector of trial names to analyze. If NULL, analyzes all.
- normalize_method
Override schema normalization method
- ...
Additional arguments passed to normalizeMovement
Value
A list containing:
trials: List of normalized trial data
events: List of detected events per trial
phases: List of phase timing per trial
summary: Summary statistics across trials
Details
Requires a native OpenSim installation (SystemRequirements: OpenSim)
and setup/model files, so the example cannot run offline and is not executed.
References
Delp SL, Anderson FC, Arnold AS, Loan P, Habib A, John CT, Guendelman E, Thelen DG (2007). "OpenSim: Open-Source Software to Create and Analyze Dynamic Simulations of Movement." IEEE Transactions on Biomedical Engineering, 54(11), 1940-1950.
See also
create_schema_from_opensim() for creating task schemas from
OpenSim models.