Swarm robots can form persistent shapes in space that adapt to real-time changes through a decentralized algorithm that allows robots to cycle in and out of the shape while maintaining its structure.