Hybrid trajectory planning of two permanent magnets for medical robotic applications | Synapse