A Vision System for Real-Time Control of Robots