There will always be 'pilots' in the future, especially on passenger aircraft. However that 'pilot' will also be called the 'purser'
If we're getting rid of pilots, why not cabin crew as well? Passengers could get food and drink from a vending machine, and be responsible for evacuating themselves in case of an emergency, just like how every Public Transportation bus or metro operates today, even the driverless ones! /s
"... to date, 19 autonomous haul trucks (AHT's) have moved 100 million tonnes of rock in the Pilbara region of Western Australia"
Those trucks operate in a closed environment in a big dirt pit, being stopped to load up with rocks, drive to another location via GPS then dump them. Hardly the same parameters as an aircraft