Unification of Task Identification and Control for a Humanoid Rob ot