Approximate optimal control of the compass gait on rough terrain | Synapse