Teaching Robot Operations and Environemnts by Using a 3-D Visual Sensor System