Helping drone swarms avoid obstacles without hitting each other