Set the first temporary attitude of an end effector for a plurality of
work points (step S3). Determine the attitude of an articulated robot at
one-end first work point out of a plurality of work points (step S4).
Determine the attitude of an articulated robot at the other-end final
work point out of a plurality of work points (step S5). Set the second
temporary attitudes of an end effector respectively for the other work
points so that the attitude of an end effector gradually changes from the
first work point toward the final work point (step S6). Correct the first
temporary attitude with the second temporary attitude (step S7).