Title: Ergonomic control of a robot during the teaching mode