Scientists have built a bird-inspired robot with legs that can walk on the ground, hop over obstacles and jump into flight, an advance that may lead to the development of drones for complex terrains.