Learning Dynamic Motor Skills For Terrestrial Locomotion