Here is an earthworm-inspired robot that contracts its body segments sequentially to move through confined spaces. Such a robot can be used in exploration, pipe inspection, and other areas. The below video gives you a better idea how this robot works:
More information is available here.