Text this: Distributed learning control of peristaltic robots