- Conda: [You can download and install Miniconda from here] (https://docs.anaconda.com/free/miniconda/)
- OpenSim 4.4: [You can find OpenSim 4.4 at this link] (https://simtk.org/frs/?group_id=91)
-
Create a Conda environment using the provided
environment.ymlfile:conda env create -f environment.yml
-
Activate the newly created environment:
conda activate opensim_scripting_bradley9may24
-
Install OpenSim within the environment:
conda install opensim-org::opensim
-
Install the
fastdtwpackage:pip install fastdtw
-
Navigate to the
opensim_scripting_bradley9may24environment. -
Run the
main.pyscript:python main.py
-
Select a Kinect TRC file and specify the start and end points of the signal. The processed angles will be plotted.
-
Select a Motion Monitor TRC file. Plots will display synced Kinect and Motion Monitor Euler angles for shoulder and elbow. The root mean square error (RMSE) between Euler angles will be displayed in the terminal.
-
The generated plots will be saved in the
chartsdirectory, and the motion data will be saved in/mots. Euler angles will also be saved intestmmdata.csvandtestkinectdata.csv.
-
Inside the
opensim_scripting_bradley9may24environment, navigate to theupsamplekinect_and_sync_quatsdirectory. -
Edit the Python file (line 4) to specify the quaternion CSV Euler angle file.
-
Run the upsample and sync scripts:
python upsamplekinect_and_sync_quats python sync_quats.py
-
Select two CSV files for synchronization. The RMSE will be displayed in the terminal.