The fact is that we don't live in the long term so although truck driving and coal mining are shitty jobs (and absolutely should be automated or eliminated) we have to take care of the current practitioners (both financially and finding a way for them to preserve their dignity) as their employment goes away.
Separately I don't think we'll need all that many robot designers either.
If there is shortage of skilled workers to do those jobs then they should train them too. The lack of long term job security has lead to the end of loyalty which means private companies have no incentive to train people which means the unemployed have to take on debt to study courses which aren't necessarily giving the skills they need. That and companies need to start sponsoring and training and accept that some will end up at a competitor.
To your point: the way to fix these problems is to make sure that everyone, irrespective of their ability to make money selling their labor, is able to consume a fair amount. Hence the need for a basic income for all: the higher the better. The quicker we break from the moralistic perspective that everyone should "work" in a world where not everyone can, the quicker we can create a world that is about "the pursuit if happiness" again.