Automatic body regulation for maintaining stability of a legged vehicle during rough-terrain locomotion | Synapse