Online walking motion and foothold optimization for quadruped locomotion | Synapse