A Radial Basis Functions approach to collision avoidance in collaborative tasks