Fix figure IK snapping and gate the library on a fail-hard motion checker
Three solver defects made limbs teleport, twist, or windmill: write-back angles wrapped at ±180 and lerped the long way around; branch flips landed on configurations the anatomical write-back cannot represent, silently pulling pinned extremities off their pins; and the degenerate straight-limb bend plane fell back to the camera axis instead of the anatomical anterior. solve_limb now verifies each branch reproduces the solved end before accepting it, resolve unwraps written-back angles toward the pose they replace, and the degenerate plane comes from the parent's anterior axis. render.py --check replays every exercise's full tween loop and fails hard on six invariants (pin fidelity, continuity, wraps, authored-vs-resolved drift, ground penetration, resolved ROM); --export refuses to ship a failing exercise. All 66 motions re-authored or retouched to pass: honest authored angles where pins used to override them silently, grounded feet on the seated machines, a vertical bench-press bar path, straight-armed child's pose, a butterfly stretch seated on the mat, and FK arms where pins forced impossible reaches. MotionSolver.swift mirrors the solver changes line for line, held by regenerated fixtures. Claude-Session: https://claude.ai/code/session_01PKptrgbx74peTwHGRxBojv
@@ -3,8 +3,8 @@
|
||||
<defs>
|
||||
<linearGradient id="grad-arm_l-1" gradientUnits="userSpaceOnUse" x1="200.7" y1="36.4" x2="227.6" y2="38.4"><stop offset="0" stop-color="#86cfc5"/><stop offset="1" stop-color="#0d9488"/></linearGradient>
|
||||
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="119.3" y1="36.4" x2="92.4" y2="38.4"><stop offset="0" stop-color="#86cfc5"/><stop offset="1" stop-color="#0d9488"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="167.0" y1="116.0" x2="167.0" y2="133.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-0" gradientUnits="userSpaceOnUse" x1="153.0" y1="116.0" x2="153.0" y2="133.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="167.0" y1="116.0" x2="167.0" y2="119.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-0" gradientUnits="userSpaceOnUse" x1="153.0" y1="116.0" x2="153.0" y2="119.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
</defs>
|
||||
<path d="M 130.0 141.6 L 130.0 169.2 L 190.0 169.2 L 190.0 141.6 Z" fill="none" stroke="#b9bec9" stroke-width="3" stroke-linejoin="round"/>
|
||||
<path d="M 160.0 64.0 L 160.0 120.0 L 160.0 120.0 L 160.0 64.0 Z" fill="#c5cad4" stroke="#c5cad4" stroke-width="16" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
@@ -22,14 +22,14 @@
|
||||
<path d="M 119.3 36.4 L 92.4 38.4" stroke="url(#grad-arm_r-1)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="leg_l">
|
||||
<path d="M 167.0 116.0 L 167.0 133.2" stroke="url(#grad-leg_l-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 167.0 133.2 L 167.0 173.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 173.0 L 167.0 171.9" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 116.0 L 167.0 119.2" stroke="url(#grad-leg_l-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 167.0 119.2 L 167.0 158.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 158.0 L 167.0 160.7" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="leg_r">
|
||||
<path d="M 153.0 116.0 L 153.0 133.2" stroke="url(#grad-leg_r-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 153.0 133.2 L 153.0 173.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 173.0 L 153.0 171.9" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 116.0 L 153.0 119.2" stroke="url(#grad-leg_r-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 153.0 119.2 L 153.0 158.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 158.0 L 153.0 160.7" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
</g>
|
||||
<path d="M 92.4 47.4 L 92.4 29.4" stroke="#6b7180" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M 227.6 47.4 L 227.6 29.4" stroke="#6b7180" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -1,8 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
|
||||
<title>Pec Deck</title>
|
||||
<defs>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="167.0" y1="116.0" x2="167.0" y2="133.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-0" gradientUnits="userSpaceOnUse" x1="153.0" y1="116.0" x2="153.0" y2="133.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="167.0" y1="116.0" x2="167.0" y2="119.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-0" gradientUnits="userSpaceOnUse" x1="153.0" y1="116.0" x2="153.0" y2="119.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-arm_l-1" gradientUnits="userSpaceOnUse" x1="174.1" y1="39.5" x2="177.0" y2="33.7"><stop offset="0" stop-color="#86cfc5"/><stop offset="1" stop-color="#0d9488"/></linearGradient>
|
||||
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="145.9" y1="39.5" x2="143.0" y2="33.7"><stop offset="0" stop-color="#86cfc5"/><stop offset="1" stop-color="#0d9488"/></linearGradient>
|
||||
</defs>
|
||||
@@ -14,14 +14,14 @@
|
||||
<path id="pelvisBar" d="M 167.0 116.0 L 160.0 116.0 L 153.0 116.0" stroke="#3a3f4b" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="spine" d="M 160.0 116.0 Q 160.0 73.2 160.0 32.3" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="leg_l">
|
||||
<path d="M 167.0 116.0 L 167.0 133.2" stroke="url(#grad-leg_l-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 167.0 133.2 L 167.0 173.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 173.0 L 167.0 171.9" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 116.0 L 167.0 119.2" stroke="url(#grad-leg_l-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 167.0 119.2 L 167.0 158.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 158.0 L 167.0 160.7" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="leg_r">
|
||||
<path d="M 153.0 116.0 L 153.0 133.2" stroke="url(#grad-leg_r-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 153.0 133.2 L 153.0 173.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 173.0 L 153.0 171.9" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 116.0 L 153.0 119.2" stroke="url(#grad-leg_r-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 153.0 119.2 L 153.0 158.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 158.0 L 153.0 160.7" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_l">
|
||||
<path d="M 171.0 32.3 L 174.1 39.5" stroke="#86cfc5" stroke-width="5" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -20,8 +20,8 @@
|
||||
"neck": 0,
|
||||
"shoulder_r": {"flexion": 18, "abduction": 82}, "elbow_r": 25,
|
||||
"shoulder_l": {"flexion": 18, "abduction": 82}, "elbow_l": 25,
|
||||
"hip_r": 78, "knee_r": 62,
|
||||
"hip_l": 78, "knee_l": 62
|
||||
"hip_r": 96, "knee_r": 100,
|
||||
"hip_l": 96, "knee_l": 100
|
||||
},
|
||||
{
|
||||
"hold": 0.5, "tween": 1.2,
|
||||
@@ -30,8 +30,8 @@
|
||||
"neck": 0,
|
||||
"shoulder_r": {"flexion": 86, "abduction": 6}, "elbow_r": 25,
|
||||
"shoulder_l": {"flexion": 86, "abduction": 6}, "elbow_l": 25,
|
||||
"hip_r": 78, "knee_r": 62,
|
||||
"hip_l": 78, "knee_l": 62
|
||||
"hip_r": 96, "knee_r": 100,
|
||||
"hip_l": 96, "knee_l": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 144 KiB |
@@ -1,8 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
|
||||
<title>Pec Deck</title>
|
||||
<defs>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="167.0" y1="116.0" x2="167.0" y2="133.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-0" gradientUnits="userSpaceOnUse" x1="153.0" y1="116.0" x2="153.0" y2="133.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="167.0" y1="116.0" x2="167.0" y2="119.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-0" gradientUnits="userSpaceOnUse" x1="153.0" y1="116.0" x2="153.0" y2="119.2"><stop offset="0" stop-color="#a9afba"/><stop offset="1" stop-color="#3a3f4b"/></linearGradient>
|
||||
<linearGradient id="grad-arm_l-1" gradientUnits="userSpaceOnUse" x1="174.1" y1="39.5" x2="177.0" y2="33.7"><stop offset="0" stop-color="#86cfc5"/><stop offset="1" stop-color="#0d9488"/></linearGradient>
|
||||
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="145.9" y1="39.5" x2="143.0" y2="33.7"><stop offset="0" stop-color="#86cfc5"/><stop offset="1" stop-color="#0d9488"/></linearGradient>
|
||||
</defs>
|
||||
@@ -14,14 +14,14 @@
|
||||
<path id="pelvisBar" d="M 167.0 116.0 L 160.0 116.0 L 153.0 116.0" stroke="#3a3f4b" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="spine" d="M 160.0 116.0 Q 160.0 73.2 160.0 32.3" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="leg_l">
|
||||
<path d="M 167.0 116.0 L 167.0 133.2" stroke="url(#grad-leg_l-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 167.0 133.2 L 167.0 173.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 173.0 L 167.0 171.9" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 116.0 L 167.0 119.2" stroke="url(#grad-leg_l-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 167.0 119.2 L 167.0 158.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 167.0 158.0 L 167.0 160.7" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="leg_r">
|
||||
<path d="M 153.0 116.0 L 153.0 133.2" stroke="url(#grad-leg_r-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 153.0 133.2 L 153.0 173.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 173.0 L 153.0 171.9" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 116.0 L 153.0 119.2" stroke="url(#grad-leg_r-0)" stroke-width="5.5" stroke-linecap="round"/>
|
||||
<path d="M 153.0 119.2 L 153.0 158.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 153.0 158.0 L 153.0 160.7" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_l">
|
||||
<path d="M 171.0 32.3 L 174.1 39.5" stroke="#86cfc5" stroke-width="5" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |