A robot path tracking algorithm with smooth curves and obstacle avoidance based on simulated IR distance sensors.