We only shifting the simple work to robots and create on other places new.
There will be still stuff to do which a robot will not able to do it. But not in 50 years.
Read the book Homo Sapiens. This guy write it just how it would be in 2050 and above.
Everything works with algorithms. Even a Police officer, lawyer or Doctor could be replaced by a machine.
I agree that more and more jobs are going to get replaced by machines ata faster rate than useful jobs could be created, but I really doubt a police officer, lawyer or doctor could be able to get replaced by a machine in 50 years, certainly not in 2050...
For you to have a fully replaceable police officer, the robot would need to be a literal terminator, capable of moving across every possible obstacle, asking questions, shooting, driving... anything that a police officer does on their career. It is simply impossible to come up with such a machine anytime soon, and 50 is soon. Maybe try again in year 3000.
Yes if it happens robots can't replace every job that humans can do. Even if algorithms can help them on identifying what is right and what is not the decision that they will have will still not be the same. They don't have a heart to consider.