An architecture for a VLSI sensory–motor system for obstacle avoidance