Skip to content

Commit 35f39ab

Browse files
Clarify simulation parameters and output file names
Updated README to clarify simulation parameters and output file details.
1 parent a8a3634 commit 35f39ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Then, in a separate anaconda terminal, cd into the parent directory of the Data
4444
In a new python file in the same folder as the Data folder, enter:
4545
```
4646
from mousearm.simulate import run_simulation
47-
run_simulation("Data", nReachSets=2)
47+
run_simulation("Data", nReachSets=2) # Adjust nReachSets accordingly
4848
```
4949
Then, run it using `python run ` from the parent directory of the Data folder.
5050

@@ -67,26 +67,26 @@ RawData/
6767

6868
The important output files are muscle_solution and the muscle_kinematics:
6969
* muscle_solution shows the solution that the model found for the movement. These can be visualized in OpenSim to observe the movement and predicted muscle actuations.
70-
* muscle_kinematics shows the difference between the real movement and the movement predicted by the model
70+
* muscle_kinematics shows the difference between the captured movement and the movement predicted by the model
7171

7272
These files can both be imported into a pandas dataframe for further analysis with the below python code. The directory should be structured like this:
7373
```
7474
RawData/
7575
└── reachsets/
7676
├── reachset_1/
77-
│ ├── muscle_sol*
78-
│ └── muscle_kinematics_*
77+
│ ├── muscle_solution_adjusted_kinematics_1.sto
78+
│ └── muscle_kinematics_adjusted_kinematics_1.csv
7979
├── reachset_2/
80-
│ ├── muscle_sol*
81-
│ └── muscle_kinematics_*
80+
│ ├── muscle_solution_adjusted_kinematics_1.sto
81+
│ └── muscle_kinematics_adjusted_kinematics_1.csv
8282
└── ...
8383
```
8484
```
8585
import pandas as pd
8686
import glob
8787
import numpy as np
88-
base_dir = "../../RawData/reachsets/"
89-
save_dir = "../../Data/"
88+
base_dir = "../../RawData/reachsets/" # Adjust this path to yours
89+
save_dir = "../../Data/" # Adjust this path to yours
9090
mcolnames = ["time", "/jointset/shoulder/elv_angle/value", "/jointset/shoulder/extension_angle/value", "/jointset/shoulder/rotation_angle/value", "/jointset/humerus_ulna/elbow_flex/value", "/jointset/ulna_radius_pj/radius_rot/value", "/jointset/wrist/wrist_angle/value", "/jointset/shoulder/elv_angle/speed", "/jointset/shoulder/extension_angle/speed", "/jointset/shoulder/rotation_angle/speed", "/jointset/humerus_ulna/elbow_flex/speed", "/jointset/ulna_radius_pj/radius_rot/speed", "/jointset/wrist/wrist_angle/speed", "/forceset/Pectoralis_Clavicle_Head/activation", "/forceset/Biceps_Short_Head/activation", "/forceset/Biceps_Long_Head/activation", "/forceset/Deltoid_Medial/activation", "/forceset/Triceps_Lat_Head/activation", "/forceset/Triceps_Long_Head/activation", "/forceset/Brachialis_Proximal_Head/activation", "/forceset/Brachialis_Distal_Head/activation", "/forceset/Anconeus/activation", "/forceset/Deltoid_Posterior/activation", "/forceset/Anconeus_Short_Head/activation", "/forceset/Subscapularis_SuperiorHead/activation", "/forceset/Infraspinatus/activation", "/forceset/PronatorTeres/activation", "/forceset/FlexorCarpiRadialis/activation", "/forceset/Brachioradialis/activation", "/forceset/Triceps_Medial_Head/activation", "/forceset/Latissimus_Dorsi_Rostral/activation", "/forceset/Latissimus_Dorsi_Caudal/activation", "/forceset/Pectoralis_Major_Anterior/activation", "/forceset/Pectoralis_Major_Posterior/activation", "/forceset/Pectoralis_Clavicle_Head", "/forceset/Biceps_Short_Head", "/forceset/Biceps_Long_Head", "/forceset/Deltoid_Medial", "/forceset/Triceps_Lat_Head", "/forceset/Triceps_Long_Head", "/forceset/Brachialis_Proximal_Head", "/forceset/Brachialis_Distal_Head", "/forceset/Anconeus", "/forceset/Deltoid_Posterior", "/forceset/Anconeus_Short_Head", "/forceset/Subscapularis_SuperiorHead", "/forceset/Infraspinatus", "/forceset/PronatorTeres", "/forceset/FlexorCarpiRadialis", "/forceset/Brachioradialis", "/forceset/Triceps_Medial_Head", "/forceset/Latissimus_Dorsi_Rostral", "/forceset/Latissimus_Dorsi_Caudal", "/forceset/Pectoralis_Major_Anterior", "/forceset/Pectoralis_Major_Posterior"]
9191
kcolnames = ["time","paw_x","paw_y","paw_z","elbow_x","elbow_y","elbow_z"]
9292

0 commit comments

Comments
 (0)