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
This commit is contained in:
@@ -1,39 +1,39 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
|
||||
<title>Romanian Deadlift</title>
|
||||
<defs>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="115.1" y1="110.5" x2="139.6" y2="131.2"><stop offset="0" stop-color="#5ab9af"/><stop offset="1" stop-color="#86cfc5"/></linearGradient>
|
||||
<linearGradient id="grad-arm_l-0" gradientUnits="userSpaceOnUse" x1="169.0" y1="85.3" x2="168.8" y2="106.0"><stop offset="0" stop-color="#a2a7b3"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="135.7" y1="131.1" x2="156.7" y2="149.4"><stop offset="0" stop-color="#0d9488"/><stop offset="1" stop-color="#1e9c91"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="156.7" y1="149.4" x2="160.5" y2="142.8"><stop offset="0" stop-color="#1e9c91"/><stop offset="1" stop-color="#0d9488"/></linearGradient>
|
||||
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="165.3" y1="107.3" x2="166.4" y2="128.0"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#414652"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="122.1" y1="104.9" x2="148.4" y2="123.3"><stop offset="0" stop-color="#50b5aa"/><stop offset="1" stop-color="#86cfc5"/></linearGradient>
|
||||
<linearGradient id="grad-arm_l-0" gradientUnits="userSpaceOnUse" x1="176.8" y1="81.6" x2="166.7" y2="99.7"><stop offset="0" stop-color="#a6acb7"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="142.4" y1="126.0" x2="157.2" y2="149.4"><stop offset="0" stop-color="#0d9488"/><stop offset="1" stop-color="#29a296"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="157.2" y1="149.4" x2="162.7" y2="144.1"><stop offset="0" stop-color="#29a296"/><stop offset="1" stop-color="#16988c"/></linearGradient>
|
||||
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="162.5" y1="101.0" x2="155.0" y2="120.3"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#3e434f"/></linearGradient>
|
||||
</defs>
|
||||
<path d="M 102.6 157.8 L 197.9 157.8 L 197.9 150.5 L 102.6 150.5 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
|
||||
<path d="M 109.6 157.7 L 201.2 157.7 L 201.2 150.4 L 109.6 150.4 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
|
||||
<g id="leg_l">
|
||||
<path d="M 115.1 110.5 L 139.6 131.2" stroke="url(#grad-leg_l-0)" stroke-width="3.62756" stroke-linecap="round"/>
|
||||
<path d="M 139.6 131.2 L 160.3 149.7" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
<path d="M 160.3 149.7 L 164.2 143.2" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
<path d="M 122.1 104.9 L 148.4 123.3" stroke="url(#grad-leg_l-0)" stroke-width="3.65571" stroke-linecap="round"/>
|
||||
<path d="M 148.4 123.3 L 160.0 148.4" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
<path d="M 160.0 148.4 L 166.2 143.9" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_l">
|
||||
<path d="M 169.0 85.3 L 168.8 106.0" stroke="url(#grad-arm_l-0)" stroke-width="3.52354" stroke-linecap="round"/>
|
||||
<path d="M 168.8 106.0 L 169.3 126.7" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
|
||||
<path d="M 176.8 81.6 L 166.7 99.7" stroke="url(#grad-arm_l-0)" stroke-width="3.50876" stroke-linecap="round"/>
|
||||
<path d="M 166.7 99.7 L 159.1 119.0" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="leg_r">
|
||||
<path d="M 111.0 110.9 L 135.7 131.1" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 135.7 131.1 L 156.7 149.4" stroke="url(#grad-leg_r-1)" stroke-width="4.14992" stroke-linecap="round"/>
|
||||
<path d="M 156.7 149.4 L 160.5 142.8" stroke="url(#grad-leg_r-2)" stroke-width="4.14992" stroke-linecap="round"/>
|
||||
<path d="M 118.0 105.3 L 142.4 126.0" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 142.4 126.0 L 157.2 149.4" stroke="url(#grad-leg_r-1)" stroke-width="4.11884" stroke-linecap="round"/>
|
||||
<path d="M 157.2 149.4 L 162.7 144.1" stroke="url(#grad-leg_r-2)" stroke-width="4.09381" stroke-linecap="round"/>
|
||||
</g>
|
||||
<path id="girdle" d="M 169.0 85.3 L 164.9 85.3 L 164.9 86.6" stroke="#0d9488" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="pelvisBar" d="M 115.1 110.5 L 111.0 110.0 L 111.0 110.9" stroke="#0d9488" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="spine" d="M 111.0 110.0 Q 139.9 100.1 164.9 85.3" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="girdle" d="M 176.8 81.6 L 172.7 81.6 L 172.7 82.9" stroke="#0d9488" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="pelvisBar" d="M 122.1 104.9 L 118.0 104.4 L 118.0 105.3" stroke="#0d9488" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="spine" d="M 118.0 104.4 Q 147.2 95.5 172.7 81.6" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="arm_r">
|
||||
<path d="M 164.9 86.6 L 165.3 107.3" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 165.3 107.3 L 166.4 128.0" stroke="url(#grad-arm_r-1)" stroke-width="4.17658" stroke-linecap="round"/>
|
||||
<path d="M 172.7 82.9 L 162.5 101.0" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 162.5 101.0 L 155.0 120.3" stroke="url(#grad-arm_r-1)" stroke-width="4.18848" stroke-linecap="round"/>
|
||||
</g>
|
||||
<path d="M 167.8 124.2 L 167.8 130.5" stroke="#6b7180" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="167.8" cy="124.2" r="9.1" fill="#6b7180"/>
|
||||
<circle cx="167.8" cy="130.5" r="9.1" fill="#6b7180"/>
|
||||
<circle id="head" cx="177.8" cy="79.9" r="7.0" fill="white" stroke="#3a3f4b" stroke-width="4.2"/>
|
||||
<line id="nose" x1="184.7" y1="80.5" x2="189.6" y2="80.9" stroke="#3a3f4b" stroke-width="2.8" stroke-linecap="round"/>
|
||||
<path d="M 157.1 116.5 L 157.1 122.8" stroke="#6b7180" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="157.1" cy="116.5" r="9.1" fill="#6b7180"/>
|
||||
<circle cx="157.1" cy="122.8" r="9.1" fill="#6b7180"/>
|
||||
<circle id="head" cx="185.8" cy="76.6" r="7.0" fill="white" stroke="#3a3f4b" stroke-width="4.2"/>
|
||||
<line id="nose" x1="192.8" y1="77.0" x2="197.7" y2="77.2" stroke="#3a3f4b" stroke-width="2.8" stroke-linecap="round"/>
|
||||
<g font-family="-apple-system, Helvetica, sans-serif" font-size="11" fill="#6b7180">
|
||||
<line x1="224" y1="16" x2="238" y2="16" stroke="#3a3f4b" stroke-width="4" stroke-linecap="round"/>
|
||||
<text x="243" y="20">near</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
@@ -1,38 +1,39 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
|
||||
<title>Romanian Deadlift</title>
|
||||
<defs>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="162.7" y1="90.9" x2="169.8" y2="121.9"><stop offset="0" stop-color="#26a095"/><stop offset="1" stop-color="#86cfc5"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="166.5" y1="122.0" x2="158.6" y2="148.5"><stop offset="0" stop-color="#0d9488"/><stop offset="1" stop-color="#30a599"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="158.6" y1="148.5" x2="166.0" y2="150.6"><stop offset="0" stop-color="#30a599"/><stop offset="1" stop-color="#37a99d"/></linearGradient>
|
||||
<linearGradient id="grad-arm_l-0" gradientUnits="userSpaceOnUse" x1="173.1" y1="32.7" x2="176.4" y2="53.2"><stop offset="0" stop-color="#a6acb7"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-leg_l-0" gradientUnits="userSpaceOnUse" x1="162.7" y1="90.9" x2="169.0" y2="122.0"><stop offset="0" stop-color="#26a094"/><stop offset="1" stop-color="#86cfc5"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-1" gradientUnits="userSpaceOnUse" x1="164.2" y1="122.5" x2="157.2" y2="149.2"><stop offset="0" stop-color="#0d9488"/><stop offset="1" stop-color="#31a69a"/></linearGradient>
|
||||
<linearGradient id="grad-leg_r-2" gradientUnits="userSpaceOnUse" x1="157.2" y1="149.2" x2="164.7" y2="151.1"><stop offset="0" stop-color="#31a69a"/><stop offset="1" stop-color="#38a99e"/></linearGradient>
|
||||
<linearGradient id="grad-arm_l-0" gradientUnits="userSpaceOnUse" x1="171.0" y1="32.4" x2="165.9" y2="52.5"><stop offset="0" stop-color="#a2a8b3"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="161.8" y1="53.8" x2="159.6" y2="74.3"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#414652"/></linearGradient>
|
||||
</defs>
|
||||
<path d="M 102.6 157.5 L 197.9 157.5 L 197.9 150.2 L 102.6 150.2 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
|
||||
<path d="M 109.6 157.5 L 201.2 157.5 L 201.2 150.2 L 109.6 150.2 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
|
||||
<g id="leg_l">
|
||||
<path d="M 162.7 90.9 L 169.8 121.9" stroke="url(#grad-leg_l-0)" stroke-width="3.77634" stroke-linecap="round"/>
|
||||
<path d="M 169.8 121.9 L 161.4 148.2" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
<path d="M 161.4 148.2 L 168.7 150.4" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
<path d="M 162.7 90.9 L 169.0 122.0" stroke="url(#grad-leg_l-0)" stroke-width="3.77894" stroke-linecap="round"/>
|
||||
<path d="M 169.0 122.0 L 160.0 148.2" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
<path d="M 160.0 148.2 L 167.3 150.6" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="leg_r">
|
||||
<path d="M 158.6 91.3 L 166.5 122.0" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 166.5 122.0 L 158.6 148.5" stroke="url(#grad-leg_r-1)" stroke-width="4.09987" stroke-linecap="round"/>
|
||||
<path d="M 158.6 148.5 L 166.0 150.6" stroke="url(#grad-leg_r-2)" stroke-width="3.97706" stroke-linecap="round"/>
|
||||
<path d="M 158.6 91.3 L 164.2 122.5" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 164.2 122.5 L 157.2 149.2" stroke="url(#grad-leg_r-1)" stroke-width="4.09513" stroke-linecap="round"/>
|
||||
<path d="M 157.2 149.2 L 164.7 151.1" stroke="url(#grad-leg_r-2)" stroke-width="3.96992" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_l">
|
||||
<path d="M 173.1 32.7 L 176.4 53.2" stroke="url(#grad-arm_l-0)" stroke-width="3.51071" stroke-linecap="round"/>
|
||||
<path d="M 176.4 53.2 L 189.5 69.3" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
|
||||
<path d="M 171.0 32.4 L 165.9 52.5" stroke="url(#grad-arm_l-0)" stroke-width="3.52056" stroke-linecap="round"/>
|
||||
<path d="M 165.9 52.5 L 163.7 73.1" stroke="#a9afba" stroke-width="3.5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<path id="girdle" d="M 173.1 32.7 L 168.9 32.7 L 168.9 34.0" stroke="#0d9488" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="girdle" d="M 171.0 32.4 L 166.9 32.4 L 166.9 33.7" stroke="#0d9488" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="pelvisBar" d="M 162.7 90.9 L 158.6 90.4 L 158.6 91.3" stroke="#0d9488" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="spine" d="M 158.6 90.4 Q 163.9 60.9 168.9 32.7" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="spine" d="M 158.6 90.4 Q 162.8 60.7 166.9 32.4" stroke="#0d9488" stroke-width="4.2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="arm_r">
|
||||
<path d="M 168.9 34.0 L 173.2 54.3" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 173.2 54.3 L 187.4 69.5" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 166.9 33.7 L 161.8 53.8" stroke="#3a3f4b" stroke-width="4.2" stroke-linecap="round"/>
|
||||
<path d="M 161.8 53.8 L 159.6 74.3" stroke="url(#grad-arm_r-1)" stroke-width="4.17831" stroke-linecap="round"/>
|
||||
</g>
|
||||
<path d="M 188.5 66.2 L 188.5 72.6" stroke="#6b7180" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="188.5" cy="66.2" r="9.1" fill="#6b7180"/>
|
||||
<circle cx="188.5" cy="72.6" r="9.1" fill="#6b7180"/>
|
||||
<circle id="head" cx="171.8" cy="19.2" r="7.0" fill="white" stroke="#3a3f4b" stroke-width="4.2"/>
|
||||
<line id="nose" x1="178.8" y1="19.7" x2="183.7" y2="20.0" stroke="#3a3f4b" stroke-width="2.8" stroke-linecap="round"/>
|
||||
<path d="M 161.7 70.5 L 161.7 76.9" stroke="#6b7180" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="161.7" cy="70.5" r="9.1" fill="#6b7180"/>
|
||||
<circle cx="161.7" cy="76.9" r="9.1" fill="#6b7180"/>
|
||||
<circle id="head" cx="169.3" cy="18.8" r="7.0" fill="white" stroke="#3a3f4b" stroke-width="4.2"/>
|
||||
<line id="nose" x1="176.3" y1="19.0" x2="181.2" y2="19.2" stroke="#3a3f4b" stroke-width="2.8" stroke-linecap="round"/>
|
||||
<g font-family="-apple-system, Helvetica, sans-serif" font-size="11" fill="#6b7180">
|
||||
<line x1="224" y1="16" x2="238" y2="16" stroke="#3a3f4b" stroke-width="4" stroke-linecap="round"/>
|
||||
<text x="243" y="20">near</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.7 KiB |
Reference in New Issue
Block a user