Path Planning Based on Task Knowledge and User's Intention