Virtual Reality to Simulate Visual Tasks for Robotic Systems