Sensing contact constraints in a worm-like robot by detecting load anomalies