Real-time velocity optimization for arbitrary trajectories of robots | Synapse