Indirect Methods for Robot Skill Learning