Inside the robot’s mind during human-robot interaction