Optimal control of robotic manipulators in the presence of obstacles | Synapse