Automatic elastic and rigid rolling machine