The 'robot takeover' is not going to happen like people think. First of all, robotic mechanisms are very expensive. Many companies are finding that it is actually cheaper to keep 5 unskilled guys on an assembly line than to buy a robot to replace them. Then you have the specialized maintenance, engineering and programming costs involved with robotics. There is also a heightened safety position associated with them. When you have a machine that moves without human input, you have to include all kinds of safeguards. So, it increased the cost of factory real estate too.
However, OTOH, the implementation and maintenance costs are coming down. As new, smaller, decentralized factories are being built, people are getting away from single function, single fitting, machines, and designing the safety concerns at the inception, instead of as a retrofit.
I am one of the people who will be working in this environment in the future, up until i retire.