Mechanics of roller straightening