BACKGROUND OF THE INVENTION
1. Field of the Invention
The field of this invention relates to control systems for robotic manipulators and more particularly relates to adaptive force and position controllers combined in a hydrid control system.
2. Background of the Invention
Hybrid control systems, i.e., those systems which together supply signals to control the position of, and force exerted by, a robotic manipulator simultaneously are known. Such systems are required because most manipulators are operated in the presence of environmental constraints, and certain degrees-of-freedom are lost for motion due to the environmental constraints. For example, when the manipulator makes contact with the environment, the contact forces must be controlled in the constraint directions, while the positions are controlled simultaneously in the free directions.
The problem of manipulator control in a constrained environment has been investigated by several researchers. See, for example D. E. Whitney, "Historical Perspective and State of the Art in Robot Force Control," Proc. IEEE Intern. Conf. on Robotics and Automation, pp. 262-268, St. Louis, MO, 1985. At present, three major conceptual approaches exist for simultaneous position and force control. Paul and Shimano (R. P. Paul and B. Shimano, "Compliance and Control," Proc. Joint Aut. Control Conf., pp. 694-699, San Francisco, CA, 1976) suggest a method which uses certain joints for position control while the remaining joints are used for force control. Salisbury (J. K. Salisbury, "Active Stiffness Control of a Manipulator in Cartesian Coordinates," Proc. IEEE Conf. on Decision and Control, pp. 95-100, Albuquerque, NM, 1980) puts forward a technique for controlling the end-effector stiffness characteristics in the Cartesian space. Raibert and Craig (M. H. Raibert and J. J. Craig, "Hybrid Position/Force Control of Manipulators," ASME J. Dyn Systems, Measurement and Control, Vol. 102, pp. 126- 133, 1981) proposed a conceptual architecture, based on the analysis of Mason for "hydrid control" (M. T. Mason, "Compliance and Force Control for Computer Controlled Manipulators," IEEE Trans. Systems, Man and Cybernetics, SMC11(6), pp. 418-432, 1981). Hybrid control allows forces to be controlled in the constraint directions by a force controller, while simultaneously controlling positions in the free direction by a position controller. Raibert and Craig, however, do not prescribe a general and systematic method for the design of position and force controllers. Nevertheless, hybrid control has gained considerable popularity over the other two alternatives for simultaneous position and force control. Hybrid control has been used extensively in the literature. See, for example, H. Zhang and R. P. Paul, "Hybrid Control of Robot Manipulators," Proc. IEEE Intern. Conf. on Robotics and Automation, pp. 602-607, St. Louis, MO, 1985; H. West and H. Asada, "A Method for the Design of Hybrid Position/Force Controllers for Manipulators Constrained by Contact with the Environment," Proc. IEEE Intern. Conf. on Robotics and Automation, pp. 251-259, St. Louis, MO, 1985; P. G. Backes, G. G. Leininger and C. H. Chung, "Real-Time Cartesian Coordinate Hybrid Control of a PUMA 560 Manipulator," Proc. IEEE Intern. Conf. on Robotics and Automation, pp. 608-613, St. Louis, MO, 1985; P. G. Backes, G. G. Leininger and C. H. Chung, "Joint Self-Tuning with Cartesian Setpoints," ASME J. Dyn. Systems, Measurement and Control, Vol 108, pp. 146-150, 1986; O. Khatib and J. Burdick, "Motion and Force Control of Robot Manipulators," Proc. IEEE Intern. Conf. on Robotics and Automation, pp. 1381-1386, San Francisco, CA, 1986; T. Yoshikawa, "Dynamic Hybrid Position/Force Control of Robot Manipulators," Proc. IEEE Intern. Conf. on Robotics and Automation, pp. 1393-1398, San Francisco, CA, 1986; A. J. Koivo, "Force-Position-Velocity Control with Self-Tuning for Robotic Manipulators," Proc. IEEE Intern. Conf. on Robotics and Automation, pp. 1563-1568, San Francisco, CA, 1986; C. C. Nguyen, F. J. Pooran and T. Premack, "Control of Robot Manipulator Compliance," Proc. Intern. Symp. on Robot Manipulators, Albuquerque, NM, 1986; O. Khatib, "Dynamic Control of Manipulators in Operational Space," Proc. 6th IFToMM Congress on Theory of Machines and Mechanisms, pp. 1128-1131, New Delhi, India, 1983 (Whiley, New Delhi); S. D. Eppinger and W. P. Seering, "On Dynamic Models of Robot Force Control," Proc. IEEE Intern. Conf. on Robotics and Automation, pp. 29-34, San Francisco, CA 1986; and J. W. Gilbart, R. V. Monopoli and C. F. Price, "Improved Convergence and Increased Flexibility in the Design of Model Reference Adaptive Control Systems," Proc. IEEE Conf. on Decision and Control, pp. IV 3.1-3.10, Austin, TX, 1970.
Position sensors and force sensors are well known and actually measure the position and force at a controlled end effector. The end effector behavior, whether position alone, or position and force, results from voltages applied to motors that run the joints in a robotic arm. In Raibert and Craig, the hybrid control system requires coordinate transformations of the measurements to develop a feedback term, which through very extensive inverse Jacobian computations, controls the motors in the joints of the robotic arm by independent servo control loops. Such an approach requires knowledge of those motors parameters and other robotic arm parameter values, as well. Furthermore, independent servo control loops, as suggested by Raibert and Craig, do not accommodate cross coupling of position and force.
This invention, in distinction from Raibert and Craig, is a truly adaptive controller for force and position. Since the adaptive controller senses force and position in Cartesian space and formulates driving voltages which achieve the Cartesian force and position, advance knowledge of the robotic arm, joint motor parameter and environment values is not necessary. A highly stable and adaptive real-time controller is achieved by this invention.
SUMMARY OF THE INVENTION
The present invention discloses systematic methods and apparatus for the design of adaptive force and position controllers within a hybrid control architecture. The adaptive force controller achieves tracking of desired force setpoints, and the adaptive position controller accomplishes tracking of desired position trajectories. Force and position controller gains are varied by adaptation laws and the controllers are computationally fast and suitable for on-line implementation with high sampling rates. The novel adaptive controller of this invention comprises adaptive feedback and feedforward controllers. These controllers are capable of compensating for dynamic cross-couplings that exist between position and force control loops. The adaptive controllers do not require knowledge of the complex dynamic model or parameter values of the manipulator or the environment. The force and position controllers are linear and stable and generate real-time signals which vary and compensate for system non-linearities in order to achieve a desired position/force response.
There are certain key differences between the invention's approach and the conventional hybrid control approach of Raibert and Craig. Firstly, in the present invention, the force or position control problems are formulated in the Cartesian space with the end-effector Cartesian forces as the manipulated variables; whereas in Raibert and Craig, the problems are formulated in the joint space. The invention's formulation results in computational improvement since inverse Jacobians are not needed in the controllers. Secondly, the invention operates on the measured variables so as to produce the position and force variables that need to be controlled; whereas in Raibert and Craig, a selection matrix and its complement are used after formation of tracking errors.
An additionally attractive feature of the adaptive controllers of this invention is an ability to compensate for dynamic cross-couplings that exist between the position and force control loops in the hybrid control architecture. Furthermore, the adaptive force and position controllers have "learning capabilities" to cope with unpredictable changes in the manipulator or environment parameters such as environment or robotic arm stiffness. This is due to the fact that the controller gains are adapted rapidly on the basis of the manipulator's Cartesian space performance. Low computational requirements make the control loops in accordance with the principles of this invention suitable for implementation in on-line hydrid control with high sampling rates.
In short, the present invention is more straightforward and appealing than any known conventional approach.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 depicts a block diagram of an improved hybrid control architecture in keeping with this invention;
FIG. 2 is a simplified dynamic model of a robotic arm and environment which is useful in promoting a clearer understanding of certain aspects relevant to the invention;
FIG. 3 is a simplified block diagram of a controller for performing adaptive force control in accordance with the invention;
FIG. 4 is a simplified block diagram of a controller for performing adaptive position control in accordance with the invention;
FIG. 5 is a block diagram of a basic module which is repeated as necessary for implementation of the controller functions of adaptive force and position control in accordance with this invention;
FIG. 6 is a two-link planar manipulator, end effector and reaction surface useful in understanding an illustrative example of the invention;
FIG. 7 is an embodiment of the invention which included simulation by a computer operation;
FIG. 8 includes FIGS. 8a and 8b which respectively reflect an evaluation of the invention for responses to contact force and position under adaptive control;
FIG. 9 includes FIGS. 9a and 9b and represents an evaluation of the performance of the controller of the invention;
FIG. 10 includes FIGS. 10a and 10b and represent curves useful in demonstrating the invention's performance under stiffness variation;
FIG. 11 includes FIGS. 11a and 11b which represent curves useful in demonstrating the invention's performance when subjected to movement of a reaction surface away from an end effector; and
FIG. 12 includes FIGS. 12a and 12b which include curves useful in demonstrating the invention's performance when the reaction surface moves towards and against an end effector; and
FIG. 13 includes FIGS. 13a and 13b and represents an alternate embodiment of the invention.
DETAILED DESCRIPTION OF THE DRAWING
It is believed helpful to review the description of the drawings of FIG. 1 and FIG. 6 in conjunction with a review of the problem of controlling force and position of an end effector.
A robot manipulator such as manipulator 600, FIG. 6, performs a number of different tasks in a Cartesian space {X}. Each task, in general, involves motion of the manipulator including its end-effector 605, FIG. 6, in certain directions; and, simultaneously, exertion of force by the end-effector 605 on the environment 610, or an object in the environment 610, in the remaining directions. See, for example, M. T. Mason as noted earlier herein.
The directions of motion and the amount of force depend on the nature of the particular task to be performed and are reflected in the task descriptor 125 in the hybrid control system 100 shown in FIG. 1. The task descriptor 125 also contains the transformations required to map the measurements .theta. and P.sub.s of joint encoders and force/torque sensors into position and force variables in the constraint frame defined with respect to the task geometry. See, for example, Raibert and Craig as noted earlier herein. Note that the desired force and position trajectories are also specified in the constraint frame. As used herein, "position" implies position and orientation and "force" implies force and torque.
For any given task, the n-dimensional Cartesian space {X} can be decomposed into two orthogonal l- and m-dimensional subspaces {Y} and {Z}, where n=l+m. The "position subspace" {Y} contains the l directions (i.e., degrees-of-freedom) in which the manipulator end-effector is free to move, and along which, the end-effector position is to be controlled. The "force subspace" {Z} contains the remaining m directions in which the manipulator end-effector is constrained by, and interacts with, the environment and along which the contact force is to be controlled.
In the hybrid force/position control problem solved by this invention, we consider the "virtual" Cartesian force F acting on the end-effector as the manipulated variable and the position or force of the end-effector as the controlled variables. See, for example, O. Khatib and J. Burdick as noted earlier herein.
The hydrid control architecture is based on two controllers as shown in FIG. 1; namely, the position controller 110 which operates in {Y} and the force controller 120 which acts in {Z}. The position controller 110 generates the Cartesian end-effector force F.sub.y required to cause the end-effector motion to track a desired position trajectory in {Y}. The force controller 120 produces the Cartesian end-effector force F.sub.z needed to ensure that the end-effector force follows a desired force setpoint, or command, in {Z}. Since it is not possible to physically apply Cartesian forces directly to the end-effector, the equivalent joint torques needed to effectively cause these forces are computed and implemented. The required joint torques are obtained from the Cartesian forces by means of the Jacobian matrix, J(.theta.), 130 of 100, where .theta. is the joint angle vector.
In summary then, in FIG. 1, assume that it is desired to apply a constant force of a given amount simultaneous with desired movement of an end effector. The commands for this operation are issued on leads 106 and 107 from the position/force trajectory generator 105. The desired position or reference is signal R on lead 106 into position controller 110. The other output from generator 105, P.sub.r, on lead 107 is the desired force signal.
At the end effector, well-known devices measure the actual position Y and the actual force P, and signals Y and P are fed back over leads 108 and 109 to position and force controllers 110 and 120, respectively. The position controller 110 compares the desired position R and the actual position Y and derives an error, or control signal, F.sub.y which is output to the matrix 130. The force controller 120 does likewise for the desired and actual forces, P.sub.r and P, and an error or control signal F.sub.z is supplied to matrix 130.
The adaptive controllers of this invention may be thought of as generating the components which are applied directly to the end effector to move it in Cartesian space. Since it cannot be done directly, the matrix 130 transforms the control inputs F.sub.y and F.sub.z into signals which are applied to motors at joints of the robotic arm that will result in the desired position and force vectors. The transformaton by a Jacobian matrix is well known in this art and requires no further description. The output, T, from the maxtrix 130 to manipulator 140 results in joint position shown as .theta. into task descriptor 125. In a similar manner the force of the manipulator 140 results in a signal P.sub.s into task descriptor 125.
We shall now address the problems of force and position control separately in Sections 1 and 2 and then integrate the results in Section 3.
1. FORCE CONTROLLER
In this section, a simple dynamic model for a force controller in the subspace {Z} is described and adaptive force control in accordance with the invention is described.
1.1 Dynamic Force Model
The full dynamic model of an end-effector plus force/torque sensor in contact with the environment is complex. See, for example, Eppinger and Seering as noted earlier herein. However, the dynamic behavior of this system can be modeled approximately by a well known mass-spring-damper 200 in each degree-of-freedom as shown in FIG. 2 and described by the differential equation
Generalizing this simple model to the m-dimensional force subspace {Z}, the dynamic behavior of the system in {Z} can be expressed by the differential equation
where Z(t) is the m.times.1 end-effector position/orientation vector, M.sub.o is the symmetric positive/definite m.times.m generalized mass matrix, D.sub.o is the m.times.m generalized damping matrix, K.sub.e is the diagonal m.times.m generalized stiffness matrix and F.sub.z is the m.times.l force vector applied to the end-effector in the force subspace {Z}. The elements of K.sub.e are the "equivalent" translational (force) and rotational (torque) coefficients of elasticity (stiffness) of the system in various directions in {Z}. The equivalent stiffness k.sub.e of the force/torque sensor with stiffness k.sub.sen and the environment with stiffness k.sub.env is given by
By an appropriate choice of the {Z} subspace origin, the m.times.1 force/torque vector P(t) exerted by the end-effector on the environment is related to Z(t) by the generalization of Hooke's law as
From equations (2) and (3), we obtain
where A=M.sub.o K.sub.e.sup.-1 and B=D.sub.o K.sub.e.sup.-1 are m.times.m matrices. Equation (4) gives a simple dynamic model of the system in the force subspace {Z}.
Since the manipulator dynamics are highly nonlinear, the matrices A and B in equation (4) are dependent on the end-effector Cartesian position and velocity vectors X and X and also on the system parameters such as the equivalent stiffness and the payload mass, which are represented by the parameter vector p. Furthermore, due to internal cross-coupling of the manipulator dynamics, a "disturbance" term C.sub.P (Y) nust be included in equation (4) to represent the dynamic coupling from the position loop into the force loop, where Y is the end-effector position vector in {Y}.
Taking the above into account, a more realistic model for force control is obtained as
Equation (5) is a set of highly complex nonlinear and coupled second-order differential equations.
1.2 Adaptive Force Control
In order to control the force/torque P(t) exerted by the end-effector on the environment, a PID controller is employed with adaptive gains {K.sub.p (t), K.sub.I (t), K.sub.D (t) } and an auxiliary signal d(t) in the force control law as developed herein. The force control law is ##EQU1## where P.sub.r (t) is the m.times.1 vector of desired force trajectory used as a feedforward term, and the m.times.1 force tracking-error vector E(t)=P.sub.r (t)-P.sub.r (t)-P(t) is the deviation of the actual (measured) force from the desired value. Since in practical applications the desired force trajectory is very often a constant setpoint P.sub.r (t)=P.sub.r, the PID control law is particularly suitable for this situation.
Furthermore, it should be appreciated that the auxiliary signal d(t) compensates for the cross-coupling term C.sub.p and the time and parameter variations of A and B matrices. Note that the feedforward term P.sub.r (t) is included in the control law (6) since ideally we want P(t)=P.sub.r (t).
In equation (6), the gains of the PID controller, namely K.sub.p (t), K.sub.I (t) and K.sub.D (t), and also the auxiliary signal d(t) are adapted in real-time to accomplish force setpoint tracking in spite of the nonlinear and possibley time-varying behavior of the system model of equation (5).
On applying the linear control law of equation (6) to the system model of equation (5), we obtain ##EQU2## Using E(t)=P.sub.r (t)-P(t) and noting the E(t)=-P(t) and E(t)=-P(t) for a constant desired force, equation (7) can be written as
where ##EQU3## is the m+1 integral error vector. Equation (8) can be expressed in standard state-space form as ##EQU4## is the 3 m.times.1 augmented error vector. Equation (9) constitutes the "adjustable system" in the Model Reference Arm Control ("MRAC") framework.
Now, in the ideal situation, the desired behavior of the force error E.sub.m (t) is described by the homogeneous differential equation
where D.sub.1, D.sub.2 and D.sub.3 are constant m.times.m matrices which are chosen such that the equation (10) is stable and embodies the desired performance of the force control system. By choosing D.sub.1, D.sub.2 and D.sub.3 as diagonal matrices, the force errors will be decoupled; for instance
where the coefficients d.sub.1i, d.sub.2i and d.sub.3i are chosen such that the tracking-error E.sub.i (t)=P.sub.ri (t)-P.sub.i (t) has a desired behavior and d.sub.2i d.sub.3i >d.sub.1i to ensure stability.
Equation (10) can be written as ##EQU5## is the 3 m.times.1 desired error vector. Equation (12) constitutes the "reference model" in the context of "MRAC" theory. Since the initial values of the actual and desired forces are often the same, the initial error x.sub.m (0) is equal to zero, and hence from equation (12), x.sub.m (t)=exp [Dt].x.sub.m (0).tbd.0 for all t.
Now, in order for the adjustable system state x.sub.e (t) to tend to the reference model state x.sub.m (t)=0 asymptotically, from Gilbart, Monopoli, and Price, noted earlier, we require ##EQU6## where "'" denotes transposition, {.alpha..sub.1, .beta..sub.1, .gamma..sub.1 } are positive scalars, {.alpha..sub.2, .beta..sub.2, .gamma..sub.2 } are zero or positive scalars, and L is an m.times.m constant matrix to be specified later. In equation (13), Q.sub.o and Q.sub.I are symmetric positive-definite 3 m.times.3 m matrices, Q.sub.o * and Q.sub.1 * are symmetric positive semi-definite 3 m.times.3 m matrices, and the symmmetric positive-definite 3 m.times.3 m matrix ##EQU7## is the solution of the Lyapunov equation for the reference model (12), namely
where N is a symmetric positive-definite 3 m.times.3 m matrix. In deriving equation (13), the matrices A, B, and Cp in the robot model of equation (5) are assumed to be unknown and "slowly time-varying" compared with the adaptation algorithm. This assumption is proper since these matrices cannot change significantly in each sampling interval, which interval is of the order of a millisecond. Now, in order to make the controller adaptation laws independent of the model matrix A, we choose ##EQU8## where {.delta..sub.1, .delta..sub.2 } are positive and zero or positive scalars, and ##EQU9## is a symmetric positive-definite 3 m.times.3 m matrix. Also note that A is a symmetric positive-definite matrix and hence A* and [A*].sup.-1 are also symmetric positivie-definite matrices.
Substituting from equation (15) into equation (13), after simplification we obtain the adaptation laws
and M.sub.3, M.sub.5 and M.sub.6 are appropriate submatrices of M. Thus, the required auxiliary signal and PID controller gains are obtained as ##EQU11## The force control law is then given by ##EQU12## It is noted that the auxiliary signal d(t) can be generated by a PI.sup.2 D controller driven by the force error E(t) since, from equations (20)-(21), d(t) can be expressed as ##EQU13## In practical implementation of any force control law, differentiation of the noisy force measurement P(t) is undesirable and, moreover, differentiation of the constant force setpoint P.sub.r produces unwanted impulses. This argument suggests that the derivative E(t) in equations (20), (24) and (25) must be replaced by -K.sub.e Z(t) using equation (3). This yields the linear adaptive force control law ##EQU14## which is shown in FIG. 3, where K.sub.v (t)=K.sub.D (t)K.sub.e is the m.times.m velocity feedback gain matrix and the term K.sub.v (t)Z(t) represents velocity damping.
FIG. 3 is the control loop for performing adaptive force control in accordance with the invention. FIG. 3 is an adaptive controller capable of performing the control law of equation 26. In FIG. 3 the reference signal P.sub.r applied at lead 307 is fed forward via loop 308 to a summing junction 320. The output from summing junction 320 is the signal F.sub.z which is an electrical signal that represents the force control law of equation 26.
Summing junction 310 receives the reference signal P.sub.r and combines it with the actual force signal P that is fed back after measurement by a force sensor at the end effector, via feedback loop 315. An error signal E from summing junction 310 is applied to two separate variable gain circuits 332 and 333.
Gain circuit 332 connected in lead 312 between summing junctions 310 and 320 represents the term K.sub.p. Input signal E is applied to the variable K.sub.p gain circuit 332 which varies in time as controlled by adaptation control 335.
Adaptation control 335 also controls a second variable gain circuit 333 which is connected in lead 313 between 310 and 320. An integration circuit 334 receives the error signal E, integrates it, and delivers an integral of the error, signal E*, to gain circuit 333. The output from the variable gain circuit 333 is an input term to summing junction 320.
Adaptation control 335 receives three input terms, namely error E, integral E* and Z. The term Z is a measured velocity term which indicates how fast the end effector is moving into the manipulated object as the force is being applied. Z is also fed through another variable gain circuit 342 and the modified Z term is also fed into summing junction 320. Note that this position-related term is in the adaptive force controller and it assists in the cross-coupling stability feature of this invention.
Choosing L=(K.sub.e.sup.-1).sup.2 and replacing for L in equation (19), the adaptation laws now become ##EQU15## where
and M.sub.6 *=M.sub.6 K.sub.e. By proper selection of matrix N in the Lyapunov equation (14), the submatrices M.sub.3, M.sub.5 and M.sub.6 in equation (20) can be made equal to the desired values W.sub.I, W.sub.p and W.sub.D =W.sub.v K.sub.e.sup.-1 respectively, and hence equation (31) becomes
where W.sub.I, and W.sub.p and W.sub.v are the m.times.m diagonal weighting matrices chosen to reflect the relative significance of the integral error E*, the force error E, and the velocity Z, respectively.
Adaptation control 335 synthesizes a signal d which is also applied to summing junction 320. Equations (27) through (30) are performed by the adaptation control 335. Adaptation control 335 may be any suitable device such as a program in a memory which, upon input of terms E, E*, and Z converts them into the equations (27) through (30). Note that each of these equations vary with time and, when applied to the variable gain circuits, also vary the gain in time.
From equations (27)-(30), the general expression for a typical controller gain K(t) which acts on the signal v(t) to generate the term K(t)v(t) in the control law (26) can be written as ##EQU16## where .mu..sub.1 and .mu..sub.2 are scalar gains.
The adaptive force control of this invention is extremely simple, since the adaptation laws (27) through (30) generate the controller gains by means of simple integration using, for instance, the trapezoidal rule; e.g. equation (33) can be implemented as ##EQU17## where the integer i denotes the sampling instant and T.sub.s is the sampling period. As a result, the force control law of equation (26) can be evaluated very rapidly and consequently, force control is implemented for real-time control with high sampling rates (typically 1 KHz).
While a sampling source is not shown in FIG. 3, it is to be understood that all components are sampled and synchronized for a real-time adaptive control. The high sampling rate of real-time adaptive control is very desirable and yields improved dynamic performance. The adaptation laws (27) through (30) do not require the complex nonlinear model of manipulator dynamics (5) or any knowledge of parameters of the manipulator or the environment. This is due to the fact that the adaptive force controller has "learning capabilities" and can raidly adapt itself to gross changes in the manipulator or the environment parameters.
2. POSITION CONTROLLER
In this section, a dynamic model for adaptive position control in the subspace {Y} is described.
2.1 Dynamic Position Model
The dynamics of the end-effector in the Cartesian space {X} can be represented as discussed in O. Khatib as noted earlier herein. The dynamics are represented as
where .LAMBDA. is the Cartesian mass matrix, .phi. is the Cartesian centrifugal, Coriolis and friction vector .psi. is the Cartesian gravity loading vector, P is the force vector exerted by the end-effector on the environment, and F is the generalized "virtual" Cartesian force vector applied to the end-effector. In the position subspace {Y}, equation (35) can be written as
where the l.times.l matrices A, G, C.sub.o are highly complex nonlinear functions of X, X and the system parameters p, C.sub.f represents the dynamic coupling effect from the force loop into the position loop which is a function of the force vector P in {Z}, and F.sub.y is the l.times.1 force vector applied to the end-effector in the position subspace {Y}. Equation (36) is a set of highly complex nonlinear and coupled second-order differential equations.
2.2 Adaptive Position Control
The linear adaptive position control law in accordance with this invention is given by
where R(t) is the l.times.1 reference (desired) position trajectory vector, E.sub.p (t)=R(t)-Y(t) is the l.times.1 position tracking-error vector, f(t) is an auxiliary signal, and [K.sub.p E.sub.p +K.sub.v E.sub.p ] and [CR+BR+AR] are the contributions due to the feedback and feedforward controllers respectively. The required auxiliary signal and controller gains are adapted according to the following laws: ##EQU18## where the l.times.1 "weighted" position error vector r(t) is defined as
in equations (38)-(43), {.delta..sub.1, .nu..sub.1, .eta..sub.1, .mu..sub.1, .gamma..sub.1, .lambda..sub.1 } are positive scalars, {.delta..sub.2, .nu..sub.2, .eta..sub.2, .mu..sub.2, .gamma..sub.2, .lambda..sub.2 } are positive or zero scalars, and WPhd p and W.sub.v are weighting matrices reflecting the relative significance of the position and velocity errors E.sub.p and E.sub.p.
The position control scheme is extremely simple since the controller gains are obtained from equations (38) through (43) by simple integration (such as the trapezoidal rule) and thus the computational time required to evaluate the position control law (37) is extremely short. Thus, the adaptive position control of this invention is implemented for on-line control with high sampling rates (.about.1 KHz); resulting in improved dynamic performance.
3. HYBRID FORCE/POSITION CONTROL SYSTEM
In Sections 1 and 2, the Cartesian end-effector forces F.sub.z and F.sub.y are generated by the force and position controllers to accomplish force and position tracking in {Z} and {Y} respectively. Since Cartesian forces cannot be applied to the end-effector in practice, these end-effector forces must be mapped into the equivalent joint torques. Thus, in order to implement the force and position controllers, the control law in joint space is given by J. J. Craig (37 Robotics-Mechanics and Control," Addison-Wesley Publishing Company, Reading, MA, 1986). ##EQU19## where .circle. is the n.times.1 joint angle vector, T is the n.times.1 joint torque vector, and J is the n.times.n Jacobian matrix of the manipulator, with appropriate reordering of the columns of J if necessary.
In FIG. 4 the desired position, R, is a signal from the trajectory generator 105, FIG. 1. That signal R is a measured value at the end effector, and it is applied to a summing junction 410 where it is compared with the actual position Y. The other two input terms R and R are also specified by the trajectory generator and represent desired velocity and desired acceleration. These input terms thus fully determine what kind of movement at what speed and how quickly the end effector is to be controlled.
In a manner very similar to that described earlier for FIG. 3, the adaptation control 405 performs the position control equations (36) through (44) by controlling the gain of the various variable gain amplifiers as shown in FIG. 4 for the appropriately labeled portions of the position control law of equation (37). Thus, position adaptation control 405 controls the variable gain units 420, 430, 440, 450, 460 to input respectively to summing junction 470, position feedback gain, position feedforward gain, accelaration feedforward gain, velocity feedforward gain and velocity feedback gain. Note that Y is not a directly measured term but, in a manner for Z, is an indirectly derived term computed from the joint encoders in any well-known manner. Adaptation control 405 also supplies the auxiliary signal f which is a synthesized position control term as shown in position control law (37).
It is important to note that although the force and position controllers are separate in the hybrid control architecture, there exists dynamic cross-coupling from the force control loop into the position control loop and vice versa. This coupling is due to the fact that the end-effector dynamics in the Cartesian space {X} is strongly cross-coupled; i.e. the application of end-effector force in any direction affects the end-effector positions in all directions. The cross-coupling effects are modeled as "disturbance" terms C.sub.p and C.sub.f in the force and position control laws and related control loops.
The adaptive controllers of this invention compensate for these disturbances and maintain a good tracking performance. The ability to cope with cross-coupling effects in the hybrid control architecture of this invention is an important feature.
FIG. 5 is a generic module which is readily adaptible for achieving the adaptive gain terms for the force/position control laws of this invention. In FIG. 5, the input term v(t) can be any of the variables shown in the control law equations (26) or (37). Note, for this example, that the last term of force control equation 26 is the output term from module 500. The input term q(t) was defined earlier herein at equatiions (31), (32), etc. Input term v(t) is transformed or reorganized by transformation unit 510 and is applied to a multiplier unit 520. The remainder of the module is self explanatory and needs no further explanation. Suffice it to say that each module 500 for the specific terms of the adaptive force/position control laws is used in the variable gain units such as the five units 420, 430, 440, 450, and 460, FIG. 4. In addition another module unit in adaptation control 405 generates the auxiliary term f. The same holds true for the adaptive force control functions as depicted and described by FIG. 3. Since the modules are operating in parallel, high speed solutions to the simple arithmetic operations of this invention are readily achieved.
4. ILLUSTRATIVE EXAMPLE
The adaptive force/position control of this invention is applied to a two-link planar manipulator to control the motion and the exerted force of the end-effector simultaneously. The results of that application is now described.
Consider the two-link manipulator depicted in a vertical plane in FIG. 6. It is assumed the manipulator's end-effector 605 is contacting a vertical reaction surface 610. The dynamic model which relates the joint torque vector ##EQU20## to the joint angle vector ##EQU21## is well known. Such a model, described by J. J. Craig, as noted erlier noted, is given as:
where the above terms are defined as:
Inertia matrix ##EQU22## Coriolis and centrifugal torque vector ##EQU23## Gravity loading vector ##EQU24## Jacobian matrix ##EQU25## End-effector force vector ##EQU26## where K.sub.e is the stiffness of the reaction surface, X.sub.o is the location of the surface, and
is the horizontal coordinate of the end-effector in the base frame generated by the task descriptor 125, FIG. 1. The task descriptor 125 also generates the end-effector vertical coordinate y(t) from the joint angles .theta..sub.1 and .theta..sub.2 as
In the above expressions, a.sub.1, . . . , a.sub.5 are constant parameters obtained from the masses {m.sub.1, m.sub.2 } and the lengths {l.sub.1, l.sub.2 } of the robot links 600A and 600B, including the end-effector 605. For the particular robot under study, the numerical values of the link parameters are chosen as
so that they represent links 2 and 3 of the commercially available Unimation PUMA 560 arm. The reaction surface location is x.sub.o =0.432 meter and its stiffness is chosen as K.sub.3 =10.sup.4 Nt/meter. It should be understood that the mathematical model and the parameter values of the robot and the reaction surface are used merely to simulate the robot behavior and are not used to generate the control action; i.e. the system dynamics in accordance with this invention is treated as a "black-box" by the adaptive force and position controllers 120, 110, FIG. 1.
Suppose that the end-effector is required to apply a specified constant force setpoint P.sub.r on the reaction surface in the x-direction and simultaneously track a given position trajectory y.sub.4 (t) in the y-direction; where
with y.sub.r (0)=-0.432, y.sub.r (.infin.)=0.432 and y.sub.r (0)=y.sub.r (.infin.)=0.
Using the adaptive hybrid control system of this invention, the two-dimensional Cartesian space {X} is decomposed into two orthogonal one-dimensional force subspace {x} and position subspace {y}. For each subspace, a separate adaptive controller designed in accordance with this invention is as follows. In this example, the base frame 630 is chosen as the constraint frame.
Force Controller: In accordance with Section 1, a reference model for the force tracking-error e.sub.x (t)=P.sub.r (t)-P.sub.x (t) is chosen as
with three characteristic roots at -10; yielding D.sub.1 =1000, D.sub.2 =300, and D.sub.3 =30. The linear adaptive force control law is given by ##EQU27## where F.sub.x is the control force applied to the end-effector in the x-direction. The adaptive force controller gains are adapted as follows: ##EQU28## where
and ##EQU29## The integrals in the above equations are computed using the trapezoidal integration rule with dt=0.5 msec.
Position Controller: In accordance with Section 2, a reference model for the position tracking-error e.sub.y = y.sub.r (t)-y(t) is chosen as
with natural frequency .omega.=10 rad/sec and damping factor .xi.=1; yielding D.sub.1 =100 and D.sub.2 =20. The linear adaptive position control law is given by
where F.sub.y is the control force applied to the end-effector in the y-direction. The adaptive position controller gains are adapted as follows: ##EQU30## The integrals in the adaptation laws are evaluated using the trapezoidal rule with dt=0.5 msec.
Hybrid Control: The force and position controllers described above operate in the adaptive hybrid control system of FIG. 7. The joint control law is then given by ##EQU31##
To evaluate the performance of the adaptive force/position control schemes, the nonlinear dynamic model of the manipulator (46) and the adaptive hybrid control law (49) were simulated on a DEC-VAX 11/750 computer with the sampling period of 0.5 msec. The results of this simulation are shown in FIGS. 8a and 8b and indicate that P.sub.x (t) and y(t) track the desired trajectories P.sub.r (t) and y.sub.r (t) very closely. Thus the adaptive force and position controllers of this invention compensate for system non-linearities in a highly satisfactory manner.
The performance of the adaptive controller system in four different cases was tested by the above-noted simulation and the results of these four cases are discussed as follows.
Case 1--Performance With No Vertical Motion
In this case, the end-effector is required not to move in the y-direction (i.e. y.sub.r (t)=-0.432 meter) and exert the constant force of P.sub.r (t)=10 Nt on the reaction surface using the same control law (49). FIGS. 9a and 9b show the responses of the exerted force P.sub.x (t) and the vertical coordinate y(t) and indicate that force tracking is accomplished and the maximum deviation of y from its initial (desired) value is less than 1 mm. The effect of cross-coupling between force and position control loops can be observed by comparing FIGS. 8a and 9a.
Case 2--Performance under Stiffness Variation
In order to test the learning capability of the force controller, the stiffness of the reaction surface is suddenly changed to K.sub.e =(5)10.sup.3 Nt/meter at t=1.5 seconds while the end-effector is exerting the force of 10 Nt on the surface under the adaptive control law (47). This abrupt change is a clear violation of the assumption made in the theory that the system parameters are "slowlly time-varying." In spite of this violation, the adaptive force controller invention continues to perform remarkably well. FIG. 10 shows the response of the exerted force P.sub.x (t) and indicates that the desired force setpoint P.sub.r (t)=10 Nt is tracked closely despite the sudden change in K.sub.e. Thus, the adaptive force controller is not unduly sensitive to reaction surface stiffness.
Case 3--Performance With Reaction Surface Movement
In this case, the end-effector is required to maintain the constant force of 10 Nt on the reaction surface while the surface is moved away from the end-effector in the positive x-direction with the constant speed of of 1 cm/sec in the time interval 0.5<t<2.25 seconds. The response of the exerted force P.sub.x (t) and the position of the reaction surface x.sub.o (t) are shown in FIGS. 11a and 11b. It is seen that the constant force of 10 Nt is exerted on the surface despite the surface movement. The negative transient in P.sub.x (t) at t=0.5 and the positive transient at t=2.25 will be reasoned by those skilled in this art simply from the physics of the situation.
Case 4--Complaint Motion
In previous cases, it is assumed that the end-effector is the active element in force exertion. Let us now consider the reverse situation where the end-effector is the passive element and force is exerted by the reaction surface on the end-effector. In this case, suppose that the surface is moved towards the end-effector in the negative x-direction with the constant speed of 1 cm/sec in the time interval 0.5<t<2.5 seconds, and the end-effector is required to comply with the surface movement while maintaining a small contact force of P.sub.r (t)=0.1 Nt. The end-effector will now reposition itself under the force control law (47) to maintain the desired force of 0.1 Nt; otherwise the contact force created will reach 200 Nt.
FIGS. 12a and 12b show the response of the actual force on the end-effector P.sub.x (t) and the reaction surface position x.sub.o (t). It is seen that the end-effector complies completely with the force applied by the surface and the actual end-effector force varies about the desired value of 0.1 Nt.
5. SOLUTION OF THE LYAPUNOV EQUATI0N
In this section, we obtain explicit closed-form solutions of the Lyapunov equation for a particular class of stable systems.
Let us consider the (3m)th order stable system ##EQU32## where D.sub.1, D.sub.2 and D.sub.3 are m.times.m diagonal matrices with positive elements such that D.sub.2 D.sub.3 >D.sub.1. Let the 3m.times.3m matrix ##EQU33## be the symmetric positive-definite solution of the Lyapunov equation ##EQU34## where P.sub.1, . . . , P.sub.6 are m.times.m diagonal matrices, and Q.sub.1 and Q.sub.2, Q.sub.3 are m.times.m diagonal matrices with positive elements. From equation (51), we obtain the set of equations.
The solutions of these equations for submatrices P.sub.3, P.sub.5, and P.sub.6 are found to be
where D.sub.4 =D.sub.2 D.sub.3 -D.sub.1. Equations 53(a)-(c) give simple closed-form expressions for certain submatrices of the solution of the Lynapunov equation (51). Different choices of Q.sub.1, Q.sub.2, and Q.sub.3 will generate diferent solutions P of the Lyapunov equation.
Often we wish to choose the matrices Q.sub.1, Q.sub.2, and Q.sub.3 such that the acquired solution P has som desired submatrices. For instance, in order to obtain a solution with
where W.sub.I, W.sub.p and W.sub.D are some specified diagonal matrices, from equations 52(a)-(f), the required Q.sub.i matrices are obtained as
For the Q.sub.i matrices to be positive-definite, the following inequalitites must hold
6. NON-ADAPTIVE EMBODIMENT
The adaptive position control described hereinbefore does not require knowledge of the manipulator dynamics. If such knowledge is available, the inventor has described a non-adaptive robust control scheme herein in FIG. 13b and in his paper entitled "Linear Multivariable Control of Robot Manipulators" presented to the IEEE during the week of Apr. 7th through 10th, 1986. A copy of that paper is submitted herewith and its disclosure is incorporated herein by reference pursuant to M.P.E.P. Section 608.01(p). More particularly the incorporation by reference includes the equations and material that describe the components of FIG. 13a and 13b herein and the improvement over the basic robot control scheme depicted in FIG. 13a. Both figures are described in detail in the inventor's paper.
FIG. 13b includes a feedforward loop 1300 which contains only the proportional-double-derivative terms as depicted. Feedforward controller 1300 is designed to be the inverse of the manipulator's dynamics. The feedforward terms ensure that the manipulator joints follow desired reference trajectory from a trajectory generator as earlier described.
Feedback controller 1320 of FIG. 13b is independent of the feedforward controller 1300. Although each controller 1300 and 1320 is multivariable, the feedback controller 1320 achieves pole placement and ensures zero initial tracking error by the proportional-integral-derivative terms depicted therein.
The non-adaptive controller of FIG. 13b may more readily be understood by assuming that the gain circuits of the adaptive position controller as fully described herein are set and fixed. A non-adaptive controller of FIG. 13b, as claimed, ensures position tracking in real time, and does so with a highly simplified design approach.
7. SUMMARY
A new and novel method and apparatus for achieving high speed real-time force/position control of a manipulator has been disclosed and claimed. The adaptive control law for force, as established by equation (26), is performable at high speeds in a digital hybrid control architecture. The adaptation of this invention is also, of course, readily performed in suitable analog methods and functions. Adaptive or non-adaptive position control alone, or in combination with, the adaptive force control as described and claimed herein provides new and heretofor unattained results.
The above description presents the best mode contemplated in carrying out the invention. The invention is, however, susceptible to modifications and alternate constructions from the embodiments shown in the drawings and described above. Consequently, it is not the intention to limit the invention to the particular embodiments disclosed. On the contrary, the invention is intended and shall cover all modifications, sizes and alternate constructions falling within the spirit and scope of the invention, as expressed in the appended claims when read in light of the description and drawings.