Text this: Trajectory Optimisation Inspired Design for Legged Robotics