They have a view range of 2 in the dark, so as long as their ai doesnāt decide to make them crowd around the doors necessary for escape, you have an ok chance of escaping, especially if you get a light source off a zombie to craft lock picks and a crowbar.
I also think it is a good idea to stay downstairs until you are sure you have the materials needed. If you play with z-levels off, the robots wonāt shoot at the zombies until you get to the normal floor. If they are busy shooting the zombies, then you might have an easier time getting past them.