A Multi-agent Architecture with Distributed Coordination for an Autonomous Robot