What is an optical encoder?

It is a light source that illuminates a linear scale where the reflected light is collected by a detector. The incremental reading is translated into a physical value giving the system position feedback. This is a direct measurement as the sensor is typically placed on the moving platform.