The present invention relates to a method for controlling movement of an articulated robot, i.e. of a robot comprising at least one arm in which a plurality of links are connected to each other by rotatable joints, and rotation of each joint is driven by a motor.
The arm has a proximal end which is mounted on a support, which, in the context of the present description, will be assumed to be immobile, and a distal end to which an end effector such as a gripper, a welding tool, a drill, a machining tool, a grinding tool etc. can be mounted.
In order to define a target pose, i.e. position and orientation, of the end effector completely, six coordinates are required. A convenient way for specifying the pose is by a six-component vector x, three components of which define Cartesian coordinates of a reference point in three-dimensional space, such as the Tool Center Point TCP, and three of which define angles of an axis of the robot extending through the reference point. An alternative way of specifying the pose is by means of rotation angles of the joints of the robot, combined into a vector q. The number of components of the vector q corresponds to the number of axes by which the links of the robot can rotate; it can be higher than 6, in which most poses of the end effector can be realized with a variety of poses of the links.
In most practical applications, regardless of whether the movement of the robot is force controlled or position controlled, what is actually specified, as a function of a distance between the current position and the target position of the reference point, or in function of a target force to be applied to the reference point, is a target speed {dot over (x)}ref of the reference point in Cartesian space. This speed vector {dot over (x)}ref is related to a vector {dot over (q)}ref of target rotational speeds of the joints by
{dot over (x)}ref=J{dot over (q)}ref,
i.e. when {dot over (x)}ref is predetermined, then the corresponding vector of target rotation speeds is
{dot over (q)}ref=J−1{dot over (x)}ref.
High-bandwidth force control may result in high Cartesian acceleration (i.e. rapid changes of {dot over (x)}ref which in turn leads to high joint level accelerations {umlaut over (q)}ref. These accelerations can excite mechanical resonances and result in an unstable behaviour especially in contact situations where the robot is decelerated abruptly by abutting against a rigid obstacle. I.e. when the actual speed of the robot decreases because it is blocked by an obstacle, then the driving torque applied to its joints may increase sharply in the attempt to maintain the target speed in spite of increased resistance.
In an embodiment, the present invention provides a method for controlling movement of a robot comprising a plurality of links connected by rotatably driven joints, the method comprising the steps of: a) defining a target speed vector of a reference point of the robot in Cartesian space; b) determining rotation speeds ({dot over (q)}ref) of the joints which minimize a weighted sum, the weighted sum having for summands i) a discrepancy (∥{dot over (x)}refk−J{dot over (q)}refk∥W
of the target rotation speeds; and c) setting the rotation speeds ({dot over (q)}ref) determined in step (b) as target rotation speeds of the joints.
The present invention will be described in even greater detail below based on the exemplary figures. The invention is not limited to the exemplary embodiments. Other features and advantages of various embodiments of the present invention will become apparent by reading the following detailed description with reference to the attached drawings which illustrate the following:
In an embodiment, the present invention provides a method for controlling movement of a robot in which the risk of destabilisation is reduced even in case of unforeseen contact with an obstacle.
In an embodiment, the present invention provides a method for controlling movement of a robot comprising a plurality of links connected by rotatably driven joints, which comprises the steps of
a) defining a target speed vector of a reference point of the robot in Cartesian space;
b) determining rotation speeds of the joints which minimize a weighted sum, the weighted sum having for summands
c) setting the rotation speeds determined in step (b) as target rotation speeds of the joints.
By taking the of change of the target rotation speeds into account when calculating the weighted sum, the rate of change of the rotation speeds that occurs when the advance of the robot is blocked by an obstacle can be limited, temporarily allowing a higher discrepancy between the speed vectors—and, hence, between the position the robot has actually reached and the position it would have reached if the obstacle had not been hit.
According to a preferred embodiment of the method, the discrepancy is weighted by direction of translation and/or rotation. I.e. there can be one or two directions in three-dimensional space in which a discrepancy is weighted heavily, while in the remaining direction (or directions) a discrepancy is tolerated rather generously.
In particular, it can be appropriate to allow generously discrepancies in the directions parallel to the surface of a workpiece, while controlling rather strictly the position perpendicular to the surface, so that when the end effector hits the surface under an oblique angle, angular accelerations may be reduced by allowing the end effector to glide along the surface, while at the same time avoiding an overshoot of contact force in the direction of the surface normal, which might leave undesired traces on the workpiece surface.
Such a type of control can be particularly appropriate when the end effector is a tool which, when used, would be moved parallel to the surface, such as a machining, grinding or polishing tool.
For other types of tools, it may be preferable to control translation rather strictly, no matter in which direction, and to allow rotation rather generously instead. In that way, movement of a pointed tool such as a drill, a point welding tool or the like, along a workpiece surface—that might produce scratches on the surface if moved along that surface under an excessive force—can be reduced to a minimum.
Further, the rate of change can also to advantage be weighted by joint.
Specifically, a proximal joint has a larger moment of inertia to drive than a distal one, and should therefore have its angular acceleration weighted higher than that of a distal joint. In that way, a distal joint can yield rather easily if the movement of the reference point is blocked by an obstacle, so that the movement of links on the proximal side of that joint can be decelerated gradually.
The discrepancy between the target and actual speed vectors can be obtained as the scalar product of a vector difference between the target speed vector in Cartesian space and a speed vector in Cartesian space calculated from the determined rotation speeds, and said vector difference multiplied by a weighting matrix.
In analogy thereto, the rate of change of the target rotation speeds can be calculated as the scalar product of a vector difference between a vector of the target rotation speeds and the vector of rotation speeds at a previous instant multiplied by a weighting matrix.
In practice, many joints of a robot are not free to rotate indefinitely but have a limited angle range. Whenever such a joint reaches a limit of its angle range, rotation is stopped abruptly, which, just like hitting an obstacle, can cause the robot to oscillate and control thereof to become instable. In order to prevent a joint from reaching an angle limit, approaching it can be penalized by introducing a third summand of the weighted sum which is neutral when the joint is far from a limit of the angle range and is high when the joint is close to and approaching the limit, and/or moving away from the angle limit can be assigned a bonus in that the third summand is low when the joint is close to the limit and moving away from it. Specifically, the neutral value of the third summand can be zero, while the high value is positive and the low value is negative.
In order to prevent the joint reliably from reaching the limit, the high value can be divergent at the limit.
Further features and advantages of the invention will become apparent from the following description of embodiments thereof referring to the appended drawings.
The end effector 4 is a tool of any desired type, such as a gripper, a welding or soldering tool, a drill, a machining tool, a grinding tool etc. In
The electronic controller 2 controls the movement of the robot arm 1, e.g. placing the TCP 7 on a soldering pad at a surface 9 of a workpiece 10. For simplicity, let us assume that coordinates of points where the TCP 7 is to be placed, desired speeds for moving from one such point to the other etc. are defined in a Cartesian coordinate system whose z axis is normal to the surface 9, and whose x and y axes extend in the plane of surface 9.
The controller 2 transforms desired coordinates x and speeds {dot over (x)} in Cartesian space into angles q and rotation speeds {dot over (q)} in joint space using
{dot over (q)}=J−1{dot over (x)}.
When the TCP 7 is moved, its coordinate in the direction of motion may be force-controlled, whereas positions perpendicular to the direction of motion will usually be position controlled. Force-control is implemented using nested control loops. Based on an actual contact force fact to which the TCP 7 is subject and a reference force fref, force controller 11 outputs a target speed {dot over (x)}ref in Cartesian coordinates. This target speed {dot over (x)}ref is transformed into speeds {dot over (q)}ref of the joints 6j by coordinate transformer 12. Conventionally, this transformation would be made using eqn.
{dot over (q)}ref=J−1{dot over (x)}ref.
Speed controller 13 compares the target rotation speed vector {dot over (q)}ref and the vector of actual rotation speeds {dot over (q)}act of the joints and, based on the result of the comparison, increases or decreases the torques τmot of the motors driving the joints 6j so as to minimize the difference between {dot over (q)}ref and {dot over (q)}act.
While the TCP 7 is advancing unimpeded, the actual contact force fact can be assumed to vanish, so that a constantly high target speed {dot over (x)}ref is output by force controller 11. When the TCP 7 unexpectedly hits an obstacle, the contact force fact rises abruptly. A fast and aggressive force controller 11 can then result in fast changes of the Cartesian target speed {dot over (x)}ref which in turn leads to large magnitudes of joint level acceleration in the robot arm 1.
The present invention avoids this problem by the coordinate transformer 12 calculating {dot over (q)}ref not by a mere matrix transformation but instead finding the vector {dot over (q)}refk which minimizes a weighted sum of the form
wherein k denotes a time instant at which coordinates xrefk, qrefk are determined, Ts is the time between instant k and a previous instant k−1 at which coordinates xrefk-1, qrefk-1 have been determined, α, β are arbitrary weighting constants, and ∥V∥w is a generalized absolute value of the vector v:
Wx is a diagonal weighting matrix that allows to emphasize positioning accuracy in specific Cartesian directions. For example, Wx can have the form
if deviations from a target value in x and y directions is to be weighted less than a deviation in z direction. Of course, any other one or more diagonal elements of the matrix might be selected to be smaller than 1. Further, a weighting matrix Wx that weights deviations in an arbitrary plane or direction less than in other directions can be written as
and E is a 3*3 Euler Matrix.
Alternatively, one or more of the 4th to 6th diagonal elements of the diagonal matrix Wx can be smaller than 1, the rest being=1, in order for the position of the TCP 7 to be controlled strictly while allowing deviations of its orientation. As an example, setting the last diagonal element of Wx to 0 results in completely ignoring the orientation of the TCP with respect to the z-axis, which might be useful in drilling applications.
Similarly, Wα is a diagonal weighting matrix that allows to put specific emphasis on minimizing accelerations in selected joints. For instance, if it is assumed that the robot arm has six degrees of rotational freedom, the first two relating to joints 61, 62 between base 3 and a proximal link 51, the next two relating to joints 63, 64 between proximal link 51 and distal link 52, and the last two relating to joints 65, 66 between distal link 52 and end effector 4, then Wα may conveniently be defined as
Wα=diag(1,1,α,α,b,b) (3)
wherein 1>α>b, so that if the movement of the TCP is blocked by an obstacle, the distal joints 65, 66 are rather free to yield, whereas the intermediate joints 63, 64 are controlled more strictly, and the proximal joints 61, 62 most strictly of all.
The vector {dot over (q)}refk which minimizes expression (1) is given by
so according to an embodiment of the invention this is the {dot over (q)}ref output at instant k by the coordinate transformer 12.
If it is assumed that the weighting matrix Wα employed by coordinate transformer 12 is the one of eq. (3), the distal joints of the robot arm 1 are rather free to yield when the movement of the TCP 7 is blocked, e.g. by hitting on the surface 9 of workpiece 10 earlier than expected. Therefore, not all the impulse of the moving robot arm will weigh on TCP 7, possibly causing a dent in surface 10, but, since the position of TCP 7 is controlled strictly, the soldering tool will rotate about the pivotal point formed by the TCP 7 touching the surface 10, as shown in dashed lines in
On the other hand, allowing the distal joints 65, 66 to yield may damage the workpiece surface 10 if the robot arm 1 wields another type of tool, such as e.g. a milling or grinding tool shown in different positions in
When the robot arm 1 is controlled using eq. (4), joint angle limits may be hit as they are not taken into account. To solve this issue, the weighted sum of eq. (1) can be augmented by a third summand as follows
in which case eq. (4) above is replaced by
The term γΨT {dot over (q)}refk penalizes joint level motion towards joint limits. The vector ΨT=[Ψ1(q1), . . . , ΨN(qN)] depends on the actual joint angles qact. The components of the vector ΨT can be defined in various ways. One option is
wherein the exponent n is a small integer 1, 2, . . . . A graph A of Ψi(qi) for n=1 is illustrated in
as shown by curve B in
It should be noted that although according to the above description the coordinate transformer 12 evaluates eq. (4) or (6), this might be done as well in any of the other components of controller 2. Moreover, the concept of finding the joint speed vector {dot over (q)}refk which minimizes the weighted sums of eq. (1) or (5) is applicable also to control loops having a structure different from the one shown in
While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive. It will be understood that changes and modifications may be made by those of ordinary skill within the scope of the following claims. In particular, the present invention covers further embodiments with any combination of features from different embodiments described above and below. Additionally, statements made herein characterizing the invention refer to an embodiment of the invention and not necessarily all embodiments.
The terms used in the claims should be construed to have the broadest reasonable interpretation consistent with the foregoing description. For example, the use of the article “a” or “the” in introducing an element should not be interpreted as being exclusive of a plurality of elements. Likewise, the recitation of “or” should be interpreted as being inclusive, such that the recitation of “A or B” is not exclusive of “A and B,” unless it is clear from the context or the foregoing description that only one of A and B is intended. Further, the recitation of “at least one of A, B and C” should be interpreted as one or more of a group of elements consisting of A, B and C, and should not be interpreted as requiring at least one of each of the listed elements A, B and C, regardless of whether A, B and C are related as categories or otherwise. Moreover, the recitation of “A, B and/or C” or “at least one of A, B or C” should be interpreted as including any singular entity from the listed elements, e.g., A, any subset from the listed elements, e.g., A and B, or the entire list of elements A, B and C.
This application is a continuation of International Patent Application No. PCT/EP2018/071778, filed on Aug. 10, 2018, the entire disclosure of which is hereby incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
5737500 | Seraji | Apr 1998 | A |
10035266 | Kroeger | Jul 2018 | B1 |
20030171847 | Cheng et al. | Sep 2003 | A1 |
20120004775 | Andoh | Jan 2012 | A1 |
Number | Date | Country |
---|---|---|
WO 2011067621 | Jun 2011 | WO |
WO 2014146120 | Sep 2014 | WO |
Number | Date | Country | |
---|---|---|---|
20210162598 A1 | Jun 2021 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/EP2018/071778 | Aug 2018 | US |
Child | 17170911 | US |