In general, in a profiling operation on a work object having discontinuous surfaces, there are a case where the robot's end keeps contacting a surface of the work object after it has passed a discontinuous point and a case where it separates from the work object.