A robot and a method of controlling a robot