Network weight and time-varying potential function for obstacle avoidance of swarm robots in column formation