One excuse people often use for not going to the gym is that they are too worried about what everyone else is thinking, or that they don't like the "type of people" at the gym. I used to think that way when I was younger, but as I've gotten older, I simply don't care!
Here's a simple way to get more enjoyment out of your gym time: Just ignore everyone else! Pretend they're not even there. Most people at the gym are just concerned with themselves. Everyone has different ability levels and different reasons for going to the gym, so focus only on your own goals and motivation. You may not like all of the people you encounter there, but there is no rule that you have to interact with them.
So put on your headphones, or grab some other distraction, and don't worry about everyone else. If you're doing ab work or stretches, you can even just close your eyes. Think of it as your "me" time.
Do you ignore other people at the gym? If so, share your secrets in the comments.