Movement reproduction and obstacle avoidance with dynamic movement primitives and potential fields | Synapse