Scalable Task-Driven Robotic Swarm Control via Collision Avoidance and Learning Mean-Field Control