1. Field of the Invention
The present invention relates to a method for controlling a trajectory of a robot when a plurality of robots are operated by a cooperative control. For example, in the case of a welding operation by a cooperative control, the present invention relates to a method for obtaining the desired trajectories of a robot having a welding torch and a robot holding a workpiece to be welded.
2. Description of the Related Art
Recently, an operation which cannot be carried out by one robot is carried out by a “cooperative control” in which a plurality of robots are controlled such that the plurality of robots cooperate. Typically, by the cooperative control of a robot holding a welding torch and a robot holding a workpiece to be welded, welding may be carried along a predetermined trajectory or a welding line on the workpiece. For such a cooperative control, in prior art as disclosed in Japanese Patent Publication No. 3098618, a method for setting a reference point relative to a workpiece gripped by a robot is proposed. In the method, the position and the orientation of a work tool attached to another robot, relative to the reference point, is determined.
In other words, in the cooperative control as shown in
Also, Japanese Patent Publication No. 2691985 discloses a method for controlling a robot 6 holding a workpiece 4. In the method, as shown in
In addition, in relation to a fifth embodiment described below, Japanese Patent Publication No. 3098618 discloses a communication method for a plurality of control devices for controlling a plurality of robots.
However, the above prior art has problems as described below.
First, in the proposed control method described in Japanese Patent Publication No. 3098618, the work tool may be desirably positioned and oriented at each teaching point. However, in a playback operation, it is very difficult to desirably maintain the orientation of the work tool relative to the ground. This is because the interpolative orientation of the work tool between each of the teaching points is determined such that the interpolative orientation follows the interpolative position and the interpolative orientation of the robot holding the workpiece between each of the teaching points.
a to 3c illustrate the above state. In particular,
Needless to say, as the large number of teaching points may cause a problem regarding work efficiency, it is not practical to considerably increase the number of teaching points. It is important, in welding, to maintain the orientation of the work tool relative to the ground, in order to carry out welding with high quality. However, the control method described in Japanese Patent Publication No. 3098618 does not sufficiently satisfy this requirement.
In addition, in the control method described in Japanese Patent Publication No. 2691985, it is possible to move a coordinate system of the work tool along a desired trajectory on a coordinate system of the workpiece, while the orientation of the work tool relative to the ground is maintained. However, as the work tool is fixed to the position and the orientation within a limited range, the method may only be used for processing a workpiece with a simple shape.
Accordingly, in relation to the above problems of the prior art, an object of the present invention is to provide a method for controlling the trajectory of a robot, by which the robot having a work tool may be desirably positioned and orientated even when an interpolative operation is carried out, during a cooperative control of a plurality of robot.
The present invention employs, different from the prior art, a method for controlling a trajectory of a robot when a plurality of robots are operated by cooperative control, the plurality of robots including a leading robot having a work tool and at least one tracking robot holding a workpiece to be welded by the work tool, the method comprising controlling the position and the orientation of the tracking robot corresponding to the change of the position and the orientation of the leading robot such that the position and the orientation of a first tool coordinate system set on the leading robot moves along a desired trajectory on a second tool coordinate system set on the tracking robot, so as to resolve the above problems.
By means of the method, it is possible to carry out teaching such that the position and the orientation of the work tool are desirably determined even on an interpolative point between the adjacent teaching points. In this specification, “a tool coordinate system set on a leading robot” or a first tool coordinate system is a coordinate system representing the position and the orientation of a work tool attached to the leading robot and includes the origin and axes fixed to the work tool. As is known, the origin is referred as a tool center point (TCP) which is not necessarily positioned on the work tool. The TCP may include the direction, the TCP indicates the position and the orientation of the first tool coordinate system (i.e., the position and the orientation of the work tool attached to the leading robot). In the description below, the first coordinate system is also referred as “a coordinate system set on a work tool”.
On the other hand, “a tool coordinate system set on a tracking robot” of a second tool coordinate system is a coordinate system representing the position and the orientation of a workpiece (considered as a “tool” in normal robotology) gripped by the tracking robot and includes the origin and axes fixed to the workpiece. Similarly to the first coordinate system set on the leading robot, the origin is referred as a TCP. Assuming that the TCP includes the direction, TCP indicates the position and the orientation of the second tool coordinate system (i.e., the position and the orientation of the workpiece gripped by the tracking robot). In the below description, the second coordinate system is also referred as “a coordinate system set on a workpiece”.
Concretely, according to the present invention, there is provided a method for controlling a trajectory of a robot when a plurality of robots are operated by a cooperative control, the plurality of robots including a leading robot having a work tool and at least one tracking robot holding a workpiece to be processed by the work tool, the method comprising: controlling the position and the orientation of the tracking robot corresponding to the change of the position and the orientation of the leading robot such that the position and the orientation of a first tool coordinate system set on the leading robot moves along a desired trajectory on a second tool coordinate system set on the tracking robot.
The method may comprise: preparing a plurality of teaching points by teaching an operating position of each of the leading robot and the tracking robot; calculating the interpolative position and the interpolative orientation of the first tool coordinate system of the leading robot by interpolating the position and the orientation of the first coordinate system at the teaching points of the leading robot at every interpolative time during a playback operation; determining the relative position and the relative orientation of the first tool coordinate system of the leading robot to the second tool coordinate system of the tracking robot at every interpolative time by interpolating the relative position and the relative orientation of the first tool coordinate system at the teaching point; calculating the interpolative position and the interpolative orientation of the second tool coordinate system of the tracking robot based on the interpolative position and the interpolative orientation of the first tool coordinate system of the leading robot and the relative position and the relative orientation of the first tool coordinate system of the leading robot at every interpolative time; and controlling each joint of the leading robot and the tracking robot such that the positions and the orientations of the first and second coordinate systems are maintained.
The method may comprise controlling the position and the orientation of the tracking robot such that the relative position and the relative orientation of the tracking robot, to the leading robot, are maintained when the position and the orientation of the leading robot is changed by manual feeding.
The method may comprise manually feeding the tracking robot such that the second tool coordinate system is desirably translated and rotated on the first tool coordinate system.
The method may comprise cooperatively operating a plurality of tracking robots relative to the motion of one leading robot.
In the method, all of the leading robot and the tracking robot may be cooperatively controlled by using one control device. Alternatively, the leading robot and the tracking robot may be cooperatively controlled by using a plurality of control devices. In the latter case, the cooperative control may be carried out by communicating between each of the control devices.
A technique for smoothing by filtering, in relation to trajectory control by cooperation, may be used. For example, the method may comprise: filtering a time-series of data representing the interpolative position and the interpolative orientation of the first tool cooperative system of the leading robot; calculating the interpolative position and the interpolative orientation of the second tool coordinate system of the tracking robot based on the time-series of data before the filtering and the relative position and the relative orientation of the first coordinate system at every interpolative time; and filtering a time-series of data representing the interpolative position and the interpolative orientation of the second tool coordinate system of the tracking robot after calculating the interpolative position and the interpolative orientation of the second tool coordinate system.
Alternatively, the method may comprise: filtering a time-series of data representing the interpolative position and the interpolative orientation of the first tool cooperative system of the leading robot; filtering a time-series of data representing the relative position and the relative orientation of the first tool coordinate system of the leading robot at every interpolative time; and calculating the interpolative position and the interpolative orientation of the second tool coordinate system of the tracking robot based on the interpolative position and the interpolative orientation and the relative position and the relative orientation of the first tool coordinate system of the leading robot after the filtering.
The above and other objects, features and advantages of the present invention will be made more apparent by the following description of the preferred embodiments thereof, with reference to the accompanying drawings, wherein:
a-3c are diagrams for explaining difficulties in maintaining the orientation of the work tool relative to the ground in cooperative control of the prior art, representing conditions in which the work tool is positioned at a teaching point 8, at a certain interpolative point between the teaching point 8 and a teaching point 9, and at the teaching point 9, respectively;
a and 8b are diagrams for explaining the teaching operation, representing a k-th teaching point and a k+1-th teaching point, respectively;
Hereinafter, with reference to FIGS. 4 to 17, some embodiments according to the invention are described.
Although a work tool (also called merely “a tool”) attached to a leading robot is described as a welding torch (also called merely “a torch”) for arc welding, the work tool may be another work tool corresponding to a kind of an operation, such as a laser machining head or a sealing gun.
First,
As coordinate systems for controlling the trajectory of the robot, some coordinate systems are defined as below: a first referential coordinate system 13 fixed to a base of the robot 1, indicating a reference point of the robot 1 having the tool 2, uniquely determined by a location of the robot 1; a second referential coordinate system 14 fixed to a base of the robot 6, indicating a reference point of the robot 6 gripping the workpiece 4, uniquely determined by a location of the robot 6; a first coordinate system 3 set on the tool 2 and moving with the tool 2, indicating the position and the orientation of TCP of the robot 1; and a second coordinate system 5 set on the workpiece 4 and moving with the workpiece 4, indicating the position and the orientation of TCP of the robot 6. Further, a coordinate system 10 is a world coordinate system fixed to the ground.
The robot control device 11 includes a central processing unit (CPU) 15. Via a bus 20, a memory 16 having a ROM, a memory 17 having a RAM, a non-volatile memory 18, an I/O unit 19 for external equipment, an interface 21 for the teaching panel 12, and a common memory 22 of a servo controller 23 and the CPU 15 are connected to the CPU 15. The ROM 16 stores a program for controlling a whole system including the control device 11. The RAM 17 is used for temporarily storing data for a process carried out by the CPU 15. The non-volatile memory 18 stores program data of the robots 1 and 6, including a motion statement described below, and various parameters regarding the motion of each part of the system.
The servo controller 23 obtains information on the position of each motor 26 attached to a joint of each robot arm 27 of the robot mechanism 25 so as to control the motion of each motor 26 via each servo amplifier 24, based on a motion command from the CPU 15 and feedback data from each sensor 28.
Next, according to a flowchart as shown in
In next step S103, the relation between a leading robot and a tracking robot, both cooperatively controlled, are determined. As described above, according to the feature of the invention, the robot 1 having the tool 2 is a leading robot and the robot 6 gripping the workpiece 4 is a tracking robot, in cooperative motion. The determined relation is stored is the non-volatile memory 18 in
Such a calibration itself is a known technique. For example, as in the prior art, a rod for calibration is attached to a wrist of each of the two robots to be calibrated. Then, the end of the rod is arranged to coincide with the TCP of each robot. After that, the end of the rod is aligned with arbitrary three points not positioned on one straight line (i.e., forming a triangle), so as to calculate each position of the robots on each referential coordinate system.
Then, the position and the orientation of the first referential coordinate system 13 of the robot 1 relative to the second referential coordinate system 14 of the robot 6 may be calculated, based on the three-position data on the first referential coordinate system 13 of the leading robot 1 and the three-position data on the second referential coordinate system 14 of the tracking robot 6. The calculated result is stored in the non-volatile memory 18 as a homogeneous transformation matrix [BASE_XF]. Matrix elements of the matrix [BASE_XF] may be represented by an equation (1). In the equation, elements lx-lz each having a superscript “base_xf” represent the relative position of the first referential coordinate system 13 to the second referential coordinate system 14. Further, elements nx-nz, ox-oz and ax-az each having a superscript “base_xf” represent the relative orientation of the first referential coordinate system 13 to the second referential coordinate system 14.
Next, a procedure of a teaching operation is described according to a flowchart shown in
First, in step S201, a name of a motion program to be prepared is determined. The determined name is stored in the non-volatile memory 18 in
In next step S204, relative to the tool 2 positioned in step S203, the robot 6 is moved and positioned by a manual feed using the teaching panel 12 such that the workpiece 4 is desirably positioned and orientated. In step S205, it is judged whether the robots 1 and 6 are positioned at desirable positions. If yes, the procedure progresses to step S206. Otherwise, the procedure returns to step S203 so as to correct the positions of the robots. In step S206, a k-th teaching point (k=1, 2 . . . ) is stored.
Data stored in the non-volatile memory 18 are explained below, with reference to
First, by storing the k-th teaching point 29, the position and the orientation of the first tool coordinate system 3 at the k-th teaching point relative to the first referential coordinate system 13, represented by a homogeneous transformation matrix [RL(k)], may be calculated using an equation (2) below. In the equation, elements l(k)x-l(k)z each having a superscript “RL” represent the position of the first tool coordinate system 3 on the first referential coordinate system 13. Further, elements n(k)x-n(k)z, o(k)x-o(k)z and a(k)x-a(k)z each having a superscript “RL” represent the orientation of the first tool coordinate system 3 on the first referential coordinate system 13. Needless to say, these elements may be calculated from current position data of the robot 1.
Next, the position and the orientation of the second tool coordinate system 5 at the k-th teaching point relative to the second referential coordinate system 14, represented by a homogeneous transformation matrix [RF(k)], may be calculated using an equation (3) below. Each element in the equation (3) may also be calculated from current position data of the robot 6, similarly to the case of the equation (2).
Using the equations (1)-(3), the position and the orientation of the first tool coordinate system 3 at the k-th teaching point relative to the second tool coordinate system 5, represented by a homogeneous transformation matrix [T(k)], may be calculated by an equation (4) below. Further, a right-hand side of the equation (4) may be represented by an equation (5).
In such a way, by storing the k-th teaching point in step S206, data of the position and the orientation of the leading robot and data of the relative positions and the relative orientations of the leading robot and the tracking robot are stored in the non-volatile memory 18, corresponding to an index “k” of the teaching point in an operating program. In the next step S207, the mode and the speed of the motion of the robots toward the teaching point are determined. In this case, the mode includes data indicating whether the robots at the teaching point must be operated by cooperative control. Data of the mode and the speed are also stored in the non-volatile memory 18, corresponding to the index “k”.
Next, in step S208, it is judged whether a new teaching point must be added. If yes, the steps from step S203 are repeated in relation to a teaching point having an index “k+1”. Therefore, the matrixes [RL(k)], [RF(k)] and [T(k)] corresponding to the above equations (2), (3) and (5) may be calculated in relation to a k+1-th teaching point 30 in
The above steps from S203 to S208 are repeated by the number of required teaching points. When it is judged that adding of a new teaching point is not necessary in step S208, the teaching operation is terminated.
Next, a procedure of a playback operation is described according to a flowchart shown in
In next step S303, if there is no program line to be read, the playback of the program is terminated, otherwise, the procedure progresses to S304. In step S304, it is judged whether the read program line includes an operating statement. If yes, the procedure progresses to S206. Otherwise, the procedure progresses to S305 for carrying out logic process and returns to step S302 for reading a next program line.
A method for planning a path carried out in step S306 is described using a flowchart as shown in
Next, in step S402, the moving time of the leading robot is calculated by dividing the distance calculated in step S401 by the programmed speed of the motion. The programmed speed corresponds to the commanded speed of the motion of the leading robot stored during the above teaching operation (or in step S207 of
When the operating statement includes cooperative motion, a targeted teaching position of the tracking robot is stored as a relative position to the leading robot. Therefore, in step S404, the targeted teaching position of the tracking robot may be calculated by using the targeted teaching position of the leading robot and the relative position of the tracking robot to the leading robot. The above equation (4) may be used for calculating the targeted teaching position of the tracking robot.
When the operating statement does not include cooperative motion, step S404 is not necessary, because a targeted teaching position of a second robot is stored.
In steps S405 and S406, the distance of movement and the moving time of the tracking robot are calculated, as in the leading robot. In other words, the distance of movement of the tracking robot is calculated by using a targeted teaching position and a starting position (or a current position) of the tracking robot and, then, the moving time of the tracking robot is calculated by dividing the calculated distance by the programmed speed of the motion. When the operating statement does not include the cooperative motion, steps S407 and S408 are executed instead of steps S405 and S406. However, the method of calculation of steps S407 and S408 may be the same as that of steps S405 and S406.
At this point, in order to synchronize the two robots, the process for equalizing the moving time of one robot with that of the other robot is carried out. In step S409, when the moving time of the two robots are the same, the moving time is the final moving time. When the moving time of the robots are different form each other, the longer one is determined as the final moving time in step S410. In step S411 at the end of the path planning, the number of interpolative points of the motion is calculated by dividing the determined moving time by a period of calculation time (or a unit time for the interpolative motion normally set to a several milliseconds; called “ITP”). The above is a method for executing the path planning.
Next, the procedure is returned to the playback operation of the flowchart as shown in
The detail of the process of the step S309 is described with reference to a flowchart as shown in
Next, in step S502, it is judged whether the current motion is the cooperative motion. If yes, data of the relative positions of the leading and tracking robots interpolated as in step S501 is calculated in step S503. Otherwise, step S503 is not necessary. Finally, in step S504, data of the interpolative position of the tracking robot is calculated by using the interpolative position data and the interpolated relative position data of the leading robot. The interpolative position data is outputted in a time-series manner at every the calculation period (ITP). At this point, the trajectory of the two robots may be smoothed by filtering (or smoothing) the time-series data and sending the data to the servo controller.
In the present invention, first and second filtering methods are used as the above filtering process. First, when the first filtering method is used, the filtering is applied to the calculated interpolative position data of the leading and tracking robots in step S505.
On the other hand, the second filtering method is described in a flowchart as shown in
After the interpolative motion, in step S310 of
The procedure from step S309 to step S312 is carried out within one calculation period. The procedure is repeated by the number of the interpolative points and the interpolative motion regarding the program line of the motion program is terminated. After that, the procedure returns to step S302 so as to read out a next program line of the program. The procedure from step S302 to step S312 is repeated until the last program line of the program is read out. When the last program line is read out, the playback of the program is terminated.
The first embodiment of the invention is described above. Hereinafter, second to fifth embodiments are explained. In this connection, the same numeral as the first embodiment is added to the same component of the second to fifth embodiments. Further, common matter is not repeated.
In the second embodiment relates to the motion by manual feeding. As shown in
Corresponding to such a manual feed, the second coordinate system 5 set on the workpiece 4 gripped by the tracking robot 6 may be controlled such that the position and the orientation of the second coordinate system 5 is maintained relative to the first coordinate system 3 set on the tool 2. The control method in this embodiment is basically the same as the playback operation of the program, except that the command for moving the leading robot 1 is based on a command from the teaching panel 12, not on the teaching program. Therefore, the procedure in the second embodiment may be indicated by a flowchart as shown in
In case of the manual feed, the robot is activated by pushing a manual feed button on the teaching panel 12. In step S701, it is judged whether the button on the teaching panel is pushed. If yes, the path planning is step S702 is carried out, corresponding to the pushing time of the button and the direction appointed by the manual feed. The interpolative motion in step S705 is carried out such that the relative position data calculated in step S503 in
In the third embodiment of the invention, as shown in
The fourth embodiment of the invention includes, as shown in
Finally, the fifth embodiment of the invention includes a plurality of control devices 11 for controlling the leading and tracking robots 1 and 6, as shown in
According to the method for controlling the trajectory of a robot, in relation to the leading robot having a work tool and the tracking robot gripping the workpiece, the cooperative control may be carried out in which the work tool may move along a desired trajectory on the coordinate system set on the workpiece, while the position and the orientation of the work tool may be desirably controlled at every calculation period for the interpolative motion.
Further, the invention has remarkable features as shown below:
(1) When the invention is applied to a welding operation, the position and the orientation of a welding torch is desirably adjusted, during a teaching operation and without a difficulty, whereby the quality of the welding may be raised.
(2) According to the invention, the relative positions and the relative orientations of the coordinate systems set on the work tool and the workpiece are calculated in every calculation period for the interpolative motion and the relative positions and the relative orientations may be desirably controlled in any time during operation.
(3) According to the invention, the leading robot may be moved by a manual feed, while the relative positions and the relative orientations of the coordinate systems set on the work tool and the workpiece are maintained. Also, the coordinate system set on the workpiece may be desirably translated and rotated on the coordinate system set on the tool. Therefore, the operability of the manual feed for operating a plurality of robots may be raised.
(4) By follow-up control of a plurality of tracking robots and a leading robot, various operations may be carried out.
(5) One or more control devices may be used for controlling each robot in the cooperative operation. When one control device is used, the cost of a whole system may be reduced. When a plurality of control devices are used, on the other hand, existing independent control devices may be converted into the control devices of the cooperative control system of the invention.
While the invention has been described with reference to specific embodiments chosen for the purpose of illustration, it should be apparent that numerous modifications could be made thereto, by one skilled in the art, without departing from the basic concept and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2004-285344 | Sep 2004 | JP | national |