Installation Order

I want to work on swarm drones. How should be the order of installation for ardupilot, mavlink, gazebo, ros…

The ArduPilot dev wiki has the details: