Cornell University engineers have created a soft robot capable of detecting when and where it was damaged—and then healing itself on the spot.