A new computational approach to real-time trajectory generation for constrained mechanical systems | Synapse