The companies will use artificial intelligence to optimize the interactions of drones with drones, and drones with humans.