Smart Device Control of Robot Swarms in a Changing Environment