You must be talking about "follow" mode. When one robot follows the other the program must prevent the following robot from detecting the followed robot until it has moved a minimum predefined distance that is adjusted to prevent it from colliding with, or losing track of, the robot or whatever its following.
Judge by the distance it has moved in relation to another object.
Force moved through a distance is work. Work = Force x Distance
Distance moved by input force / distance moved by output force
resistance
λ can be used for the symbol for distance moved as well as the symbol for wavelength.
Work is measured as a product of force applied and the distance moved. Work is calculated using the formula: Work = Force × Distance.
Work = force x distance moved in the direction of the force, so distance = 675/45 metres = 15 metres
Work = force * distance moved
Speed
Distance
distance
-- Measure the distance the object moved. -- Measure the time it took to move that distance. -- Divide (distance it moved) by (time it took). The result is average speed during that time.