Well, I'll chime in with some of the evil blockers/showstoppers.
First: Glass as a driving surface. Traction or transparency, chose one. Especially wet conditions, where the uneven surface, and road curvature/camber allows for the water to drain, would make a glass surface unsuable.
Glass is prone to scratching, which reduces transparency. Cars drive on gravel roads, dirt gets blown on the road, and while I suppose you don't need to put a layer of traction enhancing gravel on top in winter, you also get a layer of dust. Add moving vehicles, and you'll lose efficiency of the generating part quickly, because the surface gets scratched up quickly.
Cost of glass, while "made out of trash" is still very high, especially precision panes of the required thickness. The energy required to shape glass is immense. Asphalt is mostly mode out of trash as well, so there's little advantage there.
Modular roads: Just no. You get bumps and sharp edges, which will quickly ruin both the surface and the driving comfort. When a heavy truck runs across such a bump at 50mph, the forces are immense. The corner will chip, and break sooner than later, causing further stresses. Replacing a module of that size is going to be quite expensive, compared to just resurfacing the road every few years.
Solar power: barely has positive ROI under ideal conditions. Add the complexity of the load-bearing structure, installation as a road, requirements on the glass, and any gains from solar power are negligible.
The fucking grid!:
Electrical grids are a huge challenge to get right. Decentralized power generation requires immense investment in power distribution networks, which even the current conglomerates are loath to invest in. Add transmission losses, and nothing short of a magic, free superconductor will do to give this any hope of being cheaper (in the long run) than centralized solar plants, and existing road tech.
Basically, it will work, if you have magic glass, which is both grippy and transparent and cheap, and flexible, and a continuous surface AND modular at the same time. And if you have enough sun to make it worthwhile for solar power, which makes the heating elements essentially redundant. And if you have magic superconductors and free magic stormdrains which will deal with the water.
Now, we can all dream, but none of this is going to work within the next few decades, if ever. We barely know how to built effective solar panels - the leap in tech required to turn those into effective solar panels and a road is like the leap in tech from having windmills and fire and turning it into a propeller airplane.