Robots are developing an astonishing ability: understanding their own bodies by observing their movements. A breakthrough that could make them more autonomous and resilient in complex environments.