|
a |
|
b/docs/_docs/nips2018/observation.md |
|
|
1 |
--- |
|
|
2 |
title: Observation dictionary |
|
|
3 |
--- |
|
|
4 |
|
|
|
5 |
The observation at each step is a dictionary with following keys: |
|
|
6 |
|
|
|
7 |
| ---:| --- | |
|
|
8 |
| **body_pos** | Positions of body parts along (X,Y,Z) | |
|
|
9 |
| **body_pos_rot** | Rotations of body parts along (X,Y,Z) | |
|
|
10 |
| **body_vel** | Velocities of body parts along (X,Y,Z) | |
|
|
11 |
| **body_vel_rot** | Rotational velocities of body parts along (X,Y,Z) | |
|
|
12 |
| **body_acc** | Accelerations of body parts along (X,Y,Z) | |
|
|
13 |
| **body_acc_rot** | Rotational accelerations of body parts along (X,Y,Z) | |
|
|
14 |
| **joint_pos** | Positions of joints | |
|
|
15 |
| **joint_vel** | Velocities of joints | |
|
|
16 |
| **joint_acc** | Accelerations of joints | |
|
|
17 |
| **muscles** | Forces acting on body parts | |
|
|
18 |
| **forces** | Forces acting on body parts | |
|
|
19 |
| **misc** | Forces acting on body parts | |
|
|
20 |
| **markers** | Empty for this model | |
|
|
21 |
|
|
|
22 |
Each element is a dictionary. |
|
|
23 |
|
|
|
24 |
### Body parts |
|
|
25 |
|
|
|
26 |
The model has following bodies |
|
|
27 |
|
|
|
28 |
| ---:| --- | |
|
|
29 |
| **calcn_l** | Left calcaneus | |
|
|
30 |
| **talus_l** | Left talus | |
|
|
31 |
| **tibia_l** | Left tibia | |
|
|
32 |
| **toes_l** | Left toes | |
|
|
33 |
| **femur_l** | Left femur | |
|
|
34 |
| **femur_r** | Right femur | |
|
|
35 |
| **head** | Head | |
|
|
36 |
| **pelvis** | Pelvis | |
|
|
37 |
| **torso** | Torso | |
|
|
38 |
| **pros_foot_r** | Prosthetic foot | |
|
|
39 |
| **pros_tibia_r** | Prosthetic tibia | |
|
|
40 |
|
|
|
41 |
Each element is a vector. Elements corresponding to each transational position, velocity, and acceleration is order as `[x,y,z]`. Rotational position, velocity, and acceleration vectors correspond to rotations along X, Y, and Z. |
|
|
42 |
|
|
|
43 |
### Joints |
|
|
44 |
|
|
|
45 |
The model has following joints |
|
|
46 |
|
|
|
47 |
| *name* | *length* | *description* | |
|
|
48 |
| **ankle_l** | 1 | Left ankle flexion | |
|
|
49 |
| **ankle_r** | 1 | Right ankle flexion | |
|
|
50 |
| **back** | 1 | Back flexion | |
|
|
51 |
| **ground_pelvis** | 6 | translation (x,y,z) and rotation along x, y, and z | |
|
|
52 |
| **hip_l** | 3 | Hip flexion, abduction, and rotation | |
|
|
53 |
| **hip_r** | 3 | Hip flexion, abduction, and rotation | |
|
|
54 |
| **knee_l** | 1 | Left knee flexion | |
|
|
55 |
| **knee_r** | 1 | Right knee flexion | |
|
|
56 |
|
|
|
57 |
Extra joints `back_0`, `mtp_l`, `subtalar_l` appear in the dictionary for consistency but they cannot move. |
|
|
58 |
|
|
|
59 |
### Muscles |
|
|
60 |
|
|
|
61 |
| *name* | *description* | *primary function(s)* | |
|
|
62 |
| **abd_l** | Hip abductors (left) | Hip abduction (away from body's vertical midline) | |
|
|
63 |
| **abd_r** | Hip abductors (right) | Hip abduction (away from body's vertical midline) | |
|
|
64 |
| **add_l** | Hip adductors (left) | Hip adduction (toward body's vertical midline) | |
|
|
65 |
| **add_r** | Hip adductors (right) | Hip adduction (toward body's vertical midline) | |
|
|
66 |
| **bifemsh_l** | Short head of the biceps femoris (left) | Knee flexion | |
|
|
67 |
| **bifemsh_r** | Short head of the biceps femoris (right) | Knee flexion | |
|
|
68 |
| **gastroc_l** | Gastrocnemius (left) | Knee flexion and ankle extension (plantarflexion) | |
|
|
69 |
| **glut_max_l** | Gluteus maximus (left) | Hip extension | |
|
|
70 |
| **glut_max_r** | Gluteus maximums (left) | Hip extension | |
|
|
71 |
| **hamstrings_l** | Biarticular hamstrings (left) | Hip extension and knee flexion | |
|
|
72 |
| **hamstrings_r** | Biarticular hamstrings (right) | Hip extension and knee flexion | |
|
|
73 |
| **iliopsoas_l** | iliopsoas (left) | Hip flexion | |
|
|
74 |
| **iliopsoas_r** | iliopsoas (right) | Hip flexion | |
|
|
75 |
| **rect_fem_l** | rectus femoris (left) | Hip flexion and knee extension | |
|
|
76 |
| **rect_fem_r** | rectus femoris (right) | Hip flexion and knee extension | |
|
|
77 |
| **soleus_l** | soleus (left) | Ankle extension (plantarflexion) | |
|
|
78 |
| **tib_ant_l** | tibialis anterior (left) | Ankle flexion (dorsiflexion) | |
|
|
79 |
| **vasti_l** | vasti (left) | Knee extension |
|
|
80 |
| **vasti_r** | vasti (right) | Knee extension |
|
|
81 |
|
|
|
82 |
Each muscle element is a dictionary with 4 elements |
|
|
83 |
|
|
|
84 |
| ---:| --- | |
|
|
85 |
| **activation** | Current activation | |
|
|
86 |
| **fiber_force** | Current fiber force | |
|
|
87 |
| **fiber_length** | Current fiber length | |
|
|
88 |
| **fiber_velocity** | Current fiber velocity | |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
### Forces |
|
|
92 |
|
|
|
93 |
| ---:| --- | |
|
|
94 |
| **AnkleLimit_l** | Ankle ligament forces (left) | |
|
|
95 |
| **AnkleLimit_r** | Ankle ligament forces (right) | |
|
|
96 |
| **HipAddLimit_l** | Hip adduction/abduction ligament forces (left) | |
|
|
97 |
| **HipAddLimit_r** | Hip adduction/abduction ligament forces (right) | |
|
|
98 |
| **HipLimit_l** | Hip flexion/extension ligament forces (left) | |
|
|
99 |
| **HipLimit_r** | Hip flexion/extension ligament forces (right) | |
|
|
100 |
| **KneeLimit_l** | Knee flexion/extension ligament forces (left) | |
|
|
101 |
| **KneeLimit_r** | Knee flexion/extension ligament forces (right) | |
|
|
102 |
| **foot_l** | Ground reaction forces on the left foot. 6 values correspond to the 3 components (x,y,z) of the force and torque applied to the `foot_l` body. | |
|
|
103 |
| **pros_foot_r_0** | Ground reaction forces on the prosthetic foot 6 values correspond to the 3 components (x,y,z) of the force and torque applied to the `pros_foot_r` body. | |
|
|
104 |
|
|
|
105 |
For the difference between muscle forces in this item and `fiber_force` in muscles please refer to [Issue #163](https://github.com/stanfordnmbl/osim-rl/issues/163) |
|
|
106 |
|
|
|
107 |
### Misc |
|
|
108 |
|
|
|
109 |
| ---:| --- | |
|
|
110 |
| **mass_center_pos** | Position of the center of mass `[x,y,z]` | |
|
|
111 |
| **mass_center_vel** | Translational velocity of the center of mass `[x,y,z]` | |
|
|
112 |
| **mass_center_acc** | Translational acceleration of the center of mass `[x,y,z]` | |