Automatic elastic or rigid rolling machine