The Passivity Paradigm in Robot Control

32
The Passivity Paradigm in Robot Control Mark W. Spong Coordinated Science Lab University of Illinois 1308 W. Main St. Urbana, IL 61801 This work was performed in collaboration with Nikhil Chopra, Gagandeep Bhatia, Paul Berestesky, Rogelio Lozano, and Francesco Bullo and was partially supported by the Office of Naval Research grant N00014-02-1-0011, by the National Science Founda- tion grants ECS-0122412, HS-0233314 and CCR-0209202, by the Vodafone Founda- tion, and by a UIUC/CNRS cooperative agreement. M.W. Spong, UIUC – p.1/32

Transcript of The Passivity Paradigm in Robot Control

Page 1: The Passivity Paradigm in Robot Control

The Passivity Paradigm in Robot Control

Mark W. SpongCoordinated Science Lab

University of Illinois1308 W. Main St.Urbana, IL 61801

This work was performed in collaboration with Nikhil Chopra, Gagandeep Bhatia, Paul

Berestesky, Rogelio Lozano, and Francesco Bullo and was partially supported by the

Office of Naval Research grant N00014-02-1-0011, by the National Science Founda-

tion grants ECS-0122412, HS-0233314 and CCR-0209202, by the Vodafone Founda-

tion, and by a UIUC/CNRS cooperative agreement.

M.W. Spong, UIUC – p.1/32

Page 2: The Passivity Paradigm in Robot Control

The Passivity Paradigm

Passivity is one of the most physically appealing concepts in systems theory and hasbeen used as a fundamental tool in the development of control tools for linear andnonlinear systems.

For robots and other mechanical systems, passivity is related to energy dissipation andso leads to natural results on stability and tracking.

In this talk we will discuss some uses of passivity-based control theory to two classesof systems that are receiving considerable current attention

1. networked control systems and

2. hybrid control systems

We will discuss applications of these ideas to

1. Teleoperation over the Internet and

2. Bipedal Locomotion

M.W. Spong, UIUC – p.2/32

Page 3: The Passivity Paradigm in Robot Control

Background

Passivity concepts have been well documented and so will not be repeated here. Wejust give a few basic definitions to start. Consider a dynamical system represented bythe state model

x = f(x, u)

y = h(x, u)

where f is locally Lipschitz, h is continuous, f(0, 0) = 0, h(0, 0) = 0 and the system hasthe same number of inputs and outputs. The above system is said to be

passive if S ≤ uT y for all (x, u) ∈ Rn × Rp

strictly passive if S ≤ uT y − ϕ(x) for ϕ > 0

input strictly passive if S ≤ uT y − uT ψ(u) for uT ψ(u) > 0

output strictly passive if S ≤ uT y − yT ρ(y) for yT ρ(y) > 0

for some C1 semidefinite scalar function S : Rn → R called the Storage Function.

M.W. Spong, UIUC – p.3/32

Page 4: The Passivity Paradigm in Robot Control

Passivity Based Control

U Y�For example, a passive system Σ is stabilized by output feedback

u = −ky

since then we have

S ≤ −kyT y = −k||y||2 ≤ 0

Under some additional (detectability-like) conditions asymptotic stability follows(LaSalle’s Invariance Principle).

• Generally the convergence is to an invariant manifold

• Parallel and feedback interconnections of passive systems are passive

M.W. Spong, UIUC – p.4/32

Page 5: The Passivity Paradigm in Robot Control

Networked Control Systems

Networked Control Systems (NCS) are currently of great interest for many applica-tions. We present here a new passivity based architecture for a particular class ofNetworked Control Systems, namely Bilateral Teleoperators.

Our new architecture overcomes several difficulties associated with previousapproaches, such as

• Lack of position tracking (drift)• Poor transparency• Sensitivity to parameter uncertainty

M.W. Spong, UIUC – p.5/32

Page 6: The Passivity Paradigm in Robot Control

The Passivity Paradigm

Within the Passivity framework for networked systems one may incorporate:

• Time Varying Delay [cf: Lozano, R., Chopra, N., and Spong, M.W., “Passivation ofForce Reflecting Bilateral Teleoperators with Time Varying Delay,”Mechatronics’02, Entschede, Netherlands, June 24-26, 2002]

• Discrete-Time Formulation, Packet Loss, Data Interpolation [cf: Berestesky, P.,Chopra, N., and Spong, M.W., “Discrete Time Passivity in Bilateral Teleoperationover the Internet”, IEEE International Conference on Robotics and Automation,New Orleans, LA, April 26-May 1, 2004]

• Multi-Agent Coordination and Manipulation [cf: Lee, D., and Spong, M.W., “PassiveBilateral Teleoperation of Multiple Cooperative Robots with DelayedCommunication,” in preparation]

Due to time constraints I will only discuss the new passivity architecture in:Chopra, N., Spong, M.W., and Lozano, R., “Adaptive Coordination Control of BilateralTeleoperators with Time Delay,” in preparation.

which addresses issues of transparency, position drift, and parameter uncertainty.

M.W. Spong, UIUC – p.6/32

Page 7: The Passivity Paradigm in Robot Control

The Traditional Architecture

A bilateral teleoperator can be modeled as an interconnection of n-port networks. Bydesigning control laws which impose the passivity property on each of the networkblocks, passivity of the interconnection may be guaranteed.

MEDIUM

COMMUNICATIONSLAVEMASTER F F

VV

The communication subsystem introduces a time delay, T , and is made passive by thewell-known scattering transformation approach [cf: Anderson and Spong, 1989] wherethe scattering variables

um = 1√

2b(Fmd + xmd) vm = 1

2b(Fmd − xmd)

us = 1√

2b(Fsd + xsd) vs = 1

2b(Fsd − xsd)

are transmitted across the delay line instead of the original velocities and forces.Delay

Transf.Scattering

Transf.Scattering SLAVEMASTER

xm

Fm vs Fs FeFh

xm um xsd xsusT

T

vm

M.W. Spong, UIUC – p.7/32

Page 8: The Passivity Paradigm in Robot Control

Passivity of Master and Slave Robots

The master and the slave robots are Lagrangian systems and are modeled as

Mm(qm)qm + Cm(qm, qm)qm + gm(qm) = τm

Ms(qs)qs + Cs(qs, qs)qs + gs(qs) = τs

The well-known passivity property of the robot dynamics follows from the choice ofstorage functions, for i = m, s,

Si(qi, qi) =1

2qTi Mi(qi)qi + Gi(qi)

where Gi is the potential energy. It is easy to verify, using the skew-symmetry propertyof robot dynamics that

Si = qTi τi

and hence the master dynamics are passive with τi, qi as input-output pairs.

M.W. Spong, UIUC – p.8/32

Page 9: The Passivity Paradigm in Robot Control

A New Coordination Architecture

In order to develop an effective coordination strategy within the passivity framework,the following goals need to be accomplished

• A feedback control law for the master and the slave manipulator that renders themanipulator dynamics passive with respect to an output containing both positionand velocity information

• A passive coordination control law which uses this output from the master and theslave to kinematically lock the motion of the two mechanical systems

• An adaptation mechanism to account for unknown parameters

All of these objectives may be achieved within the framework of passivity-based control.

M.W. Spong, UIUC – p.9/32

Page 10: The Passivity Paradigm in Robot Control

The Control Algorithm

In order to achieve these design objectives, the master and slave torques are given,for i = m, s as

τi = −Mi(qi)λqi − Ci(qi, qi)λqi + gi(qi) + τi

where

• τm, τs are the additional motor torques required for coordination control,

• “hats” represented estimated quantities and

• λ is a constant positive definite diagonal matrix.

M.W. Spong, UIUC – p.10/32

Page 11: The Passivity Paradigm in Robot Control

It is easy to verify using linearity in the parameters that the master and slave dynamicsreduce to

Mmrm + Cmrm = Ymθm + Fh + τm

Msrs + Csrs = Ysθs + τs − Fe

where θm = θm − θm, θs = θs − θs are the parameter estimation errors and

rm = qm + λqm

rs = qs + λqs

The new master and slave dynamics are passive with (τm, rm) and (τs, rs) as the input-

output pairs.

M.W. Spong, UIUC – p.11/32

Page 12: The Passivity Paradigm in Robot Control

Define the coordinating torques Fsd and Fmd as

Fsd = Ks(rsd − rs) = τs

Fmd = Km(rm − rmd) = −τm

where the gains Ks, Km are constant positive definite diagonal matrices.Define the coordination errors between the master and slave robots as

em(t) = qm(t − T ) − qs(t)

es(t) = qs(t − T ) − qm(t)

Driving the coordination errors to the origin ensures that the master/slave system behaveas a kinematically locked system.

M.W. Spong, UIUC – p.12/32

Page 13: The Passivity Paradigm in Robot Control

We now concentrate on the communications and again use the scattering or the wave-variable transformation to passify the communication block.The proposed architecture is

Within this architecture, we use the scatttering transformation as follows

um = 1√

2b(Fmd + brmd) vm = 1

2b(Fmd − brmd)

us = 1√

2b(Fsd + brsd) vs = 1

2b(Fsd − brsd)

M.W. Spong, UIUC – p.13/32

Page 14: The Passivity Paradigm in Robot Control

Main Result

We choose parameter update laws according to

˙θm = ΓY T

m rm

˙θs = ΛY T

s rs

where Γ and Λ are constant positive definite matrices.

Theorem 1 Consider the nonlinear bilateral teleoperation systemdescribed above. Then all signals are bounded and the master andslave coordination errors are globally convergent to zero.Furthermore, in steady state with ei, ei = 0 (i = m, s), the master andthe slave velocities converge to the origin.

M.W. Spong, UIUC – p.14/32

Page 15: The Passivity Paradigm in Robot Control

Proof

Proof: The proof relies on the Storage/Lyapunov function

S =1

2rTmMmrm +

1

2rTs Msrs + e

TmK1em + e

Ts K2es

+θTmΓ−1

θm + θTs Γ−1

θs +

∫ t

0

(F Te rs − F

T

hrm)dτ

+

∫ t

0

(F T

mdrrd − F

T

sdrsd)dτ

The term∫ t

0(F T

mdrrd − F T

sdrsd)dτ is positive as a result of the scattering transformation.

The term∫ t

0(F T

e rs − F Th

rm)dτ as long as the human/environment subsystems arepassive.

M.W. Spong, UIUC – p.15/32

Page 16: The Passivity Paradigm in Robot Control

Simulations

We simulated the schemes on a single-degree of freedom bilateralteleoperator, with the master and slave dynamics given as

Mmqm = Fh + τm

Msqs = τs − Fe

The master robot was commanded to execute a step position change.The delay was 0.4s RTT and there was an initial error of 0.8 unitsbetween the master and the slave robot.

M.W. Spong, UIUC – p.16/32

Page 17: The Passivity Paradigm in Robot Control

Position Tracking

0 5 10 15 20 25 30 35 40 45 500

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

1.8

time

join

t ang

les

0 5 10 15 20 25 30 35 40 45 500

0.5

1

1.5

2

2.5

join

t ang

les

time

The new architecture (left) ensures convergence of the tracking errorto zero even after an initial offset.The traditional architecture (right) cannot ensure position tracking afteran initial position offset

M.W. Spong, UIUC – p.17/32

Page 18: The Passivity Paradigm in Robot Control

Force Tracking

Next we investigate the force tracking (transparency) of the new architecture.

0 5 10 15 20 25 30 35 40 45 50−10

0

10

20

30

40

50

join

t ang

les

time0 5 10 15 20 25 30 35 40 45 50

−20

−10

0

10

20

30

40

50

60

70

time

Env

irom

enta

l and

Ref

lect

ed T

orqu

es

The master and the slave joint positions during contact with the environment(left).

The reflected torque to the master Fmd tracks the environmental torque Fe(right)

M.W. Spong, UIUC – p.18/32

Page 19: The Passivity Paradigm in Robot Control

Passive Walking and Passivity Based Control

We next turn the attention of the Passivity Paradigm to the control of bipedal loco-motion – a particular class of Hybrid Nonlinear Systems.

• It is well known that locomotion of mechanisms is achievable passively → i.e.,without actuation

• McGeer, T., “Passive Dynamic Walking,” International Journal of RoboticsResearch, 1990.

• Goswami, et.al., “A Study of the Passive Gait of a Compass-like Biped Robot:Symmetry and Chaos,” International Journal of Robotics Research, 1998.

• Such mechanisms can exhibit stable walking down a constant incline, turninggravitational potential energy into kinetic energy of motion.

• 3D Walker of Collins, Wisse, & Ruina• videos courtesy of Martijn Wisse, Delft University of Technology,

http://mms.tudelft.nl/Dbl/

M.W. Spong, UIUC – p.19/32

Page 20: The Passivity Paradigm in Robot Control

How Does This Work?

Walking involves the interaction among

—Kinetic Energy

—Potential Energy

—Impacts

Impacts (foot/ground, knee strike) cause jumps in velocity → a loss of Kinetic EnergyA passive limit cycle results when the loss of kinetic energy equals the change inpotential energy during the step.

���������������

���������������

������

������

������

������

�nsa b mH

m�s�

−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4−2

−1.5

−1

−0.5

0

0.5

1

1.5

2

2.5

θns

d/dt

(θns

)

Limit Cycle of the Compass Gait Biped

The Compass Gait Biped

M.W. Spong, UIUC – p.20/32

Page 21: The Passivity Paradigm in Robot Control

Properties of Passive Gaits

In this Compass Gait example:

• The limit cycle is extremely sensitive to slope angle

• As the slope is increased period doubling bifurcations leading toeventual chaos occur

• The basin of attraction of the limit cycle is very small

These issues can be addressed by the addition of feedback control.

M.W. Spong, UIUC – p.21/32

Page 22: The Passivity Paradigm in Robot Control

Dynamics

Let Q represent the configuration space of the robot and let h(q) = 0 repre-sent the constraint surface (e.g. ground surface). The change in velocity atimpact is given as a projection

q(t+) = Pq(q(t−))

onto {v ∈ TqQ|dh(q) · v = 0}. The dynamics of a general biped can be therefore bewritten as a hybrid nonlinear system

ddt

∂L∂q

− ∂L∂q

= u, for h(q(t−)) 6= 0

q(t+) = q(t−) for h(q(t−)) = 0q(t+) = Pq(q(t−))

where L is the Lagrangian (Kinetic minus Potential energy)

M.W. Spong, UIUC – p.22/32

Page 23: The Passivity Paradigm in Robot Control

Slope Changing Action

The key observation to address the sensitivity of the limit cycle tothe ground slope is to recognize that the act of changing theground slope at the stance leg can be represented by a GroupAction, Φ, of the rotation group SO(3) on the configuration spaceof the robot. For A ∈ SO(3), ΦA : Q → Q.

Pictorally, the action is shown below

θ

X

Y

X X

Y Y

M.W. Spong, UIUC – p.23/32

Page 24: The Passivity Paradigm in Robot Control

Invariance Properties

We have the following (Spong, Bullo, IEEE Transactions on AutomaticControl, submitted, August, 2003)

Proposition

• The kinetic energy K is invariant under the slope changing action Φ, i.e., for allA ∈ SO(3)

K(q, q) = K ◦ ΦA(q, q) = K(ΦA(q), TqΦA(q))

• The velocity changes at impacts, q+ = Pq(q−), are invariant under the slopechanging action.

M.W. Spong, UIUC – p.24/32

Page 25: The Passivity Paradigm in Robot Control

Controlled Symmetries

A Symmetry in a mechanical system arises when the Lagrangian is invariant under agroup action Φ, i.e.

L(q, q) = L(ΦA(q), TqΦA(q)) for all A ∈ SO(3)

Symmetries give rise to conserved quantities, for example, translational symmetry givesrise to conservation of momentum, etc.

Definition Controlled SymmetryWe say that an Euler-Lagrange system has a Controlled Symmetry with respect to agroup action Φ if, for every A ∈ SO(3) there exists an admissible control input uA(t)

such that

L(t, q, q) − uA(t) = L(t, ΦA(q), TqΦA(q))

M.W. Spong, UIUC – p.25/32

Page 26: The Passivity Paradigm in Robot Control

Passivity Based Control

Let E(q, q) = K + V be the total energy of the robot and Eref a (constant) referenceenergy (for example, the energy along a limit cycle trajectory).For A ∈ SO(3) define the Storage Function

S =1

2(E ◦ Φ − Eref )2

Then

S = (E ◦ Φ − Eref )qT

[

u −∂

∂q

(

V(q) − V(ΦA(q)))

]

If we define the control input u as u = uA + u, where

uA =∂

∂q

(

V(q) − V(ΦA(q)))

M.W. Spong, UIUC – p.26/32

Page 27: The Passivity Paradigm in Robot Control

Then

S = (E ◦ Φ − Eref )qT u = yT u

where

y = q(E ◦ Φ − Eref )

defines a passive output.It follows (Spong, Bullo, 2003) that for u = 0, the control uA defines a ControlledSymmetry.

Theorem: Suppose there exists a passive gait on one ground slope, represented byA0 ∈ SO(3), and let A ∈ SO(3) represent any other slope. Then the control inputuAT A0

generates a walking gait on slope A. Moreover the basin of attraction of thepassive gait is mapped to the basin of attraction of the controlled gait.

M.W. Spong, UIUC – p.27/32

Page 28: The Passivity Paradigm in Robot Control

Examples and Simulations

Finding Passive Limit CyclesPassive Limit Cycles are investigated via the Poincaré Map.

Xk+1 = P (Xk)

where Xk is the vector of joint positions and velocities at the beginning of step k.The limit cycle is thus a fixed point of the Poincaré Map. Any initial condition in the basinof attraction of a stable limit cycle for one slope can be used to initialize a controlled gaiton any other slope.The video shows walking on level ground.

M.W. Spong, UIUC – p.28/32

Page 29: The Passivity Paradigm in Robot Control

Extension to Biped with Torso

The next video shows a biped with a torso walking on level ground

How is this done?A PD-type control is used to stablize the torso in the inverted position.The resulting system is analyzed via the Poincaré map to find a stablelimit cycle. The details are omitted.

M.W. Spong, UIUC – p.29/32

Page 30: The Passivity Paradigm in Robot Control

Passivity Based Control

• Having made the passive limit cycles slope invariant via potential energy shapingwe now investigate total energy shaping for robustness.

• Improving the rate of convergence to the limit cycle and increasing the basin ofattraction are needed for robustness to external disturbances, changes in groundslope, etc.

• We now consider the design of the control input u in

u = uA + u

• In other words we consider the system

L(t, ΦA(q), TqΦA(q)) = u

M.W. Spong, UIUC – p.30/32

Page 31: The Passivity Paradigm in Robot Control

With the Storage Function S as before

S =1

2(E ◦ Φ − Eref )2

We saw that

S = (E ◦ Φ − Eref )qu = yT u

if we choose the additional control u according to

u = −ky = −kq(E − Eref )

we obtain

S = −ky2 = −k||q||2S

M.W. Spong, UIUC – p.31/32

Page 32: The Passivity Paradigm in Robot Control

• Thus S(t) converges exponentially toward zero during each stepa

• At impacts, S will experience a jump discontinuity. If the value of S at impact k + 1

is less than it’s value at impact k it follows that E(t) converges to Eref .

−0.25 −0.2 −0.15 −0.1 −0.05 0 0.05

−1

−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

Root locus, varying k from 0 to 5

Re(m)

Im(m

)

k=0

k=0.8

k=1.43

0 0.5 1 1.5 2 2.5 3 3.5 4

−0.1

0

0.1

0.2

0.3

0.4

0.5

t (sec)

Sto

rag

e F

un

ctio

n

k=1, 3 degree downslope

• Simulation: Walking on a Varying Slope

aassuming q is bounded away from zero

M.W. Spong, UIUC – p.32/32