Multiagent control of modular self-reconfigurable robots