Polyurethane is what you get from a reaction between a diisocynate and a polyol,in the presence of catalyst and surfactants.They are used for everything from refrigeration insulation to seating.the reaction process determines how hard,soft or porous the foam ends up.
I dont think foam rubber is something you can make at home.
__________________
pineapples hate me.its ok i dont fancy thm that much anyway.