A newly designed "transformer" robot with the ability to change shape could one day be used to build habitats in space.