Automation in general, not just robotics.
I had to automate tasks that people used to do by hand. We had a program that would capture keystrokes. So, you start the program, have the person do their job, stop the program and that's about that. Once you have the basic job captured, you then have to write for anomalies. If you follow someone through their business cycle, be it a day, a week, a quarter, or year end, you end up catching most of those "odd" occurrences, and then a human is no longer needed to do that task repetatively.
Then you throw that task on a $1000 PC that you don't have to pay a salary or benefits.
I'm fairly certain I automated myself out of a job as well.
We were fortunate in that all of the people that we ended up replacing left through attrition. Retirements, buyouts, etc. So no one suffered immediately. However, none of those jobs are ever going to be there again.
That's the case with most industries. Peope are almost always your biggest expense. You want as few as possible.
So what are people supposed to do for employment in the future? Best advice is to be adaptable, but even with that, there are only so many new technologies that create physical jobs.