Reconstructing whole-body motions with wrist trajectories q