An Optical Localization System for Mobile Robots Based on Active Beacons