A Python Package For Biomechanical Analysis
This is a collection of modules that are helpful for biomechanical analysis. The python package contains three modules.
- time_distance.py
implements gait event detection, cascade and swing ratio calculation - inverse-kinematics.py
Implements joint angle computations - inverse_dynamics.py
Implements joint force and moment computations
Python 3.7
NumPy
Pandas
Matplotlib
In order to be able to test the package, sample gait data is provided in /data
. It contains the 3D coordinates of markers and ground reaction force obtained from two force plates.
The markers should be in the following order:
- Neck
- Left ASIS
- Left lateral epicondyle of knee
- Left lateral malleolus
- Head of left 2th metatarsal
- Head of left 5th metatarsal
- Right ASIS
- Right lateral epicondyle of knee
- Right lateral malleolus
- Head of right 2th metatarsal
- Head of right 5th metatarsal
The force plate data should be in the following order:
- Center of pressure of left force plate
- Forces on the left force plate
- Moments on the left force plate
- Center of pressure of right force plate
- Forces on the right force plate
- Moments on the right force plate
This computation assumes the following coordinate system:
x is from right to left leg
y is from bottom to top
z is from back to front
When in the repository directory, run test.py
python test.py