Skip to content

Latest commit

 

History

History
164 lines (154 loc) · 4.61 KB

state_structure.md

File metadata and controls

164 lines (154 loc) · 4.61 KB

Elements in state list used for communication

Elements in the state list ([index] = [description])

Coordinates (x,y,z) are floats (decimals separated with a dot).

0	=	 plr0 head x,y,z
3	=	 plr0 breast x,y,z
6	=	 plr0 chest x,y,z
9	=	 plr0 stomach x,y,z
12	=	 plr0 groin x,y,z
15	=	 plr0 r_pecs x,y,z
18	=	 plr0 r_biceps x,y,z
21	=	 plr0 r_triceps x,y,z
24	=	 plr0 l_pecs x,y,z
27	=	 plr0 l_biceps x,y,z
30	=	 plr0 l_triceps x,y,z
33	=	 plr0 r_hand x,y,z
36	=	 plr0 l_hand x,y,z
39	=	 plr0 r_butt x,y,z
42	=	 plr0 l_butt x,y,z
45	=	 plr0 r_thigh x,y,z
48	=	 plr0 l_thigh x,y,z
51	=	 plr0 l_leg x,y,z
54	=	 plr0 r_leg x,y,z
57	=	 plr0 r_foot x,y,z
60	=	 plr0 l_foot x,y,z
63	=	 plr0 head x,y,z velocity
66	=	 plr0 breast x,y,z velocity
69	=	 plr0 chest x,y,z velocity
72	=	 plr0 stomach x,y,z velocity
75	=	 plr0 groin x,y,z velocity
78	=	 plr0 r_pecs x,y,z velocity
81	=	 plr0 r_biceps x,y,z velocity
84	=	 plr0 r_triceps x,y,z velocity
87	=	 plr0 l_pecs x,y,z velocity
90	=	 plr0 l_biceps x,y,z velocity
93	=	 plr0 l_triceps x,y,z velocity
96	=	 plr0 r_hand x,y,z velocity
99	=	 plr0 l_hand x,y,z velocity
102	=	 plr0 r_butt x,y,z velocity
105	=	 plr0 l_butt x,y,z velocity
108	=	 plr0 r_thigh x,y,z velocity
111	=	 plr0 l_thigh x,y,z velocity
114	=	 plr0 l_leg x,y,z velocity 
117	=	 plr0 r_leg x,y,z velocity
120	=	 plr0 r_foot x,y,z velocity
123	=	 plr0 l_foot x,y,z velocity
126	=	 plr0 groin rotation (4x4 matrix, row-by-row)
142	=	 plr0 neck state
143	=	 plr0 chest state
144	=	 plr0 lumbar state
145	=	 plr0 abs state
146	=	 plr0 right pec state
147	=	 plr0 right shoulder state
148	=	 plr0 right elbow state
149	=	 plr0 left pec state
150	=	 plr0 left shoulder state
151	=	 plr0 left elbow state
152	=	 plr0 right wrist state
153	=	 plr0 left wrist state
154	=	 plr0 right glute state
155	=	 plr0 left glute state
156	=	 plr0 right hip state
157	=	 plr0 left hip state
158	=	 plr0 right knee state
159	=	 plr0 left knee state
160	=	 plr0 right ankle state
161	=	 plr0 left ankle state
162	=	 plr0 grip left hand state
163	=	 plr0 grip right hand state
164	=	 plr0 injury

165	=	 plr1 head x,y,z
168	=	 plr1 breast x,y,z
171	=	 plr1 chest x,y,z
174	=	 plr1 stomach x,y,z
177	=	 plr1 groin x,y,z
180	=	 plr1 r_pecs x,y,z
183	=	 plr1 r_biceps x,y,z
186	=	 plr1 r_triceps x,y,z
189	=	 plr1 l_pecs x,y,z
192	=	 plr1 l_biceps x,y,z
195	=	 plr1 l_triceps x,y,z
198	=	 plr1 r_hand x,y,z
201	=	 plr1 l_hand x,y,z
204	=	 plr1 r_butt x,y,z
207	=	 plr1 l_butt x,y,z
210	=	 plr1 r_thigh x,y,z
213	=	 plr1 l_thigh x,y,z
216	=	 plr1 l_leg x,y,z
219	=	 plr1 r_leg x,y,z
222	=	 plr1 r_foot x,y,z
225	=	 plr1 l_foot x,y,z
228	=	 plr1 head x,y,z velocity
231	=	 plr1 breast x,y,z velocity
234	=	 plr1 chest x,y,z velocity
237	=	 plr1 stomach x,y,z velocity
240	=	 plr1 groin x,y,z velocity
243	=	 plr1 r_pecs x,y,z velocity
246	=	 plr1 r_biceps x,y,z velocity
249	=	 plr1 r_triceps x,y,z velocity
252	=	 plr1 l_pecs x,y,z velocity
255	=	 plr1 l_biceps x,y,z velocity
258	=	 plr1 l_triceps x,y,z velocity
261	=	 plr1 r_hand x,y,z velocity
264	=	 plr1 l_hand x,y,z velocity
267	=	 plr1 r_butt x,y,z velocity
270	=	 plr1 l_butt x,y,z velocity
273	=	 plr1 r_thigh x,y,z velocity
276	=	 plr1 l_thigh x,y,z velocity
279	=	 plr1 l_leg x,y,z velocity
282	=	 plr1 r_leg x,y,z velocity
285	=	 plr1 r_foot x,y,z velocity
288	=	 plr1 l_foot x,y,z velocity
291	=	 plr1 groin rotation (4x4 matrix, row-by-row)
307	=	 plr1 neck state
308	=	 plr1 chest state
309	=	 plr1 lumbar state
310	=	 plr1 abs state
311	=	 plr1 right pec state
312	=	 plr1 right shoulder state
313	=	 plr1 right elbow state
314	=	 plr1 left pec state
315	=	 plr1 left shoulder state
316	=	 plr1 left elbow state
317	=	 plr1 right wrist state
318	=	 plr1 left wrist state
319	=	 plr1 right glute state
320	=	 plr1 left glute state
321	=	 plr1 right hip state
322	=	 plr1 left hip state
323	=	 plr1 right knee state 
324	=	 plr1 left knee state
325	=	 plr1 right ankle state
326	=	 plr1 left ankle state
327	=	 plr1 grip left hand state 
328	=	 plr1 grip right hand state
329	=	 plr1 injury

330 =    selected player (from get_world_state() )
331 =    Match length in number of frames
332 =    Number of frames played so far
333 =    Number of frames in next turn

States are one of {1,2,3,4} representing the state of joint, where:

1 = extend/right rotate/right bend
2 = contract/left rotate/left bend
3 = hold
4 = relax

Grip-states are one of {0,1} representing if hand is gripping (1 = grip).

Injury specifies the injury inflicted to player's body. This is the score of the opponent (e.g. Plr0 injury of 2000 means Plr1 has score of 2000).

Sources used: