Nonlinear Dimensionality Reduction For Motion Synthesis And Control