The sight of a cockroach scurrying for cover may be nauseating, but the insect is also a biological and engineering marvel, and is providing researchers with what they call “bioinspiration” in a quest to build the world’s first legged robot that is capable of running effortlessly over rough terrain.