Machines are increasingly replacing humans on the front line, but troops are still vital for defending territory.