Robot control at singular configurations
11691281 · 2023-07-04
Assignee
Inventors
Cpc classification
B25J9/1633
PERFORMING OPERATIONS; TRANSPORTING
B25J9/1641
PERFORMING OPERATIONS; TRANSPORTING
G05B19/404
PHYSICS
International classification
Abstract
According to some embodiments, a method includes: receiving an endpoint impedance matrix representing a desired stiffness or damping at the robot endpoint; reflecting the endpoint impedance matrix to an equivalent joint-space matrix associated with one or more of the robot joints, the equivalent joint-space matrix having a nullspace corresponding to near-zero-valued eigenvalues; generating a nullspace-filled impedance matrix from the equivalent joint-space matrix based in part on replacing the near-zero-valued eigenvalues with selected finite positive real values; generating a robot control law using the nullspace-filled impedance matrix; and using the robot control law to control the robot.
Claims
1. A computer-implemented method for controlling a robot having an endpoint and a plurality of joints providing more than three degrees of freedom (DoFs), the method comprising: receiving an endpoint impedance matrix representing a desired stiffness or damping at the robot endpoint; reflecting the endpoint impedance matrix to an equivalent joint-space matrix associated with one or more of the robot joints, the equivalent joint-space matrix having a nullspace corresponding to near-zero-valued eigenvalues; generating a nullspace-filled impedance matrix from the equivalent joint-space matrix based in part on replacing the near-zero-valued eigenvalues with selected finite positive real values, wherein the replacing of the near-zero-valued eigenvalues with the selected finite positive real values includes, in response to detecting that the robot is approaching a kinematic singularity, increasing one or more eigenvalues from a threshold value to the corresponding selected finite positive real value; generating a robot control law using the nullspace-filled impedance matrix; and using the robot control law to control the robot.
2. The method of claim 1, further comprising: determining forces/torques at the endpoint resulting from contact between the endpoint and an environment of the robot; generating a kinematic stiffness matrix based on the forces/torques at the endpoint; and generating the equivalent joint-space matrix using the kinematic stiffness matrix.
3. The method of claim 1, further comprising: in response to detecting that the robot is approaching a kinematic singularity, updating the robot control law by iteratively increasing one or more eigenvalues approaching zero as the singularity is neared from a threshold value to the corresponding selected finite positive real value, wherein the threshold value is less than the corresponding selected final positive real value; and using the updated robot control law to control the robot.
4. The method of claim 3, wherein the threshold value is selected based on a floating point arithmetic precision of the computer.
5. A computer-implemented method for controlling a robot having an endpoint and a plurality of joints providing more than three degrees of freedom (DoFs), the method comprising: selecting impedance parameters for each of a plurality of impedance modules, wherein each of the plurality of impedance modules specifies a robot behavior associated with a task; for one or more of the impedance modules: receiving an endpoint impedance matrix representing a desired stiffness or damping at the robot endpoint, reflecting the endpoint impedance matrix to an equivalent joint-space matrix associated with one or more of the robot joints, the equivalent joint-space matrix having a nullspace corresponding to near-zero-valued eigenvalues, generating a nullspace-filled impedance matrix from the equivalent joint-space matrix based in part on replacing the near-zero-valued eigenvalues with selected finite positive real values, wherein the replacing of the near-zero-valued eigenvalues with the selected finite positive real values includes, in response to detecting that the robot is approaching a kinematic singularity, increasing one or more eigenvalues from a threshold value to the corresponding selected finite positive real value, and defining an impedance control law for the module using the nullspace-filled stiffness matrix and the impedance parameters selected for the module; generating a composite control law for the robot using impedance module control laws defined for the impedance modules; and using the composite control law to control the robot.
6. The method of claim 5, further comprising: determining forces/torques at the endpoint resulting from contact between the endpoint and an environment of the robot; generating a kinematic stiffness matrix based on the forces/torques at the endpoint; and generating the equivalent joint-space matrix using the kinematic stiffness matrix.
7. The method of claim 5, further comprising: in response to detecting that the robot is approaching a kinematic singularity, updating the robot control law by iteratively increasing one or more eigenvalues approaching zero as the singularity is neared from a threshold value to the corresponding selected finite positive real value, wherein the threshold value is less than the corresponding selected final positive real value; and using the updated robot control law to control the robot.
8. The method of claim 7, wherein the threshold value is selected based on a floating point arithmetic precision of the computer.
9. The method of claim 5, further comprising: transforming one or more of the impedance module control laws into configuration space, wherein generating the composite control law for the robot includes generating the composite control law using the impedance module controls laws transforming into configuration-space.
10. The method of claim 5, wherein at least one of the impedance modules defines a damped spring control law to manipulate an object using an end-effector of the robot.
11. The method of claim 5, wherein at least one of the impedance modules defines a damped spring control law to manipulate an object using an elbow of the robot.
12. The method of claim 5, wherein at least one of the impedance modules imposes a base joint stiffness on the robot.
13. The method of claim 5, wherein selecting impedance parameters for each of a plurality of impedance modules includes selecting, for at least one of the impedance modules, a resting position, a stiffness, and a damping coefficient for a damped spring control law.
14. The method of claim 5, wherein selecting impedance parameters for each of a plurality of impedance modules includes selecting, for at least one of the impedance modules, a base joint stiffness for the robot.
15. The method of claim 5 wherein selecting the base joint stiffness for the robot includes selecting a base joint stiffness to reduce apparent end-effector mass normal to an object's surface.
16. A system comprising: a robot having an endpoint and a plurality of joints providing more than three degrees of freedom (DoFs); and an impedance controller configured to: receive an endpoint impedance matrix representing a desired stiffness or damping at the robot endpoint; reflect the endpoint impedance matrix to an equivalent joint-space matrix associated with one or more of the robot joints, the equivalent joint-space matrix having a nullspace corresponding to near-zero-valued eigenvalues; generate a nullspace-filled impedance matrix from the equivalent joint-space matrix based in part on replacing the near-zero-valued eigenvalues with selected finite positive real values, wherein the replacing of the near-zero-valued eigenvalues with the selected finite positive real values includes, in response to detecting that the robot is approaching a kinematic singularity, increasing one or more eigenvalues from a threshold value to the corresponding selected finite positive real value; generate a robot control law using the nullspace-filled impedance matrix; and use the robot control law to control the robot.
17. The system of claim 16, wherein the impedance controller is further configured to: determine forces/torques at the endpoint resulting from contact between the endpoint and an environment of the robot; generate a kinematic stiffness matrix based on the forces/torques at the endpoint; and generate the equivalent joint-space matrix using the kinematic stiffness matrix.
18. The system of claim 16, wherein the impedance controller is further configured to: in response to detecting that the robot is approaching a kinematic singularity, update the robot control law by iteratively increasing one or more eigenvalues approaching zero as the singularity is neared from a threshold value to the corresponding selected finite positive real value, wherein the threshold value is less than the corresponding selected final positive real value; and use the updated robot control law to control the robot.
19. The system of claim 18, wherein the threshold value is selected based on a floating point arithmetic precision of the controller.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Various objectives, features, and advantages of the disclosed subject matter can be more fully appreciated with reference to the following detailed description of the disclosed subject matter when considered in connection with the following drawings, in which like reference numerals identify like elements.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11) The drawings are not necessarily to scale, or inclusive of all elements of a system, emphasis instead generally being placed upon illustrating the concepts, structures, and techniques sought to be protected herein.
DETAILED DESCRIPTION
(12) Before describing embodiments of the concepts, structures, and techniques sought to be protected herein, some concepts and terminology are explained.
(13) The behavior and dynamics of a robot may be described in several related geometric spaces. The behavior of a robot end-effector and its relation to external locations and objects is best described in external coordinates of “world space.” This is usually defined by Cartesian coordinates with respect to a well-defined reference frame such as the base of the robot. Cartesian coordinates of an end-effector are often defined by six degrees of freedom: translations in three orthogonal directions and rotations about three orthogonal axes. Alternatively, the kinematics and dynamics of a robot mechanism are best described in joint coordinates or “configuration space.” Configuration space is usually identified with generalized coordinates (as defined in classical mechanics): angles of revolute joints and translations of prismatic joints. Configuration space may have many more degrees of freedom than an end effector; in that case the robot is kinematically redundant with respect to that end-effector. The relation (or transformation) between configuration space and world space is fully defined by the kinematic equations of the robot, determined by the geometry and design of the machine.
(14) As is known in the art, a robot which is stable during unrestrained motion may become unstable upon contact with or physical coupling to an object or a rigid surface. Most objects and rigid surfaces are “energetically passive.” Energetically passive objects cannot continuously supply mechanical power in response to forces and motions imposed upon them. It has been shown that if a robot exhibits interactive behavior equivalent to that of an energetically passive object, physical contact with an unknown passive object cannot induce instability. Therefore, if mechanical impedance is constrained to be energetically passive, physical contact cannot induce instability.
(15) As used herein, the term “module” generally refers to a collection of hardware and/or software configured to perform and execute the processes, steps, or other functionality described in conjunction therewith.
(16) Referring to
(17) The robot 102 includes an end-effector 106 coupled to a trunk 107 via a series of joints 104a . . . 104g (104 generally). The joints 104 provide multiple degrees of freedom (e.g., six or seven degrees of freedom) to the end-effector 106 relative to the trunk 107. The robot joints 104 may be driven by force- or torque-controlled actuators. Non-limiting examples of actuators that may be used include series elastic actuators (SEAs), variable-impedance actuators, and current-controlled electric motors.
(18) The controller 108 is configured to receive impedance control parameters from each of the impedance modules 110 and, based on a composition of the received impedance parameters, to generate and send force/torque control signals to the joint 104 actuators. The controller 108 also receives force/torque feedback information from the joint actuators.
(19) In certain embodiments, one or more of the impedance modules 110 may be energetically passive. It is appreciated that using robot impedance modules that are energetically passive substantially guarantees that the robot 102 cannot be destabilized by physical contact with a human, thereby enhancing safety.
(20) The concepts and techniques disclosed here can be extended to an arbitrary number of impedance modules 110. A given impedance module 110 may control the movement of a given robot “body part” or the robot's configuration. As explained below, multiple impedance modules 110 can be readily combined—using the principle of superposition—to program complex robot behavior.
(21) A general description of concepts and techniques that may be utilized within the impedance modules 110 and controller 108 are described next.
(22) A robot's configuration space (e.g., the configuration space of robot 102) may be defined by generalized coordinates θ. The transformation of motion variables (position, velocity, etc.) from the robot's configuration space to any other point on the robot, e.g. its end-effector 106, is well-defined. The relation between an end-effector's position x and generalized coordinates can be determined by the kinematic equations x=L(θ). The relation between end-effector velocity {dot over (x)} and generalized velocity {dot over (θ)} is {dot over (x)}=J(θ){dot over (θ)} where J(θ) is the configuration-dependent Jacobian matrix, which may be non-square, e.g. if the robot is kinematically redundant.
(23) Conversely, the relation between a force or torque exerted at any point on the robot (e.g. end-effector 106) and generalized forces conjugate to generalized displacements (e.g. actuator torques) is also well-defined. The relation between end-effector force/torque f and actuator torque τ may be expressed as τ=J.sup.T(θ)f.
(24) Mechanical impedance is an operator that relates motion to force, f(t)=Z{x(t)} The operator Z{⋅} may be linear, nonlinear, static, dynamic, etc., but is chosen to be well-defined. Advantageously, the mechanical impedance operator can be transformed to a corresponding configuration-space impedance Z.sub.cs{⋅}=J.sup.T(⋅)Z{L(⋅)}, where τ(t)=Z.sub.cs{θ(t)}, without inverting the kinematic equations.
(25) For clarity, a simple example follows. The behavior of a “virtual” damped spring connected to a robot end-effector may be modeled as:
f.sub.ef=k.sub.ef(x.sub.ef0−x.sub.ef)+b.sub.ef({dot over (x)}.sub.ef0−{dot over (x)}.sub.ef) (Eq. 1)
in which: f.sub.ef denotes an end-effector force; k.sub.ef denotes a stiffness of the virtual spring; x.sub.ef0 denotes a “rest” position of the virtual spring; x.sub.ef denotes a current position of the end-effector; b.sub.ef denotes a damping coefficient of the virtual spring; {dot over (x)}.sub.ef denotes a velocity at the current end-effector position; an overdot denotes a time derivative; and {dot over (x)}.sub.ef0 denotes a velocity at the rest position of the virtual spring.
(26) It will be understood that, if the so-called “virtual” damped spring were an actual damped spring connected to the end-effector, it would tend to drive an end effector towards the rest position x.sub.ef0. The damping coefficient b.sub.ef can be selected, on a per end-effector basis, based on the desired behavior of that end-effector in a given application.
(27) Transforming this behavior to configuration space identifies a nonlinear control law:
τ.sub.ef=J.sub.ef.sup.T(θ)[k.sub.ef(x.sub.ef0−L.sub.ef(θ))+b.sub.ef({dot over (x)}.sub.ef0−J.sub.ef(θ){dot over (θ)})] (Eq. 2)
in which: τ.sub.ef denotes the torque generated by this controller; θ denotes the configuration variables of the robot; {dot over (θ)} denotes the robot's velocity in configuration space; L.sub.ef denotes the forward kinematic equations relating the robot configuration to end-effector position; J.sub.ef denotes the corresponding Jacobian matrix; and J.sub.ef.sup.T denotes a transpose of Jacobian matrix J.sub.ef.
(28) This control law implements a “virtual” damped spring that drives the end effector towards the position x.sub.0. It will be appreciated that the control law above does not require inversion the robot's kinematic equations. As a result this control law can function at and through the robot's kinematic singularities.
(29) The aforementioned damped spring model f.sub.ef=k.sub.ef(x.sub.ef0−x.sub.ef)+b.sub.ef({dot over (x)}.sub.ef0−{dot over (x)}.sub.ef) and its constituent impedance parameters may correspond to (i.e., be implemented or encoded within) an impedance module 110 in
(30) It should be understood that the impedance module described above does not directly control the robot configuration (i.e., the orientation of the various joints 104). To drive the robot to a desired configuration θ.sub.0, a second impedance module 110 may be provided which defines a “virtual” configuration-space damped spring. The configuration-space damped spring may be described as:
τ.sub.c=K(θ.sub.0−θ)−B({dot over (θ)})
in which: K denotes a stiffness of the joints; and B denotes a damping coefficient of the joints.
(31) The two impedance modules 100 described above can be added together to define a non-linear control law:
τ.sub.ef+c=J.sub.ef.sup.T(θ)[k.sub.ef(x.sub.ef0−L.sub.ef(θ))+b.sub.ef({dot over (x)}.sub.ef0−J.sub.ef(θ){dot over (θ)})]+K(θ.sub.0−θ)−B({dot over (θ)}) (Eq. 3)
(32) The resulting control law (referred to herein as a “composite control law”) drives the end-effector 106 towards the position x.sub.0 while the robot configuration tends towards the configuration θ.sub.0. The steady-state end-effector position and robot configuration compromise between the two dynamic attractors x.sub.0 and θ.sub.0 to reduce (and ideally minimize) the amount of “energy” stored in the virtual springs defined by k.sub.ef and K. Such a combination of impedance modules can provide simultaneous control of robot's end-effector and redundant degrees of freedom.
(33) The end-effector virtual spring stiffness k.sub.ef can be selected to dominate the configuration-space virtual spring stiffness K.sub.c in order to drive the robot configuration to be approximately compatible with x.sub.0. This may be achieved if K.sub.c«J.sub.ef.sup.T(θ)k.sub.efJ.sub.ef(θ).
(34) A similar approach may be applied at any other point on the robot 102. Thus, for example, using subscript e to denote the elbow, the impedance module f.sub.e=k.sub.e(x.sub.e0−x.sub.e)+b.sub.e({dot over (x)}.sub.e0−{dot over (x)}.sub.e) may describe a “virtual” damped spring behavior connected to the elbow. Such a behavior may be implemented by a nonlinear configuration-space control law τ.sub.e=J.sub.e.sup.T(θ)[k.sub.e(x.sub.e0−L.sub.e(θ))+b.sub.e({dot over (x)}.sub.e0−J.sub.e(θ){dot over (θ)})]. This impedance module can be combined with the impedance-based control laws described above. In particular, the end-effector virtual damped spring and the elbow virtual damped spring may be added together to define a nonlinear control law:
τ.sub.ef+e=J.sub.ef(θ)[k.sub.ef(x.sub.ef0−L.sub.ef(θ))+b.sub.ef({dot over (x)}.sub.ef0−J.sub.ef(θ){dot over (θ)})]+J.sub.e.sup.T(θ)[k.sub.e(x.sub.e0−L.sub.e(θ))+b.sub.e({dot over (x)}.sub.e0−J.sub.e(θ){dot over (θ)})]
(35) This composite control law drives the end-effector 106 towards the position x.sub.0 while the elbow tends towards the position x.sub.e0. If both positions are compatible with the robot's kinematics, both will be reached exactly in steady-state. If they are not, the steady-state robot configuration will be a compromise between the two dynamic attractors x.sub.0 and x.sub.e0 to reduce (and ideally minimize) the amount of “energy” stored in the virtual springs defined by k.sub.ef and k.sub.e. It is appreciated that the combination of impedance modules provides a way to control the robot's end-effector 106 and redundant degrees of freedom simultaneously.
(36) Referring now to
(37) As described above in conjunction with
(38) The force-based impedance controller 124 receives the impedance control law parameters from the impedance modules 122 and generates a composite control law by summing (i.e., superimposing) the individual impedance module control laws. In the case where an impedance module 122 specifies an impedance control law in Cartesian-space, the impedance controller 124 may transfer the control law to configuration space using a Jacobian matrix associated with the end-effector.
(39) The impedance controller 124 also receives actual robot configuration θ and velocity {dot over (θ)} information as feedback from the robot dynamics 126. The impedance controller 124 uses the composite control law along with the actual robot configuration θ and corresponding configuration-space velocity {dot over (θ)} to calculate a torque (denoted τ.sub.m in
(40) The system 120 may also be influenced by external forces 128 (denoted as a torque τ.sub.ext) which are shown in
(41) It should be understood the impedance module impedance parameters, actuator torque τ.sub.m, external torque τ.sub.ext, actual robot configuration θ, and/or actual configuration-space velocity {dot over (θ)} may be provided as vector quantities, as illustrated using double connector lines in
(42) In various embodiments, the impedance controller 124 includes real-time control software configured to implement the composite control law.
(43)
(44) The impedance controller 144 receives impedance parameters from impedance modules 142 and uses this information to derive a composite control law. The impedance controller 144 also receives the actual robot configuration θ and configuration-space velocity {dot over (θ)} and, using the composite control law, calculates an actuator torque τ.sub.m, which is provided to the force/torque controller 146. The force/torque controller 146 drives the actuator 148 according to the received actuator torque. The impedance controller 144 and/or force/torque controller 146 may take into account external forces 150 (denoted as torque τ.sub.ext in the figure). The actual robot configuration θ and configuration-space velocity {dot over (θ)} result not only from the actuator torque and external forces (i.e., τ.sub.m+τ.sub.ext), but also the mechanical impedances acting on the system, such as inertia and friction, as illustrated by load 154.
(45) The system 140 also includes a torque sensor 152 to determine the actual (or “sensed”) torque τ.sub.sensed exhibited by the actuator 148. The actual torque τ.sub.sensed is summed with the impedance controller output (i.e., with desired torque τ.sub.desired), as shown. The actual torque τ.sub.sensed is “signed” to generate a signal (denoted τ.sub.error) proportional to the error between the desired torque and actual/sensed torque. The force/torque controller 146 is configured to reduce (and, in some cases, to minimize or eliminate) the error τ.sub.error.
(46) It will be understood that
(47) Referring to
(48) As illustrated in
(49) Using the concepts described above in conjunction with
τ=J.sub.lh.sup.T(θ.sub.l)[k.sub.lh(x.sub.lh0−L.sub.lh(θ.sub.l))+b.sub.lh({dot over (x)}.sub.lh0−J.sub.lh(θ.sub.l){dot over (θ)}.sub.l)]+J.sub.le.sup.T(θ.sub.l)[k.sub.le(x.sub.le0−L.sub.le(θ.sub.l))+b.sub.le({dot over (x)}.sub.le0−J.sub.le(θ.sub.l){dot over (θ)}.sub.l)]+K.sub.l(θ.sub.l0−θ.sub.l)−B.sub.l({dot over (θ)}.sub.l)+J.sub.rh.sup.T(θ.sub.r)[k.sub.rh(x.sub.rh0−L.sub.rh(θ.sub.r))+b.sub.rh({dot over (x)}.sub.rh0−J.sub.rh(θ.sub.r){dot over (θ)}.sub.r)]+J.sub.re.sup.T(θ.sub.r)[k.sub.re(x.sub.re0−L.sub.re(θ.sub.r))+b.sub.re({dot over (x)}.sub.re0−J.sub.re(θ.sub.r){dot over (θ)}.sub.r)]+K.sub.r(θ.sub.l0−θ.sub.r)−B.sub.r({dot over (θ)}.sub.r)
in which: τ denotes the torque generated by the control law; x.sub.lh0, b.sub.lh, and k.sub.lh denote the impedance parameters for the left hand virtual spring (i.e., virtual spring 212); x.sub.rh0, b.sub.rh, and k.sub.rh denote the impedance parameters for the right hand virtual spring (i.e., virtual spring 214); x.sub.le0, b.sub.le, and k.sub.le denote the impedance parameters for the left elbow virtual spring (i.e., virtual spring 218); x.sub.re0, b.sub.re, and k.sub.re denote the impedance parameters for the right elbow virtual spring (i.e., virtual spring 222); θ.sub.l0, B.sub.l, and K.sub.l denote the impedance parameters for the left arm configuration behavior; θ.sub.r0, B.sub.r, and K.sub.r denote the impedance parameters for the right arm configuration behavior; θ.sub.l and θ.sub.r denote the actual configuration of the left and right arms, respectively; {dot over (θ)}.sub.l and {dot over (θ)}.sub.r denote the configuration-space velocity of the left and right arms, respectively; L.sub.lh and L.sub.rh denote the forward kinematic equations for the left and right hands, respectively; J.sub.lh, J.sub.rh, J.sub.le, and J.sub.re denote the Jacobian matrices for the left hand, right hand, left elbow, and right elbow, respectively; and J.sub.lh.sup.T, J.sub.rh.sup.T, J.sub.le.sup.T, and J.sub.re.sup.T denote the transposes of the Jacobian matrices for the left hand, right hand, left elbow, and right elbow, respectively.
(50) It should be understood that the above composite control law can be used to drive the left and right end-effectors 206 and 208 towards respective positions x.sub.lh0 and X.sub.rh0 and the left and right elbows 216 and 220 towards respective positions x.sub.le0 and x.sub.re0, while simultaneously driving the left and right robots arms 202 and 204 to respective configurations θ.sub.l0 and θ.sub.r0. The positions x.sub.lh0, x.sub.rh0, x.sub.le0, and x.sub.re0 and configurations θ.sub.l0 and θ.sub.r0 may be selected using any suitable techniques, examples of which are described below in conjunction with
(51) It should be noted that the composite robot control law described above is composed of six impedance modules, each of which may be computed independently and in parallel. If needed or advantageous, the control law can further be decomposed into even simpler components. For example, in some applications it may be sufficient for the configuration-space stiffness matrices K.sub.l and K.sub.r and the damping matrices B.sub.l and B.sub.r to be diagonal and positive-definite. In that case, a virtual damped spring may be assigned to each individual joint independently.
(52) Similarly, knowledge of an object to be manipulated and/or a task to be performed may enable decomposition of an end-effector stiffness matrix (e.g., a 6×6 matrix). For example, to trace a poorly-known surface, the stiffness may be decomposed into six independent behaviors: in directions tangent to the nominal surface, stiffness should be high; in the normal direction (and in all rotational degrees of freedom) stiffness should be low. Such decomposition can reduce computation required for compositional impedance programming.
(53) It is appreciated herein that, using the control law of Eq. 1 and/or Eq. 3, the effective stiffness and damping of the end-effector (or “endpoint”) are not fully described by k.sub.ef and b.sub.ef. Instead, there is also some contribution to the endpoint stiffness and damping behavior from the virtual springs and dampers placed at the robot joints.
(54) Moreover, when using joint-space impedance to manage redundancies, if the desired configuration θ.sub.0 remains fixed, there will be increasing steady-state errors in positioning if x.sub.ef0 (the endpoint rest position) is driven away from L.sub.ef(θ.sub.0). In some embodiments, these errors can be mitigated by keeping the joint stiffnesses K very small compared to the endpoint stiffness k.sub.ef when projected into joint space (as previously discussed), or by periodically re-adjusting θ.sub.0 to match the current joint positions. In other embodiments, null-space torque projections can be used to minimize (and ideally eliminate) any effect that the torques generated by the joint-space stiffness controller have on torques at the robot endpoint. This approach is discussed next.
(55) For kinematically redundant robots (i.e. when the number of robot degrees of freedom, n, is greater than the number of endpoint-space coordinates, m, such as with robot 102 of
(56) In some embodiments of the present disclosure, techniques can be used to reduce (and ideally minimize) the divergence of net robot control behavior from that desired or appropriate for a given task. In particular, the disclosed techniques can reduce or eliminate distortion of desired endpoint-space stiffness and damping matrices resulting from adding on extra joint-space stiffness and damping. In addition, the disclosed techniques can reduce divergence that may occur as the manipulator moves away from its starting equilibrium position (where x.sub.ef=x.sub.ef0=L.sub.ef(θ.sub.0)), resulting from the added joint-space stiffness, K.
(57) In order to counteract these negative effects, in some embodiments, the controller may delegate complete control of all m endpoint degrees of freedom to the endpoint-space impedance controller, while also only delegating the n−m redundant degrees of freedom in the joint-space to the joint-space controller. No torques arising from the added joint-space controller will interfere with tasks performed in the endpoint-space of the robot.
(58) It is noted that a secondary controller operating in the n−m redundant degrees of freedom does not need to be a simple impedance around a nominal set of joint angles. Examples of other secondary tasks that would control the redundant degrees of freedom in a robot might be managing elbow contact with the environment, collision avoidance, or endpoint mass matrix optimization.
(59) An existing approach to preventing a secondary controller acting in the redundant degrees of the joint space from interfering in the endpoint degrees of freedom is to use a nullspace projection matrix. While existing approaches can be effective while the robot is well inside its workspace and has a Jacobian of full row rank (i.e. the rank of J.sub.ef is m, where J.sub.ef is defined above in the context of Eq. 2), these approaches can result in robot control becoming unstable at or near kinematic singularities.
(60) One reason for using the additional joint-space stiffness matrix, K, is that the endpoint stiffness, K.sub.ef, may be insufficient to apply a restoring stiffness to all n degrees of freedom in the manipulator (e.g., a robot arm). This can be seen by reflecting the endpoint-space stiffness matrix k.sub.ef into the joint-space. Ignoring any kinematic stiffness terms (i.e. assuming zero endpoint force), the equivalent joint-space stiffness matrix arising from an endpoint stiffness matrix is given by:
K.sub.θ=J.sub.ef.sup.Tk.sub.efJ.sub.ef (Eq. 4)
(61) Here, J.sub.ef is of rank r≤m<n. Since k.sub.ef∈.sup.m×m with rank m, then K.sub.θ∈
.sup.m×m with at most rank r<n can be determined. This means that the joint-space reflection of the desired endpoint stiffness matrix has an n−m dimensional nullspace when the Jacobian has full row rank, and an n−r dimensional nullspace when the Jacobian does not have full row rank.
(62) In the case where there is a non-zero force or torque on the end-effector, a different technique may be used to generate the equivalent joint-space stiffness matrix, K.sub.θ. In particular, a kinematic stiffness matrix, Γ, may be introduced as follows:
K.sub.θ=Γ+J.sub.efk.sub.efJ.sub.ef (Eq. 4a)
where Γ is an n×n matrix given by:
(63)
(64) Each term of Γ is given by:
(65)
where f is the m×1 vector of forces at the endpoint of the robot. In the case when the robot endpoint is not in contact with the environment, f is zero and Eq. 4a simplifies to Eq. 4.
(66) It is appreciated herein that an improved approach for controlling these nullspace motions is to generate an n−r joint-space stiffness matrix that spans the nullspace of k.sub.ef reflected into the joint-space. Doing so can allow for control the redundant degrees of freedom without impacting the endpoint-space interactive properties. An illustrative process and controller for achieving this result are described next.
(67) First, an eigenvalue decomposition can be performed on the reflection the endpoint stiffness matrix into joint-space (K.sub.θ):
K.sub.θ=VΛV.sup.−1 (Eq. 5)
(68) Here, V is a matrix whose columns are the eigenvectors of K.sub.θ, and Λ is a diagonal matrix of eigenvalues of K.sub.θ, some of which are zero if m<n. Given a matrix K.sub.θ, the eigenvector decomposition process can include finding a matrix V and a matrix Λ such that the following requirements are satisfied: (a) Λ is diagonal, (b) V has normalized columns, and (c) K.sub.θ=VΛV.sup.−1 (as in Eq. 5). If k.sub.ef is chosen to be symmetric, K.sub.θ will also be symmetric, which means that V is orthogonal and all the eigenvalues are real. Therefore, V.sup.−1=V.sup.T and as a result:
K.sub.θ=VΛV.sup.T (Eq. 6)
(69) In the case where the Jacobian has full row rank (corresponding to conditions where the robot is well within its dexterous workspace), r=m. The structure of these matrices in this case are as follows:
(70)
(71) In the diagonal matrix, there are (n−m) diagonal zero entries (which remain zero), and m non-zero eigenvalues. As can be seen with this decomposition, the nullspace dimension is (n−m) and the first (n−m) eigenvectors are the nullspace basis vectors. The m non-zero eigenvalues and eigenvectors multiply to give the K.sub.θ matrix.
(72) The nullspace can be filled by replacing the (n−m) zeros on the diagonal with selected finite positive real values. These nullspace replacement values may have any convenient value selected based on the requirements for a particular robot task. For example, larger values may be chosen if it is desirable to have additional joint stiffness for a given task. One factor that can be used to select the nullspace replacement values is a desired sensitivity to endpoint position and inertia (this may be of particular usefulness in scenarios where the position of an endpoint cannot be determined directly, but instead must be inferred based on the joint position). Those skilled in the art will appreciate that other uses of the nullspace configuration are possible (i.e., other factors and considerations can be used to select the nullspace replacement values).
(73) With the nullspace values replaced by positive real values, the matrix can be multiplied out to obtain a full rank version of K.sub.θ, referred to herein as K.sub.θ,Full. The eigenstructure becomes:
(74)
(75) The nullspace replacement values, k.sub.i, correspond to stiffnesses that will provide a restoring force to any perturbations in the manipulator nullspace. This ensures that if K.sub.θ,Full is full rank, and thus, the robot will not have any uncontrolled nullspace motions.
(76) The full-rank joint space stiffness matrix, K.sub.θ,Full, can be broken up into a rank m endpoint stiffness matrix, and a rank n−m joint-space stiffness matrix that operates in the nullspace of the joint-space stiffness matrix. In some embodiments, this can be done by treating the matrix multiplication in Eq. 8 as a sum of n rank one matrices of size n×n. This permits K.sub.θ,Full to be broken down into an original K.sub.θ matrix and a nullspace-filled K.sub.θ,Null matrix, as follows:
(77)
(78) This summation can be written more compactly as:
K.sub.θ,Full=K.sub.θ,Null+K.sub.θ=Σ.sub.i=1.sup.n−mv.sub.ik.sub.iv.sub.i.sup.T+Σ.sub.i=(n−m+1).sup.nv.sub.iλ.sub.iv.sub.i.sup.T (Eq. 10)
(79) Thus, the first n−m terms in the sum encode the filled nullspace portion of the matrix and the last m terms in the sum represent the original K.sub.θ matrix, which encodes the original endpoint stiffness matrix, k.sub.ef.
(80) The process disclosed above can also be used to generate a nullspace-filled damping matrix, B.sub.θ,Null, by starting with the endpoint damping matrix, b.sub.ef instead of the endpoint stiffness matrix, k.sub.ef.
(81) The robot controller of Eq. 3 can be modified to use nullspace-filled matrices as follows:
τ.sub.ef+c=J.sub.ef.sup.T(θ)[k.sub.ef(x.sub.ef0−L.sub.ef(θ))+b.sub.ef({dot over (x)}.sub.ef0−J.sub.ef(θ){dot over (θ)})]+K.sub.θ,Null(θ.sub.0−θ)−B.sub.θ,Null({dot over (θ)}) (Eq. 11)
(82) As discussed above, the equivalent joint-space stiffness matrix, K.sub.θ, used in the control law of Eq. 11 may be generated in two different ways. According to a first technique, K.sub.θ may be generated by “assuming” that the end-effector is not in contact with the environment, that is by ignoring non-zero force/torque on the end-effector force/torque even if it may happen to exist. This first technique is illustrated, for example, by Eq. 4 above. According to a second technique, non-zero force/torque on the end-effector may be taken into account when generating K.sub.θ. This second technique is illustrated, for example, by Eqs. 4a, 4b, and 4c above. Thus, depending on which technique is used to generate the equivalent joint-space stiffness matrix, K.sub.θ, two different control laws may be arrived at using Eq. 11. It is appreciated herein that, in some applications, it may be desirable to choose the first technique in order to reduce computational complexity.
(83) The controller of Eq. 11 can be used to achieve proper restoring torques (parameterized by k.sub.1 . . . k.sub.n) without interfering with the desired endpoint behavior.
(84) Turning to
(85) When the control law is implemented, it is necessary to check which eigenvalues are zero, separate out the zero valued eigenvalue/eigenvector pairs, replace the zero values, and then form the null-filled impedance matrix (i.e., K.sub.θ,Null or B.sub.θ,Null). When floating point eigenvector/eigenvalue computations are used, the values in question may not actually be zero, but rather, they may become very small (e.g., on the order of 10.sup.−14 or 10.sup.−15 or other values depending on the particular computer architecture used or other implementation details). This is due to the finite precision of floating point arithmetic. Thus, in some embodiments, a threshold value may be used to determine the eigenvalue zeros. When the eigenvalues are below this threshold, they are replaced with a finite positive real number. As used herein, the term “near-zero-valued eigenvalue” refers to an eigenvalue that is equal to or approximately equal to zero. In some embodiments, a near-zero-valued eigenvalue is a value less than a predetermined threshold value (e.g., less than 10.sup.−14 or 10.sup.−15). The term “non-zero-valued eigenvalue” can refer to an eigenvalue that is greater than or equal to the predetermined threshold value (e.g., greater than or equal to 10.sup.−14 or 10.sup.−15).
(86) It is recognized herein that using this threshold approach has the potential to effect robot control performance when transitioning from a non-singular robot configuration to a singular configuration. As the robot is brought into singularity, one or more of the non-zero eigenvalues will become zero as the Jacobian loses rank.
(87)
(88) As mentioned above, when using floating point arithmetic, it may be necessary to define a threshold for the decision to replace a very small eigenvalue with a finite positive real number. Having this threshold may introduce abrupt, discontinuous changes of torque when previously large eigenvalues begin to approach zero near singularity as very small eigenvalues may be suddenly replaced with a relatively large number (i.e., the selected nullspace replacement values, k.sub.i).
(89) To provide improved control, in some embodiments, the replacement eigenvalue for a previously large eigenvalue that approaches zero near singularity may be iteratively increased (e.g., linearly ramped up) from a relatively small value (i.e., a threshold value) to the desired nullspace replacement value (e.g., 1.0) as the manipulator proceeds toward singularity, such that the eigenvalue reaches 1.0 just before singularity. This can result in continuous or near-continuous torque control as the robot transitions into a singularity.
(90) For example, referring to
(91) This technique can be applied in situations where the various eigenvectors of K.sub.θ can be determined and where it is possible to determine when the robot is approaching a singularity. In this case, if any eigenvalue crosses a small threshold as the singularity is approached, that replacement value can be slowly ramped up before singularity is reached. Replacing the eigenvalue with a positive real number in a continuous fashion before singularity is reached can reduce (and ideally eliminate) rapid changes in torque as a singularity is approached.
(92)
(93) Rectangular elements (typified by element 302 in
(94) Referring to
(95) At block 404, impedance parameters are selected for each of the impedance modules. For example, if a given impedance module uses a damped spring control law to manipulate an object using an end-effector, a resting position, a stiffness, and a damping coefficient may be selected. As another example, impedance parameters may be selected to achieve a joint configuration that will reduce (and ideally minimize) apparent end-effector mass normal to an object's surface. In some embodiments, techniques described in the '946 patent may be used to select impedance parameters.
(96) At block 406, a nullspace-filled impedance matrix may be generated for one or more of the impedance modules. In some embodiments, two nullspace-filled matrices may be generated for a given module: one to control stiffness and one to control damping. A detailed process for generating a nullspace-filled stiffness/damping matrix as described below in the context of
(97) At block 408, a composite control law for the robot is generated using the configuration-space impedance module control laws. As described above in conjunction with
(98) At block 410, the composite control law is used to control the robot using, for example, a force-based or a position-based impedance controller, as described above in conjunction with
(99) Referring to
(100) At block 422, the desired endpoint impedance matrix may be reflected into an equivalent joint-space impedance matrix, such as described above in the context of Eq. 4 and/or Eq. 4a. In some embodiments, an assumption can be made that there are no contact forces on the endpoint.
(101) At block 424, eigenvector decomposition can be performed on the joint-space impedance matrix, such as described above in the context of Eqs. 5 and 6.
(102) At block 426, the decomposed matrix can be divided into the nullspace eigenvectors/eigenvalues (the near-zero-valued eigenvalues), and the range-space eigenvectors/eigenvalues (the non-zero-valued eigenvectors), such as described above in the context of Eq. 7.
(103) At block 428, the near-zero valued eigenvalues can be replaced with selected finite positive real values. Factors that may be considered when selecting the nullspace replacement values are described above in the context of Eq. 8. In some embodiments, a threshold value may be specified to determine if a specific eigenvalue is near-zero valued or non-zero valued (this may be important if the method 420 is implemented in a computer using floating point arithmetic). In some embodiments, block 428 can further include iteratively increasing one or more eigenvalues approaching zero at singularity from a threshold value to corresponding selected finite positive real values.
(104) At block 430, the eigenvector-eigenvalue pairs can be used to construct or otherwise generate a nullspace-filled impedance matrix, such as described above in the context of Eqs. 9 and 10. The nullspace-filled impedance matrix can be used as part of the robot control law, such as described above in the context of Eq. 11.
(105)
(106) Processor(s) 502 may use any known processor technology, including but not limited to graphics processors and multi-core processors. Suitable processors for the execution of a program of instructions may include, by way of example, both general and special purpose microprocessors, and the sole processor or one of multiple processors or cores, of any kind of computer. Bus 510 may be any known internal or external bus technology, including but not limited to ISA, EISA, PCI, PCI Express, NuBus, USB, Serial ATA or FireWire. Volatile memory 504 may include, for example, SDRAM. Processor 502 may receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer may include a processor for executing instructions and one or more memories for storing instructions and data.
(107) Non-volatile memory 506 may include by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. Non-volatile memory 506 may store various computer instructions including operating system instructions 512, communication instructions 514, application instructions 516, and application data 517. Operating system instructions 512 may include instructions for implementing an operating system (e.g., Mac OS®, Windows®, or Linux). The operating system may be multi-user, multiprocessing, multitasking, multithreading, real-time, and the like. Communication instructions 514 may include network communications instructions, for example, software for implementing communication protocols, such as TCP/IP, HTTP, Ethernet, telephony, etc.
(108) Peripherals 508 may be included within the server device 500 or operatively coupled to communicate with the server device 500. Peripherals 508 may include, for example, network interfaces 518, input devices 520, and storage devices 522. Network interfaces may include for example an Ethernet or Wi-Fi adapter. Input devices 520 may be any known input device technology, including but not limited to a keyboard (including a virtual keyboard), mouse, trackball, and touch-sensitive pad or display. Storage devices 522 may include one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks.
(109) The system can perform processing, at least in part, via a computer program product, (e.g., in a machine-readable storage device), for execution by, or to control the operation of, data processing apparatus (e.g., a programmable processor, a computer, or multiple computers). Each such program may be implemented in a high-level procedural or object-oriented programming language to communicate with a computer system. However, the programs may be implemented in assembly or machine language. The language may be a compiled or an interpreted language and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program may be deployed to be executed on one computer or on multiple computers at one site or distributed across multiple sites and interconnected by a communication network. A computer program may be stored on a storage medium or device (e.g., CD-ROM, hard disk, or magnetic diskette) that is readable by a general or special purpose programmable computer for configuring and operating the computer when the storage medium or device is read by the computer. Processing may also be implemented as a machine-readable storage medium, configured with a computer program, where upon execution, instructions in the computer program cause the computer to operate. The program logic may be run on a physical or virtual processor. The program logic may be run across one or more physical or virtual processors.