Learning-Based Safety-Critical Control Under Uncertainty with Applications to Mobile Robots