Artificial General Intelligence (AGI) will most likely be developed in VR before robotics as a full body/brain simulation.
VR has nothing to do with AGI.
VR is hardware, creating various input/output devices that enable us to increasingly embody our virtual avatars and interact with the virtual world in increasingly lifelike ways.
AGI is a very theoretical information processing problem, in many ways AGI already exists, in part, the problem is getting a computer to do what the brain does would require trillions of parallel processing threads which is not something our technology is really designed for.
*puts $500 on the table*
DARPA already has AGI which means the NSA already has it or is about to get it too, they're probably using it for code-breaking, which is essentially pattern recognition which is exactly what AGI would excel at, although it would still be at a mainframe level, I doubt they've made it efficient enough to be portable yet, but hey it's DARPA so who knows?