A non-transitory computer recording medium storing computer executable instructions for controlling a target by operating a device or a functional part which measures three-dimensional coordinates of the target and by operating a laser scanner or a laser scanning part which obtains three-dimensional point cloud data of the target, the computer executable instructions that, when executed by a computer processor, cause the computer processor to perform operations comprising:
- positioning by operating the device or the functional part and calculating the three-dimensional coordinates;
- obtaining the three-dimensional point cloud data by operating the laser scanner or the laser scanning part;
- calculating a movable range of the target from the three-dimensional coordinates and the three-dimensional point cloud data;
- and
- calculating a position of the target in the calculated movable range.