Smart materials will make it possible for damaged robots to "heal" over time, using sunlight and atmospheric carbon.