Marine flatworms have perfected smooth, undulating motion over millions of years of evolution. Now, scientists have taken inspiration to create a highly agile robot.