I think by robot the OP means AI.
I think about this all the time as I am in a career that is slowly being automated, but I don't think it means imminent financial collapse. It's really all about government policy. Scheduling software is making part time work miserable for retail workers for example. If govt policy makes it so that employers have to do steady schedules it could become a middle class job. Manufacturing used to be considered a terrible job with no prospects, until govt policy and unions made it a middle class job.
The best thing you can do is to save money so you are shielded from change.