The Regbot motors use a magnetic encoder at the motor axle, as shown below.
The magnetic encoder is used to calculate motor (and robot) velocity. The velocity is estimated based on the time between encoder ticks.