It is not a defeatist attitude to have that we will encounter obstacles but a realistic view and a mindset that prepares you for them so that you are not thrown by them.
Here are some ways I overcome obstacles:
1. Stop and think/reflect before acting
2. Speak with others around you
3. Think creatively
4. Look at the obstacle from a different angle
5. Be brave and courageous in the solution
And remember it is all part of the journey, each time you overcome you will learn, develop and GROW!