Design of a minirobot with transformable locomotion