Finite state automaton based control system for walking machines. (30th May 2019)