Collaborative Control of Autonomous Swarms with Resource Constraints