A collocation method for real-time walking pattern generation | Synapse