Collision-free control of robotic manipulators in the task space