New technology allows robots to survive through self-amputation