Reduce walking arm swing and elbow flexion amplitude by twenty percent

This commit is contained in:
JariKo
2026-10-29 00:00:53 +02:00
parent cc22bdcc4b
commit ebe00c366c
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func run(g):
check(max_lift>.08 and planted_frames>150,"alternating lift/support")
check(hand_max.x-hand_min.x>.12 and hand_max.y-hand_min.y>.12,"both hands swing during locomotion")
check(cross_sum/samples-(hand_sum.x/samples)*(hand_sum.y/samples)<0,"opposing left/right arm swing")
check(elbow_min<deg_to_rad(23) and elbow_max>deg_to_rad(50) and elbow_max<deg_to_rad(68),"elbows extend beside body and flex on forward swing")
check(elbow_min<deg_to_rad(23) and elbow_max>deg_to_rad(43) and elbow_max<deg_to_rad(59),"reduced swing still extends beside body and flexes forward")
check(forward_samples>0 and back_samples>0 and forward_angles/maxi(1,forward_samples)>back_angles/maxi(1,back_samples)+deg_to_rad(20),"elbow flexion follows actual forward/backward shoulder swing")
print("GAIT_METRICS ",JSON.stringify({"scale":actor.scale.x,"speed":speed,"max_slide":max_slide,"max_target_error":max_error,"max_lift":max_lift,"min_contact":min_contact}))
var phase=actor.gait.phase