Impedance control

From KYNNpedia
Revision as of 23:37, 29 January 2024 by imported>Ost316 (Rescuing 2 sources and tagging 0 as dead.) #IABot (v2.0.9.5)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Merge to

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."<ref>Hogan, N. (June 6–8, 1984). "Impedance Control: An Approach to Manipulation" (PDF). American Control Conference. pp. 304, 313. Archived (PDF) from the original on December 21, 2021. Retrieved September 19, 2013.{{cite web}}: CS1 maint: date and year (link)</ref>

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>(\boldsymbol{F})</math> and position, velocity and acceleration <math>(\boldsymbol{x}, \boldsymbol{v}, \boldsymbol{a})</math>: <math>\boldsymbol{F} = M\boldsymbol{a} + C\boldsymbol{v} + K\boldsymbol{x} + \boldsymbol{f} + \boldsymbol{s}</math>, with <math>\boldsymbol{f}</math> being friction and <math>\boldsymbol{s}</math> being static force.

Masses (<math>M</math>) and springs (with stiffness <math>K</math>) are energy storing elements, whereas a damper (with damping <math>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.<ref>Buchli, J. (July 12, 2011). "Force, compliance, impedance and interaction control, Summer school dynamic walking and running with robots" (PDF). pp. 212–243. Archived from the original (PDF) on October 16, 2017.</ref>

Note that mechanical systems are inherently multi-dimensional - a typical robot arm can place an object in three dimensions (<math>(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

{{{2}}}

 

 

 

 

({{{3}}})

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

One may propose a control law of the following form:

{{{2}}}

 

 

 

 

({{{3}}})

_\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>\boldsymbol{q}_\mathrm{d}</math> denotes the desired joint angular position, <math>\boldsymbol{K}</math> and <math>\boldsymbol{D}</math> are the control parameters, and <math>\hat{\boldsymbol{M}}</math>, <math>\hat{\boldsymbol{c}}</math>, <math>\hat{\boldsymbol{g}}</math>, and <math>\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>\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>\boldsymbol{e} = \boldsymbol{q}_\mathrm{d}-\boldsymbol{q}</math>, one obtains

<math>\boldsymbol{K}\boldsymbol{e} + \boldsymbol{D}\dot{\boldsymbol{e}} + \boldsymbol{M}\ddot{\boldsymbol{e}} = \boldsymbol{\tau}_{\mathrm{ext}} </math>

Since the matrices <math>\boldsymbol{K}</math> and <math>\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>\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>\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>\boldsymbol{q}</math> denotes joint angular position, <math>\boldsymbol{x}</math> task-space position, <math>\boldsymbol{\Lambda}</math> the symmetric and positive-definite task-space inertia matrix. The terms <math>\boldsymbol{\mu}</math>, <math>\boldsymbol{\gamma}</math>, <math>\boldsymbol{\eta}</math>, and <math>\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>\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>\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>\boldsymbol{x}_\mathrm{d}</math> denotes the desired task-space position, <math>\boldsymbol{K}_\mathrm{x}</math> and <math>\boldsymbol{D}_\mathrm{x}</math> are the task-space stiffness and damping matrices, and <math>\hat{\boldsymbol{\Lambda}}</math>, <math>\hat{\boldsymbol{\mu}}</math>, <math>\hat{\boldsymbol{\gamma}}</math>, and <math>\hat{\boldsymbol{\eta}}</math> are the internal model of the corresponding mechanical terms.

Similarly, one has

<math>\boldsymbol{e}_\mathrm{x} = \boldsymbol{x}_\mathrm{d}-\boldsymbol{x}</math>,

<math>\boldsymbol{K}_\mathrm{x}\boldsymbol{e}_\mathrm{x} + \boldsymbol{D}_\mathrm{x}\dot{\boldsymbol{e

 

 

 

 

({{{3}}})

_\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>\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>\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>\boldsymbol{D}_\mathrm{x}</math> is usually chosen such that the closed-loop system (3) is stable.<ref>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</ref>

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.<ref>Dietrich, A. (2016). Whole-Body Impedance Control of Wheeled Humanoid Robots. Springer International Publishing. ISBN 978-3-319-40556-8. Archived from the original on September 7, 2017. Retrieved September 1, 2017.</ref>

References

<references group="" responsive="1"></references>