A method and a system for use in connection with off-line programming of
an industrial robot. The robot is taught a path having a number of
waypoints located on or in the vicinity of at least one object to be
processed by the robot. The system includes a tracking system unit
adapted to provide information about the position of a part of the body
of an operator pointing by the part at points on or in the vicinity of
the object, a visual feed-back unit generating a visual feed-back to the
operator of the position of the point being presently pointed at by the
part of the body, in relation to the object, and a storage unit adapted
for storing the position of the part of the body as a waypoint upon
receiving a recording command.