A method for programming an industrial robot. The robot is taught a path
having waypoints located on or in the vicinity of an object. An image of
the object is obtained. Information is obtained about the position of a
pointer pointing at points. The position of the points relative to the
object is determined. A point being pointed out is stored as a waypoint.
A graphical representation is generated of the stored waypoint and the
point being pointed out. A view is displayed including the object and the
graphical representation. A system includes a pointer for pointing out
points on or in the vicinity of the object, a position determiner
determines the position of the points relative to the object, a camera
delivers an image of the object and the pointer, a graphical generator
generates graphics, a display displays a view including the object and
graphical representation, and an activator.