What preventative measures should I take to survive the robot apocalypse?
There is no preventative measures. haven't you seen the matrix? what did you learn in school.
I would visit www.DoomsdayMaps.com, while it does address the robot apocalypse specifically it has great apocolyptic advice.