code wiki / (root) / nx_pose_coach.nx

nx_pose_coach.nx

buildroot/runtime/nx_pose_coach.nx

3353 B72 linesdepth 2pulls 4 transitivereach 3 importersview sourcekind librarytopic pose
docsdependenciesstructsconstsfunctions

about

nx_pose_coach.nx -- the COACH's read (roadmap R8): compare a USER pose track to a REFERENCE track and say WHAT is off (which joint, how far) and score the form -- with TEMPO-INVARIANT alignment (DTW) so a slower/ faster attempt isn't penalised for form. Pure integer math on joint-position tracks (track[f*nj*3 + j*3 + c]); the tracks come from R3-retarget (from video via R2) or the rig. This is "help people achieve their goals": name the error, not just a number. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_vecmath.nx nx_pose_coach.nx nx_synth_serve.nx

imports: nx_syscalls.nxnx_vecmath.nx

imported by: nx_synth_serve.nx

structs

none

consts

none

functions

9func pc_isqrt(v: i64) -> i64 { return vm_isqrt(v) }
called by 1: pc_jdist calls 1: vm_isqrt
11func pc_jdist(t1: *i64, o1: i64, t2: *i64, o2: i64) -> i64
called by 2: pc_framedistpc_score calls 1: pc_isqrt
16func pc_framedist(ref: *i64, ri: i64, user: *i64, uj: i64, nj: i64) -> i64
called by 1: pc_dtw calls 1: pc_jdist
23func pc_score(ref: *i64, user: *i64, T: i64, nj: i64, jdev: *i64) -> i64
called by 1: sv_do_coach calls 1: pc_jdist
39func pc_worst_joint(jdev: *i64, nj: i64) -> i64
called by 1: sv_do_coach
46func pc_dtw(ref: *i64, user: *i64, T: i64, nj: i64) -> i64
67func pc_form_score(total: i64, samples: i64, tol: i64) -> i64
called by 1: sv_do_coach