Human motion estimation and controller learning