It's a short form of "got to" or "has/have got to," meaning "must." For example, "I've gotta' go home" (meaning "I must go home") or "You gotta' problem with that?" (meaning, "Have you got a problem with that?"). While it's normal to use "gotta'" in speech, it should never be written unless you are transcribing dialogue.