Path Planning to Track a Moving Target with Obstacles