Possible UTI?

I've been having very really gross smelling pee ever since Sunday and that usually doesn't happen unless I eat asparagus or another food. It also hurts when I pee and my pee is cloudy. I also feel like I always need to go but I ignore it until I KNOW I need to go cuz it's just a feeling and not real. Is it possible I have a UTI? Also what causes UTIs? And do I HAVE to go to a doctor or is there a way to treat it at home?