Another time to avoid petting is when your dog is highly aroused or agitated. Dogs and humans share a kind of a threshold of arousal, a level of emotional excitement that changes our response to touch. Under that threshold, touch is soothing, as it is when your dog is slightly anxious at the vet’s or when you’re nervous at the doctor’s office.