Virtual reality and its applications in robotics