A set of algorithms for calculating the parameters of locomotion patterns.