The free joint has 7 numbers for qpos: 3D position followed by 4D unit quaternion. Note that if you are also specifying velocities in keyframes, the free joint has 6 numbers: 3D translational velocity followed by 3D rotational velocity.