A robot program production system includes: a storage block that saves
pieces of information on teaching points to be taught to a robot and
information on an ambient environment model representing the robot and
others; a programming unit that produces off-line a robot program; and a
robot control unit that controls the action of the robot so as to move
the robot to a teaching point. The programming unit includes a means for
determining a path, along which the robot is moved from the current
position to a teaching point, which should be corrected, without
interference with a work and obstacles, on the basis of the pieces of
information on teaching points and the information on the ambient
environment model. The robot control unit includes a means for moving the
robot to the teaching point, which should be corrected, along the
determined path. Information on the teaching point that should be
corrected is replaced with information on an actual teaching point
acquired after completion of the movement, whereby the information on the
teaching point described in the robot program is corrected quickly. This
results in a program capable of protecting the robot and ambient
facilities from being damaged.