Patent ID: 7684897

Claim:
A robot program generating device for generating a robot operating program for a system including a robot and a visual sensor for conducting two-dimensional measurement or three-dimensional measurement to a work, comprising: a model displaying means for displaying a work model; a measuring portion designating means for designating a measuring portion measured by the visual sensor on the work model displayed by the model displaying means; a measuring method designating means for designating as to whether a measuring method for measuring the measuring portion designated by the measuring portion designating means is the two-dimensional measurement or the three-dimensional measurement; a work information designating means for designating information of at least one matter about the work by numerical values or types; a rule storing means for storing predetermined rules for judging whether or not the measuring portion, which is designated by the measuring portion designating means, is good and/or whether or not the measuring method, which is designated by the measuring method designating means, is good in connection with the numerical values or types; a judging means for judging whether or not the measuring portion which is designated by the measuring portion designating means, is good and/or whether or not the measuring method, which is designated by the measuring method designating means, is good according to the at least one matter about the work designated by the work information designating means and the rule stored by the rule storing means; and a means for generating a robot program, the robot program including a measuring command for executing the measurement of the designated measuring portion, which is judged being good by the judging means by the designated measuring method, which is judged being good by the judging means.