As long as there is Market demand, they will be created in a Capitalist system. Robots will be making robots and people will have the funds to purchase. However, don't think a communist system will develop these, risk will not be viewed worthy of cost by the people/group making the decisions. BTW, Capitalism is not dying.
Demand will fall due to rising unemployment because people won't have money to purchase if they don't have a job. Its how capitalism works!
I am not asserting that post-capitalist economies (socialism, communism, syndicalism, wealth redistribution through guaranteed minimum income etc) will be everywhere. Probably scenario is collapse of the large countries to small parts and each will have own economic model. Nevertheless, it means the end to the globalization and worldwide dominance of the corporations.