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,22 +1,22 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180" fill="none">
|
||||
<title>Push-Up</title>
|
||||
<path d="M 50.9 160.8 L 272.0 160.8 L 272.0 150.4 L 50.9 150.4 Z" fill="none" stroke="#b9bec9" stroke-width="3" stroke-linejoin="round"/>
|
||||
<path d="M 53.4 160.8 L 280.0 160.8 L 280.0 150.4 L 53.4 150.4 Z" fill="none" stroke="#b9bec9" stroke-width="3" stroke-linejoin="round"/>
|
||||
<g id="arm_r">
|
||||
<path d="M 101.2 124.8 L 126.5 140.6" stroke="#86cfc5" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 126.5 140.6 L 97.0 145.9" stroke="#86cfc5" stroke-width="5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="leg_r">
|
||||
<path d="M 185.9 132.8 L 221.5 161.5" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 221.5 161.5 L 256.0 141.6" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 256.0 141.6 L 257.0 152.4" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 185.9 132.8 L 228.8 149.2" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 228.8 149.2 L 268.0 141.6" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 268.0 141.6 L 265.4 152.2" stroke="#a9afba" stroke-width="5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<path id="girdle" d="M 95.3 126.6 L 95.3 124.7 L 101.2 124.8" stroke="#3a3f4b" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="pelvisBar" d="M 180.0 133.2 L 180.0 132.0 L 185.9 132.8" stroke="#3a3f4b" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="spine" d="M 180.0 132.0 Q 136.7 128.3 95.3 124.7" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<g id="leg_l">
|
||||
<path d="M 180.0 133.2 L 220.8 154.1" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 220.8 154.1 L 260.0 146.0" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 260.0 146.0 L 257.5 156.6" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 180.0 133.2 L 221.3 153.1" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 221.3 153.1 L 260.0 143.1" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M 260.0 143.1 L 258.0 153.7" stroke="#3a3f4b" stroke-width="6" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g id="arm_l">
|
||||
<path d="M 95.3 126.6 L 124.5 133.3" stroke="#0d9488" stroke-width="6" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Reference in New Issue
Block a user