It is a somewhat similar environment to that when desktop computers were making their way into offices in the mid-late 1980s and early 1990s.
There were many tasks they could do much more rapidly. They were displacing people, but at the same time, they were creating new job title/positions. Of course, those new job titles/positions required workers with a more specialized set of skills.
Adaptability became an issue. Those who could adapt — learn for the new environment — found good jobs.
==
In the robotic world, they still need to be programmed and they still need maintenance.
PCs got rid of a wonderful job category called SECRETARY (or Admin Asst etc.)
Together with big IT, the technology has now turned almost everyone in the company into administrative assistants.
It has also eliminated many high-paying layers of management, where experience was absolutely necessary.
This is not totally a good thing ... but ... sigh.