Safe Robot Planning and Control Using Uncertainty-Aware Deep Learning