But robots don't actually replace these workers.
In the case of McDonald's the kiosks only generated more throughput, actually adding work, so all the staff assigned to taking orders was put into other work.
Meanwhile self-checkout, while actually reducing throughput somewhat, made it possible for the workers to take on other tasks in the store - of which there are many.