Peristaltic pumping of rigid objects in an elastic tube