Text this: Hierarchically Planning Static Gait for Quadruped Robot Walking on Rough Terrain