The robot has no steering wheel. It turns only by running its left and right wheels at different speeds. A PID controller decides how different. Click the arena to place targets, then change the gains and watch.
Click to add targets. The robot visits them in order (that is the simplest possible path plan). Dashed line = where it should be heading.
Angle between where the robot points and where the target is. The controller tries to hold this at zero.
Equal speeds: straight line. Right faster than left: turns left. The PID output u is the speed difference.