Collaborative locomotion in self-reconfigurable modular robots