Trajectory optimization for domains with contacts using inverse dynamics | Synapse