A pendulum-like move that cockroaches and geckos use has been adapted for robots.