Engineers build robot arm with rudimentary self-awareness