Trajectory Optimization Through Contacts and Automatic Gait Discovery for Quadrupeds | Synapse