Code repository outlining basic concepts related to using inertial measurement units (IMUs) for human motion analysis.
Python users must setup an appropriate environment to run the IMU-Fundamentals notebook. This can be run in any IDE that supports Jupyter notebooks (such as Jupyter Notebook, JupyterLab, VS Code, etc.) after cloning the repository and changing your directory accordingly.
- Create environment:
conda env create -f environment.yml - Activate environment:
conda activate IMU_Funds - Open
IMU_Fundamentals.ipynband run all cells in order
Users can find the tutorial within IMU_Fundamentals.ipynb. All cells should be run in order. The table2zoo_data/ folder will be created automatically when you run the cells. All functions that are used throughout the tutorial can be inspected within their respective .py files within the utils/ folder.
IMU-Fundamentals/
├── IMU_Fundamentals.ipynb # Main tutorial notebook
├── environment.yml # Conda environment file
├── README.md # This file
└── utils/ # Utility functions
This notebook uses an external IMU visualization tool. Before running the visualization cells, you need to clone the imu-visualization repository:
git clone https://github.com/jlwry/imu-visualizationOnce cloned, update the visualizer_path variable in the visualization cell to point to the location where you cloned the repository. For example:
visualizer_path = '/path/to/your/imu-visualization'
visualize(data_path, visualizer_path)Make sure the path points to the directory containing the vis_3D_rot_scikit_V4.py file.
- Python 3.11+
- Conda (for environment management)
Joshua Lowery - MSc Biomechanics Student @ McGill Univeristy's MOTION Laboratory.
GPL-3.0 license