You will need to bring up the Radio Command screen in order to get unstuck. On a controller press “Up” on the D-pad. On a keyboard, press the “O” key. Select the “Stuck” button at the bottom of the list. After a few seconds, your character will be shifted to another location.
This function also works for vehicles. While inside the vehicle, follow the same instructions.