To download this example project to your computer, you can either:
- Click here to download it as a zip file.
— or — - Clone this repository to your computer.
A video tutorial is available in the repository, providing an overview of how to use the PAF – OpenSim example.
Note: QTM 2025.1 Update 1 introduces new export features for TRC (marker data) and STO (force data) files. Exports can now be performed directly within QTM and through any PAF modules. OpenSim models with Sport, CAST, and IOR marker sets are available in this repository at:
paf-opensim-example-main\Templates\OpenSim
- Install QTM 2025.1 Update 1 or later from Qualisys website
The PAF OpenSim example uses native QTM export functionality:
- Start QTM and open the project 'PAF OpenSim Example'
- Create or navigate to data:
- Use the Project view (Ctrl+R) to create a person and session , or
- Navigate to existing example files
- Capture or import .qtm files, or use demo files
- Filter marker data (recommended before export):
- Open each measurement
- Select all trajectories in the Labelled Trajectories list
- Right-click and select Smooth trajectory (Butterworth)
- To change filter frequency: Open Trajectory Editor → Modify Cutoff Frequency → Apply filter
- Generate export files:
- At session level: Start Processing → Generate .trc and .sto
- This generates TRC and STO files for all QTM files in the session
- Locate exported files:
- Right-click session folder in QTM Project view
- Select "Open folder in explorer"
- Find .trc and .sto files
- Open a qtm trial then go to File → Export → To TRC… or To STO…
- In QTM: File → Batch Process…
- Navigate to folder with QTM files
- Select multiple files using Ctrl + click → Open
- Configure settings:
- ✓ Enable: Export to TRC file and Export to STO file
- ✗ Disable: Auto-backup files before processing, Pre-process 2D data, Gap-fill the gaps, Track the measurements
- Press OK
- Files are exported to same folder as QTM trials
Note: For detailed instructions or to use a different model, please refer to the OpenSim documentation.
- Start OpenSim 4.5
- Load OpenSim model:
- Model location for different marker sets:
paf-opensim-example-main\Templates\OpenSim
- File → Open Model → Navigate to
gait2392_simbody_....osim
- Model location for different marker sets:
- Tools → Scale Model
- Click folder icon next to "Adjust Model Markers"
- Navigate to your Static TRC file → Open
- Click Run
- Verify: Navigator tab shows new model with
...-scaled
suffix
Tip: Check OpenSim documentation for additional scaling settings and marker fixation options to improve results.
- Tools → Inverse Kinematics
- Click folder icon next to highlighted field
- Navigate to your motion .trc file → Open
- Click Run
- Verify:
- Skeleton moves in 3D viewer during processing
- Navigator tab shows IKResults
- Tools → Inverse Dynamics → External Loads tab
- Enable External Loads checkbox
- Click note icon with pen
- Select your STO trial file
- Click Add
- Configure force parameters:
- Force Name:
Right
- Applied to:
calcn_r
- Force Name:
- Set Force Columns (assuming right leg on force plate 1, check in QTM for that trial):
- Column 1:
1_ground_force_vx
- Column 2:
1_ground_force_vy
- Column 3:
1_ground_force_vz
- Column 1:
- Set Point Columns:
- Column 1:
1_ground_force_px
- Column 2:
1_ground_force_py
- Column 3:
1_ground_force_pz
- Column 1:
- Enable Applied Torque and set:
- Column 1:
1_ground_torque_x
- Column 2:
1_ground_torque_y
- Column 3:
1_ground_torque_z
- Column 1:
- Repeat steps above using
2_ground...
prefixes - Applied to:
calcn_l
Important: Force plate numbers vary based on which plate each foot strikes. Verify in your QTM trial.
- Click Save to save force configuration for the future use
- Note the Output directory in Main Settings tab where you inverse dynamics results will be save as
inverse_dynamics.sto
- Click Run
- Tools → Plot
- Y-Quantity → Load File → Select
inverse_dynamics.sto
- Select desired signals (for example ankle_angle_r_moment) → OK
- X-Quantity → Select Time
- In Curves List: Select figure → Add
EMG analysis can be integrated with OpenSim. Reference example: EMG-informed Computed Muscle Control for Dynamic Simulations of Movement.
The Project Automation Framework (PAF) streamlines the motion capture process from data collection to final report. This repository demonstrates how PAF implements custom automated data collection in Qualisys Track Manager (QTM) and connects QTM to processing engines.
Full documentation for PAF development: PAF Documentation
Official examples for various processing engines:
- AnyBody
- Cleanse
- Excel
- Matlab
- OpenSim
- Python
- Theia Markerless
- Theia Markerless Comparison
- Theia Markerless True Hybrid
- Visual3D
License Note: As of QTM version 2.17, official Qualisys PAF examples can be used without additional license. Advanced analysis types require "PAF Framework Developer kit" license (Article number 150300).