There are plenty of advanced drones that can avoid obstacles. This is a bit more challenging when you are dealing with a drone swarm. EPFL engineers have developed a predictive control model that allows swarms of drones to fly in cluttered environments.
With this approach, individual drones predict their own behavior and that of their neighbors. The above video explains how this all works.