A control architecture for an internet-based robot system