Model-Based Path Planning And Control For Autonomous Vehicles Using Artificial Potential Fields