Skip to content

MengLinMaker/Hip-Motion-Player

Repository files navigation

Hip Motion Player - Demo

Purpose

Diagnose fall injuries and prevent falls using 3D visualisation. Data scientists can collect labelled data to train better fall detection algorithms.

GitHub

Playing motion capture data from Hip-Motion-Capture. The captured motion data is sampled at 50Hz. Each timestamp is represented by a row in the CSV file and displayed in the following format:

Waist IMU data - Column A to J

  • Gyro (rad/s): x, y, z - Column A to C
  • Acceleration (m/s^2): x, y, z - Column D to F
  • Quaternion: w, x, y, z - Column G to J

Right thigh IMU data - Column K to T

  • Gyro, Acceleration, Quaternion ... similar layout as above

Right thigh IMU data - Column U to AD

  • Gyro, Acc, Quat ... similar layout as above
 
 
 

How to use

  1. Download the sample data from 'Raw Motion Data' folder.
  2. Drag a CSV file onto the 3D model in the demo website.
  3. Press the pause/play button or drag the input slider.

Have fun!

 
 
 

Integrating into other projects

  1. Install dependencies in project root directory with npm i localforage three fili
  2. Download the src/visualiser folder.
  3. In your project, create a div element: <div id='visualiserID'/>
  4. At the start of a JavaScript file import setupMotionVisualiser from './visualiser/visualiser.js' tailored to your respective folder layout.
  5. Evoke the function: setupMotionVisualiser(document.querySelector('#visualiserID'), data, sampleRate)
  6. Input data should be formated as n by 30 array. Here is an example data.

Note: By default data=null and sampleRate=50. You can drag and drop CSV files