Learning Resilient Behaviors for Navigation Under Uncertainty Environments