Obstacle avoidance using limit cycles