Autonomous Animation of Humanoid Robots