It's not the nap that makes you groggy, it's at what point your sleep cycle you wake up - you want to wake up at the end of one, but before the next one kicks in. It takes a bit of practice to figure out what yours is. If this is very hard
it probably means you're sleep deprived in general (then again, living a Western lifestyle makes it likely you're sleep deprived by default).