Hi, I have depression/anxiety and ptsd, and also some physical problems that are contributing to the bladder problem. In the past 10 years or so, I have developed bladder problems, including increased frequency, the desperate out of the blue urge to go, and yes, accidents. It happened to me at work and on the way to work, and in public. I understand the shame and humiliation, but please remember it is not your fault. You have a medical problem, regardless of the cause. I would suggest the following, if you have not done so: 1) get yourself checked by a MD and make sure you do not have a bladder infection or another physical problem, 2) I wear 2 pair of Depends under my clothes, and find that except for extremely large accidents, that protects me and saves me from embarrassment and wetting my clothes. 3) Always carry Depends and change of underwear with you, just in case, 4) if you have had more than one incident, I suggest seeing a urologist or urogynecologist (if you are a woman) to make sure that there is not a physical cause and that there is not something that can be done to help. 5) Cutting caffeine helps me as well. 6) Pelvic floor physical therapy, which involves exercises to strengthen and relax the muscles may help.
Good luck!