This document provides instructions on installation of Qualisys CGM2 workflow using Project Automation Framework (PAF). For details about CGM2 please refer to https://pycgm2.github.io/ .
-
Install Python 2.7.16 (32 bit)
Note: If you use Anaconda, download and install the Python3 64bit version. For Anaconda you need to create a new environment that uses a 32bit python 2.7 using the following commands in Anaconda prompt:set CONDA_FORCE_32BIT=1
conda create -n pycgm2 python=2.7
conda activate pycgm2
Just remember to setCONDA_FORCE_32BIT=
(set empty) if you want to return to the root 64bit environment.
-
Set enviroment path to
C:\Python27
andC:\Python27\Scripts
:- Click the Windows "Start" icon, type "Environment" and select "Edit the system environment variables".
- Click "Environment variables"
- Select "Path" from System variables and click "Edit"
- Add
C:\Python27
andC:\Python27\Scripts
and click OK on all dialogs. Note: Skip step 2. when using Anaconda.
-
Install pyCGM2:
- Clone development branch of pyCGM2 repository.
- Open command prompt at the local folder where pyCGM2 is cloned to and type
python setup.py develop
.
-
Download Mokka:
- Unzip Mokka and add location of Mokka.exe to "Path" environment variable.
-
Clone the PAF project from this repository
Note: Test data are included in Data folder.
- Open QTM
- Open the CGM2 project created in step 5 above
- Go to Tools > Project options > Folder options and set the Python path to
C:\Python27\python.exe
- Navigate to subsession in the Project data tree
- On Details pane select desired CGM2 Model
- Click "Start processing"
This process will sucessively:
- Generate session.xml
- Export c3d files
- Detect static and dynamic trials according the attribute type of the session.xml node : measurement
- Detect events according Zeni's algorithm
- Automatically open Mokka for event verification
- Export plots as pdf pages (stored at subsession folder > processed)