Control of a mobile robot by an electronic brain