I made a robot location tracking system specifically for use on the carpet at my office.
The carpet was an arrangement of 4 particular colors tiled in squares, so I manually made a carpet map (a few hours in excel!), wrote a carpet color classifier to run from under-robot camera data, then integrated with a particle filter for location tracking. Write up is here:
https://github.com/tim-fan/carpet_localisation/wiki/Carpet-L...
I wrote it only ever expecting usage in this particular office, but if anyone has a similar carpet and a robot that needs localizing, please reach out!