Remove global translation by subtracting the root joint's position.
(joints)
| 106 | return contact_range |
| 107 | |
| 108 | def remove_global_translation(joints): |
| 109 | """Remove global translation by subtracting the root joint's position.""" |
| 110 | root_joint = joints[:, 0:1, :] # Root joint is joint 0 (shape: T, 1, 3) |
| 111 | local_joints = joints - root_joint # Subtract root joint position |
| 112 | return local_joints |
| 113 | |
| 114 | |
| 115 | def summarize_scores(values): |
no outgoing calls
no test coverage detected