Reconfigurable legged metamachines that run on autonomous modular legs