Multi-level cognitive control and terrain adaptive quadruped robot simulation in MATLAB | Synapse