Gravar-mail: Dynamic primitives in the control of locomotion