Why are there height measurement things at swedish bars, train stations, etc?

I noticed them during my stay at quite a few bars, clubs and the mainstation of stockholm, it is basically a piece of plastic bolted to the wall next to doors which is green at the bottom with a line in the middle which is labeled 160, yellow above that with 170, and red above that with 180.

What is that for?

Edit: Thanks everyone!