ROBOT CONTROL SYSTEM

Abstract: A predetermined operation is executed by a robot (10) taught an end position (TCP) of an operation member (13) mounted on its wrist (11). Even when the data on the position of a work (12) sent from a sensor (14) indicates that a grip-­ direction vector (W) of the work (12) is not in parallel with the plane on which it is placed. the angle of rotation is deter­ mined by an operation control unit (15) relying upon a projec­ tion (W¹) of the grip-direction vector and an instruction for correcting the rotation of position of a tool coordinate system (Xt-Yt-Zt) is obtained through a simple operation. so that the rotation of the tool position can be corrected and controlled.

Description: Technical Field This invention relates to a robot control system in which a predetermined task is executed by teaching a robot the position (hereafter referred to as "TCP") of the distal end of a working member (tool) mounted on the wrist of the robot. Background Art When parts are assembled by using an industrial robot, it is necessary for prescribed parts to be repeatedly supplied to a set position at a predetermined timing by a parts feeder which supplies the parts automatically. However, parts delivered in a flow by a conveyor belt or the like cannot always be accurately supplied to the same position every time. Accordingly, an offset for the TCP that has already been taught for the hand must be corrected by reading, via a TV camera or the like, position information relating to the part to be manipulated, and feeding the information into the robot each time. In such cases, in accordance with the prior art, an amount of rotational correction obtained from a sensor such as a camera is calculated in terms of displacement of a rotational angle with regard to three basic axes of a hand vector, and the tool offset at a taught position serving as the origin of the correction is corrected by a G45 preparatory code for a position rotating correction. The position information sent to the robot from the sensor side is data indicative of an angle defined by a workpiece gripping direction vector obtained by data processing on the sensor side, and a predetermined axis, e.g. the Xs axis, of the sensor coordinate system. Meanwhile, the robot calculation control unit stores the sensor coordinates upon converting them into data in the robot coordinate system. Consequently, when a rotational correction for bringing a unit vector (reference vector) in the direction of a predetermined axis, e.g, the Yt axis, of the tool coordinate system into coincidence with a gripping direction vector of the workpiece is performed, which of the X, Y and Z axes of the tool coordinate system the rotational correction will be performed about differs each time a workpiece is supplied. Moreover, control data, stored in the robot, regarding the sensor coordinate system and control data in the tool coordinate system for deciding the feedback data of the robot drive control unit are both processed upon being converted into data indicative of the fundamental coordinate system of the robot. As a result, calculating the amount of rotational correction which brings the reference vector into coincidence with the gripping direction vector is very complicated. FR-A-2 321 373 discloses a parts transfer system in which a movable manipulator in the form of a gripper hand can grasp parts which are to be transferred. A vision system is used to sense the positions of parts. The vision system has a video scanner which, via a mirror, looks down onto a surface on which parts to be grasped by the gripper hand are presented. The data provided by the video scanner is used to calculate the centroid and orientation of a part to be grasped, and the position of the gripper hand is adjusted accordingly, to enable the hand to grasp the part. The present invention has been devised in view of the foregoing points and its object is to provide a robot control system capable of performing a tool position correction by simple processing based on position data received from a sensor. Disclosure of the Invention According to the present invention there is provided a robot control system adapted to execute a task at a predetermined position, where a tool of a robot is to grip a workpiece, by correcting tool position offset on the basis of information relating to a gripping direction vector of the workpiece and on the basis of a tool reference vector, the system comprising:- a sensor, for detecting the position of the workpiece and providing said information indicative of the gripping direction vector of the workpiece, and a calculation control unit for calculating from said information indicative of the gripping direction vector of the workpiece, and from the tool reference vector, an amount of rotational correction necessary for the tool, characterised in that the sensor is arranged on an axis which is or is parallel to the Z-axis of a fixed sensor coordinate system, the X and Y axes of which coordinate system define an X-Y plane which coincides with or is parallel to a surface upon which the workpiece is placed, the sensor having a sensing axis which is or is parallel to the Z-axis of the sensor coordinate system thereby to provide information on the gripping direction vector of the workpiece as projected onto the X-Y plane, and in that the calculation control unit is operable to calculate an amount of rotational correction of the tool around an axis which is or is parallel to the Z-axis (Zs) of the sensor coordinate system from the gripping direction vector of the workpiece as projected onto the X-Y plane utilising also the projection of the tool reference vector onto the X-Y plane. A robot control system according to the present invention is adapted to execute a task at a predetermined position by correcting a tool position offset of a robot based on information indicative of the position of a workpiece. The robot control system has a sensor which, in the sensor coordinate system, is arranged on an axis parallel to the Z-axis of the sensor coordinate system (which parallel axis may be the Z-axis itself) perpendicular to a coordinate plane (X-Y plane) parallel to (or coinciding with) a surface on which the workpiece rests, the coordinate axes of the sensor being fixed, and a calculation control unit for calculating an amount of rotational correction of a tool with regard to the sensor coordinate axes from position information based on a vector indicating the gripping direction of the workpiece sensed by the sensor. If a rotational angle is determined from a projection of the gripping direction vector and the tool is subjected to a rotational correction around an axis parallel to the Z-axis of the sensor coordinate system, perpendicular to the surface on which the workpiece rests, then the tool position offset can be corrected even if the gripping direction vector of the workpiece is not parallel to the surface on which the workpiece rests. Brief Description of the Drawings Fig. 1 is an explanatory view illustrating a rotational correction of a tool vector according to an embodiment of the present invention, and Fig. 2 is a structural explanatory view illustrating an example of a robot system according to the above embodiment. Best Mode for Carrying Out the Invention An embodiment of the present invention will now be described. Discussed first will be the manner in which a tool vector subsequent to a tool rotational correction performed in relation to the Zs axis is expressed in the sensor coordinate system Xs-Ys-Zs shown in Fig. 1. In Fig. 1, , , denote unit vectors along three axes set for a tool at a robot teach point P, s, s, s represent unit vectors along three axes of the sensor coordinate system, and s denotes the origin of the latter coordinate system. Let the components of each of the abovementioned vectors in the fundamental coordinate system (X-Y-Z) (not shown) of the robot be expressed as follows: From among the unit vectors which decide the tool coordinate system at the teach point P, the vector is taken as a reference vector and the components thereof in the sensor coordinate system are expressed as follows: where (Usx, Usy, Usz) = s, and Ux, Uy, Uz are components of the reference vector u expressed in the fundamental coordinate system. These can be calculated from information relating to the teach point P inputted when teaching is performed. If the unit vectors , , in the sensor coordinate system are also transformed into e.g. the fundamental coordinate system and stored in the robot control system memory in advance, the reference vector us expressed in the sensor coordinate system can be obtained from Eq. (2). Next, an angle ϑtch defined by the X-axis vector s and a vector ' obtained by projecting the reference vector s onto the coordinate plane Xs-Ys is obtained as follows: ϑtch = tan⁻¹(Usy/Usx) (3) An incremental correction amount ϑi at the time the tool is subjected to a rotational correction can be determined in accordance with the following equation based on ϑtch and the absolute value ϑabs of a rotational correction amount sensed on the sensor side: ϑi = ϑabs - ϑtch (4) More specifically, the amount of tool position offset is correctly revised by rotating the tool about the Zs axis of the sensor coordinate system through an angle of rotation ϑi. The corrected tool vectors are obtained from where Si = sinϑi, Ci = cos 0i. Substituting Eq. (2) into Eq. (5) and rearranging gives us This expresses the tool vector after it has been corrected so as to be brought into coincidence with a vector obtained by projecting the gripping direction vector of the workpiece onto the X-Y plane. It should be noted that Fig. 2 is a block diagram illustrating an example of a teach/playback-type robot. A robot 10 has a hand 11 on which a tool 13 is mounted for gripping a supplied workpiece 12 at a predetermined position. The workpiece 12 is e.g. a pipe joint supplied to the robot 10 automatically. The gripping direction vector w of the workpiece forms a predetermined angle with the surface on which the workpiece rests. The robot 10 has a fundamental coordinate system X-Y-Z and is connected to a robot control unit 15 having a vision sensor 14 such as an industrial television. The robot control unit 15 has a memory 15a for storing robot command data, a control program memory (ROM) 15b, a processor 15c and a data memory 15d. The processor 15c executes the aforementioned rotational correction processing as well as other processing under the control of the control program. The memory 15a stores robot command data for controlling movement of the hand 11 of robot 10 along a predetermined path and for causing the hand to grip the workpiece 12 at the taught point P. The vision sensor 14, which is connected to the processor 15c, is fixedly arranged in a coordinate system having an X-Y coordinate plane parallel to the surface on which the workpiece 12 rests. When the robot command data contains a preparatory code G45 for positional correction, the vision sensor executes predetermined picture processing and supplies the memory 15d with an input of data relating to a vector ' obtained by projecting the gripping direction vector of the workpiece 12 onto the X-Y plane. The data memory 15 stores the unit vectors along respective axes of the tool coordinate system set for the tool 13. These unit vectors are stored as data in the fundamental coordinate system of the robot 10. In the robot system so constructed, data relating to the gripping direction vector ' of workpiece 12 supplied from the vision sensor 14 to the robot control unit 15 are supplied as data indicative of an angle formed with a predetermined axis of the sensor coordinate system. The corrected tool vector expressed by Eq. (6) is obtained by using the angle data so that command data for the robot 10, namely command values for each drive axis of the hand, may be prepared. With the workpiece 12 in the above-described embodiment, the gripping direction vector w is not necessarily parallel to the plane of the sensor coordinate system. However, in a case where the workpiece is a rectangular parallelepiped, the gripping direction vector will always lie parallel to the surface on which the workpiece rests. In any case, positional deviation of the workpiece placed on the X-Y plane is eliminated by arranging the optic axis of the vision sensor 14 in parallel with the Z axis of the sensor coordinate system. As described in detail above, the amount of tool position offset can be corrected in the above-described embodiment merely by rotating the tool coordinate system about an axis parallel to the Zs axis of the sensor coordinate system at the time a position is taught. This makes it possible for the robot control unit to execute processing simply and, hence, at high speed. In the foregoing embodiment, the control system is described in relation to an operation for gripping a workpiece. However, the invention is not limited to this embodiment but can be applied to robots in which the working member (tool) mounted on the robot wrist can be made to deal with a variety of situations such as arc welding, and to robots which, in connection with the teaching of the tool end position (TCP), can be set to a plurality of workpiece coordinate systems having a fixed relationship to the fundamental coordinate system of the robot. Industrial Applicability According to the present invention, a command for correcting the positional rotation of a tool coordinate system is obtained through simple processing based on position information from a sensor, this being performed in teaching the end position (TCP) of a working member (tool) mounted on the wrist of a robot and executing a predetermined task. As a result, the position of the tool can be rotatively corrected and controlled.

Claims: A robot control system adapted to execute a task at a predetermined position, where a tool (11) of a robot (10) is to grip a workpiece (12), by correcting tool position offset on the basis of information relating to a gripping direction vector (w) of the workpiece (12) and on the basis of a tool reference vector (u), the system comprising, a sensor (14), for detecting the position of the workpiece (12) and providing said information indicative of the gripping direction vector (w) of the workpiece (12), and a calculation control unit (15) for calculating from said information indicative of the gripping direction vector (w) of the workpiece (12), and from the tool reference vector (u), an amount of rotational correction necessary for the tool (11), characterised in that the sensor (14) is arranged on an axis which is or is parallel to the Z-axis (Zs) of a fixed sensor coordinate system, the X and Y axes (Xs, Ys) of which coordinate system define an X-Y plane which coincides with or is parallel to a surface upon which the workpiece (12) is placed, the sensor having a sensing axis which is or is parallel to the Z-axis (Zs) of the sensor coordinate system thereby to provide information on the gripping direction vector of the workpiece projected onto the X-Y plane, and in that the calculation control unit (15) is operable to calculate an amount of rotational correction of the tool (11) around an axis which is or is parallel to the Z-axis (Zs) of the sensor coordinate system from the gripping direction vector of the workpiece (12) as projected onto the X-Y plane utilising also the projection of the tool reference vector onto the X-Y plane.

Inventors: KARAKAMA, TATSUO FANUC UTSUKIRYOU, KISHI, HAJIMU HINOHIRAYAMADAI-JUTAKU 1104, SAKAKIBARA, SHINSUKE MEZONIZUMI 101
Applicants: FANUC LTD.
Application year: 1986
Main classification: G05B19
IPC codes: B25J9, G05B19, B25J13