Learning controllers for human-robot interaction