Locomotor adjustments for circumvention of an obstacle in the travel path