A method for joining together at least two sheets with a tool controlled
by an industrial robot and including a first arm and a second arm that
are mutually movable in relation to each other. An actual position of the
sheets is detected by bringing one of the arms to sense the actual
position of the sheets. The distance between an ideal position and the
actual position is calculated and the actual position of the tool is
moved the calculated distance, whereafter the sheets are joined together.