A method of controlling a robot system (20) includes using a camera (40) to generate a first, two-dimensional image of a marking (42) on a workpiece (32). A second, two-dimensional image of the marking (42) is generated from a second perspective. The two images are then used to generate a three-dimensional location of the marking in real space relative to the robot (22). Since the visible marking (42) corresponds to a desired path (48), the three-dimensional location information is used to automatically program the robot (22) to follow the desired path.
展开▼