You can teach robots things in VR

[…] actually you can teach robots things in VR, such that the robot experiences everything the way that it will experience it when doing the job itself.

(source)