A Low-Cost Lane-Following Algorithm for Cyber-Physical Robots