Impedance control

From HandWiki

Impedance control is an approach to dynamic control relating force and position. It is often used in applications where a manipulator interacts with its environment and the force position relation is of concern. Examples of such applications include humans interacting with robots, where the force produced by the human relates to how fast the robot should move/stop. Simpler control methods, such as position control or torque control, perform poorly when the manipulator experiences contacts. Thus impedance control is commonly used in these settings.

Mechanical impedance is the ratio of force output to motion input. This is analogous to electrical impedance that is the ratio of voltage output to current input (e.g. resistance is voltage divided by current). A "spring constant" defines the force output for a displacement (extension or compression) of the spring. A "damping constant" defines the force output for a velocity input. If we control the impedance of a mechanism, we are controlling the force of resistance to external motions that are imposed by the environment.

Mechanical admittance is the inverse of impedance - it defines the motions that result from a force input. If a mechanism applies a force to the environment, the environment will move, or not move, depending on its properties and the force applied. For example, a marble sitting on a table will react very differently to a given force than will a log floating in a lake.

The key theory behind the method is to treat the environment as an admittance and the manipulator as an impedance. It assumes the postulate that "no controller can make the manipulator appear to the environment as anything other than a physical system." This rule of thumb can also be stated as: "in the most common case in which the environment is an admittance (e.g. a mass, possibly kinematically constrained) that relation should be an impedance, a function, possibly nonlinear, dynamic, or even discontinuous, specifying the force produced in response to a motion imposed by the environment."[1]

Principle

Impedance control doesn't simply regulate the force or position of a mechanism. Instead it regulates the relationship between force and position on the one hand, and velocity and acceleration on the other hand, i.e. the impedance of the mechanism. It requires a position (velocity or acceleration) as input and has a resulting force as output. The inverse of impedance is admittance. It imposes position. So actually the controller imposes a spring-mass-damper behavior on the mechanism by maintaining a dynamic relationship between force [math]\displaystyle{ (\boldsymbol{F}) }[/math] and position, velocity and acceleration [math]\displaystyle{ (\boldsymbol{x}, \boldsymbol{v}, \boldsymbol{a}) }[/math]: [math]\displaystyle{ \boldsymbol{F} = M\boldsymbol{a} + C\boldsymbol{v} + K\boldsymbol{x} + \boldsymbol{f} + \boldsymbol{s} }[/math], with [math]\displaystyle{ \boldsymbol{f} }[/math] being friction and [math]\displaystyle{ \boldsymbol{s} }[/math] being static force.

Masses ([math]\displaystyle{ M }[/math]) and springs (with stiffness [math]\displaystyle{ K }[/math]) are energy storing elements, whereas a damper (with damping [math]\displaystyle{ C }[/math]) is an energy dissipating device. If we can control impedance, we are able to control energy exchange during interaction, i.e. the work being done. So impedance control is interaction control.[2]

Note that mechanical systems are inherently multi-dimensional - a typical robot arm can place an object in three dimensions ([math]\displaystyle{ (x, y, z) }[/math] coordinates) and in three orientations (e.g. roll, pitch, yaw). In theory, an impedance controller can cause the mechanism to exhibit a multi-dimensional mechanical impedance. For example, the mechanism might act very stiff along one axis and very compliant along another. By compensating for the kinematics and inertias of the mechanism, we can orient those axes arbitrarily and in various coordinate systems. For example, we might cause a robotic part holder to be very stiff tangentially to a grinding wheel, while being very compliant (controlling force with little concern for position) in the radial axis of the wheel.

Mathematical basics

Joint space

An uncontrolled robot can be expressed in Lagrangian formulation as

[math]\displaystyle{ \boldsymbol{\tau} = \boldsymbol{M}(\boldsymbol{q})\ddot{\boldsymbol{q}} + \boldsymbol{c}(\boldsymbol{q},\dot{\boldsymbol{q}}) + \boldsymbol{g}(\boldsymbol{q}) + \boldsymbol{h}(\boldsymbol{q},\dot{\boldsymbol{q}}) + \boldsymbol{\tau}_{\mathrm{ext}} }[/math],

 

 

 

 

(1)

where [math]\displaystyle{ \boldsymbol{q} }[/math] denotes joint angular position, [math]\displaystyle{ \boldsymbol{M} }[/math] is the symmetric and positive-definite inertia matrix, [math]\displaystyle{ \boldsymbol{c} }[/math] the Coriolis and centrifugal torque, [math]\displaystyle{ \boldsymbol{g} }[/math] the gravitational torque, [math]\displaystyle{ \boldsymbol{h} }[/math] includes further torques from, e.g., inherent stiffness, friction, etc., and [math]\displaystyle{ \boldsymbol{\tau}_{\mathrm{ext}} }[/math] summarizes all the external forces from the environment. The actuation torque [math]\displaystyle{ \boldsymbol{\tau} }[/math] on the left side is the input variable to the robot.

One may propose a control law of the following form:

[math]\displaystyle{ \boldsymbol{\tau} = \boldsymbol{K}(\boldsymbol{q}_\mathrm{d}-\boldsymbol{q}) + \boldsymbol{D}(\dot{\boldsymbol{q}}_\mathrm{d}-\dot{\boldsymbol{q}}) + \hat{\boldsymbol{M}}(\boldsymbol{q})\ddot{\boldsymbol{q}}_\mathrm{d} + \hat{\boldsymbol{c}}(\boldsymbol{q},\dot{\boldsymbol{q}}) + \hat{\boldsymbol{g}}(\boldsymbol{q}) + \hat{\boldsymbol{h}}(\boldsymbol{q},\dot{\boldsymbol{q}}), }[/math]

 

 

 

 

(2)

where [math]\displaystyle{ \boldsymbol{q}_\mathrm{d} }[/math] denotes the desired joint angular position, [math]\displaystyle{ \boldsymbol{K} }[/math] and [math]\displaystyle{ \boldsymbol{D} }[/math] are the control parameters, and [math]\displaystyle{ \hat{\boldsymbol{M}} }[/math], [math]\displaystyle{ \hat{\boldsymbol{c}} }[/math], [math]\displaystyle{ \hat{\boldsymbol{g}} }[/math], and [math]\displaystyle{ \hat{\boldsymbol{h}} }[/math] are the internal model of the corresponding mechanical terms.

Inserting (2) into (1) gives an equation of the closed-loop system (controlled robot):

[math]\displaystyle{ \boldsymbol{K}(\boldsymbol{q}_\mathrm{d}-\boldsymbol{q}) + \boldsymbol{D}(\dot{\boldsymbol{q}}_\mathrm{d}-\dot{\boldsymbol{q}}) + \boldsymbol{M}(\boldsymbol{q})(\ddot{\boldsymbol{q}}_\mathrm{d}-\ddot{\boldsymbol{q}}) = \boldsymbol{\tau}_{\mathrm{ext}}. }[/math]

Let [math]\displaystyle{ \boldsymbol{e} = \boldsymbol{q}_\mathrm{d}-\boldsymbol{q} }[/math], one obtains

[math]\displaystyle{ \boldsymbol{K}\boldsymbol{e} + \boldsymbol{D}\dot{\boldsymbol{e}} + \boldsymbol{M}\ddot{\boldsymbol{e}} = \boldsymbol{\tau}_{\mathrm{ext}} }[/math]

Since the matrices [math]\displaystyle{ \boldsymbol{K} }[/math] and [math]\displaystyle{ \boldsymbol{D} }[/math] have the dimension of stiffness and damping, they are commonly referred to as stiffness and damping matrix, respectively. Clearly, the controlled robot is essentially a multi-dimensional mechanical impedance (mass-spring-damper) to the environment, which is addressed by [math]\displaystyle{ \boldsymbol{\tau}_{\mathrm{ext}} }[/math].

Task space

The same principle also applies to task space. An uncontrolled robot has the following task-space representation in Lagrangian formulation:

[math]\displaystyle{ \boldsymbol{\mathcal{F}} = \boldsymbol{\Lambda}(\boldsymbol{q})\ddot{\boldsymbol{x}} + \boldsymbol{\mu}(\boldsymbol{x},\dot{\boldsymbol{x}}) + \boldsymbol{\gamma}(\boldsymbol{q}) + \boldsymbol{\eta}(\boldsymbol{q},\dot{\boldsymbol{q}}) + \boldsymbol{\mathcal{F}}_{\mathrm{ext}} }[/math],

where [math]\displaystyle{ \boldsymbol{q} }[/math] denotes joint angular position, [math]\displaystyle{ \boldsymbol{x} }[/math] task-space position, [math]\displaystyle{ \boldsymbol{\Lambda} }[/math] the symmetric and positive-definite task-space inertia matrix. The terms [math]\displaystyle{ \boldsymbol{\mu} }[/math], [math]\displaystyle{ \boldsymbol{\gamma} }[/math], [math]\displaystyle{ \boldsymbol{\eta} }[/math], and [math]\displaystyle{ \boldsymbol{\mathcal{F}}_{\mathrm{ext}} }[/math] are the generalized force of the Coriolis and centrifugal term, the gravitation, further nonlinear terms, and environmental contacts. Note that this representation only applies to robots with redundant kinematics. The generalized force [math]\displaystyle{ \boldsymbol{\mathcal{F}} }[/math] on the left side corresponds to the input torque of the robot.

Analogously, one may propose the following control law:

[math]\displaystyle{ \boldsymbol{\mathcal{F}} = \boldsymbol{K}_\mathrm{x}(\boldsymbol{x}_\mathrm{d}-\boldsymbol{x}) + \boldsymbol{D}_\mathrm{x}(\dot{\boldsymbol{x}}_\mathrm{d}-\dot{\boldsymbol{x}}) + \hat{\boldsymbol{\Lambda}}(\boldsymbol{q})\ddot{\boldsymbol{x}}_\mathrm{d} + \hat{\boldsymbol{\mu}}(\boldsymbol{q},\dot{\boldsymbol{q}}) + \hat{\boldsymbol{\gamma}}(\boldsymbol{q}) + \hat{\boldsymbol{\eta}}(\boldsymbol{q},\dot{\boldsymbol{q}}), }[/math]

where [math]\displaystyle{ \boldsymbol{x}_\mathrm{d} }[/math] denotes the desired task-space position, [math]\displaystyle{ \boldsymbol{K}_\mathrm{x} }[/math] and [math]\displaystyle{ \boldsymbol{D}_\mathrm{x} }[/math] are the task-space stiffness and damping matrices, and [math]\displaystyle{ \hat{\boldsymbol{\Lambda}} }[/math], [math]\displaystyle{ \hat{\boldsymbol{\mu}} }[/math], [math]\displaystyle{ \hat{\boldsymbol{\gamma}} }[/math], and [math]\displaystyle{ \hat{\boldsymbol{\eta}} }[/math] are the internal model of the corresponding mechanical terms.

Similarly, one has

[math]\displaystyle{ \boldsymbol{e}_\mathrm{x} = \boldsymbol{x}_\mathrm{d}-\boldsymbol{x} }[/math],

[math]\displaystyle{ \boldsymbol{K}_\mathrm{x}\boldsymbol{e}_\mathrm{x} + \boldsymbol{D}_\mathrm{x}\dot{\boldsymbol{e}}_\mathrm{x} + \boldsymbol{\Lambda}\ddot{\boldsymbol{e}}_\mathrm{x} = \boldsymbol{\mathcal{F}}_{\mathrm{ext}} }[/math]

 

 

 

 

(3)

as the closed-loop system, which is essentially a multi-dimensional mechanical impedance to the environment ([math]\displaystyle{ \boldsymbol{\mathcal{F}}_{\mathrm{ext}} }[/math]) as well. Thus, one can choose desired impedance (mainly stiffness) in the task space. For example, one may want to make the controlled robot act very stiff along one direction while relatively compliant along others by setting

[math]\displaystyle{ \boldsymbol{K}_\mathrm{x} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1000 \end{pmatrix} \mathrm{N/m}, }[/math]

assuming the task space is a three-dimensional Euclidean space. The damping matrix [math]\displaystyle{ \boldsymbol{D}_\mathrm{x} }[/math] is usually chosen such that the closed-loop system (3) is stable.[3]

Applications

Impedance control is used in applications such as robotics as a general strategy to send commands to a robotics arm and end effector that takes into account the non-linear kinematics and dynamics of the object being manipulated.[4]

References

  1. Hogan, N. (June 6–8, 1984). "Impedance Control: An Approach to Manipulation". American Control Conference. pp. 304,313. http://summerschool.stiff-project.org/fileadmin/pdf/Hog1985.pdf. 
  2. Buchli, J. (July 12, 2011). "Force, compliance, impedance and interaction control, Summer school dynamic walking and running with robots". pp. 212–243. Archived from the original on October 16, 2017. https://web.archive.org/web/20171016070615/http://www.adrl.ethz.ch/archive/forcecontrol11.pdf. 
  3. Albu-Schäffer, A.; Ott, C.; Hirzinger, G. (2004), "A passivity based Cartesian impedance controller for flexible joint robots - part II: full state feedback, impedance design and experiments.", In Proceedings of the 2004 IEEE International Conference on Robotics and Automation: pp. 2666–2672 
  4. Dietrich, A. (2016). Whole-Body Impedance Control of Wheeled Humanoid Robots. Springer International Publishing. ISBN 978-3-319-40556-8. https://www.springer.com/de/book/9783319405568. Retrieved September 1, 2017.