How to direct to a line following robot to stop at a particular point?

Hi guys, I’m trying to design an automated trash can that moves along a line. I’m confident I can build a line tracking robot but how do I design it so that it stops at a specific point. Lets say somewhere along the line I place a switch. When pressing the switch I want the robot to move towards the location of the switch. Essentially I want to send the robot along the line to a position where it was called. I’m not sure I made this clear enough but an analogy would be how we press a button inside a hospital room and the nurse comes towards you. Would be great if you can help me out, fairly new to this stuff.

submitted by /u/bonnyxavier1998
[link] [comments]