Direct Trajectory Optimization and Costate Estimation via an Orthogonal Collocation Method | Synapse