Skip to content

Processing workflow for CGM2 model using PAF for data management and pyCGM2 for data processing.

License

Notifications You must be signed in to change notification settings

sremm/qualisys_CGM2_workflow

 
 

Repository files navigation

Introduction

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/ .

Installation

  1. 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 set CONDA_FORCE_32BIT= (set empty) if you want to return to the root 64bit environment.
  2. Set enviroment path to C:\Python27 and C:\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 and C:\Python27\Scripts and click OK on all dialogs. Note: Skip step 2. when using Anaconda.
  3. 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.
  4. Download Mokka:

    • Unzip Mokka and add location of Mokka.exe to "Path" environment variable.
  5. Clone the PAF project from this repository
    Note: Test data are included in Data folder.

Running the workflow

  1. Open QTM
  2. Open the CGM2 project created in step 5 above
  3. Go to Tools > Project options > Folder options and set the Python path to C:\Python27\python.exe
  4. Navigate to subsession in the Project data tree
  5. On Details pane select desired CGM2 Model
  6. 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)

About

Processing workflow for CGM2 model using PAF for data management and pyCGM2 for data processing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%