optimal robust control for bipedal robots through control ... · hybrid systems and control...

9
Optimal Robust Control for Bipedal Robots through Control Lyapunov Function based Quadratic Programs Quan Nguyen and Koushil Sreenath Abstract—This paper builds off of recent work on rapidly exponentially stabilizing control Lyapunov functions (RES-CLF) and control Lyapunov function based quadratic programs (CLF- QP) for underactuated hybrid systems. The primary contribution of this paper is developing a robust control technique for un- deractuated hybrid systems with application to bipedal walking, that is able to track desired trajectories with significant model perturbation (mass and inertia increased by up to 200%.) We evaluate our proposed control design on a model of RABBIT, a five-link planar bipedal robot. I. I NTRODUCTION There is tremendous interest in employing legged and humanoid robots for dangerous missions in disaster and rescue scenarios. This is evidenced by the ongoing grand challenge in robotics, The DARPA Robotics Challenge (DRC). Such time and safety critical missions require the robot to op- erate swiftly and stably while dealing with high levels of uncertainty and large external disturbances. In addition to inaccurate robot models, model uncertainty can also arise from interaction tasks. For instance, practical robotic applications involving walking robots that lift and carry large unknown loads, pull unknown weights, drag heavy hoses, etc., will have to deal with significant changes to the dynamical model. The limitation of current research, as well as the demand of practical requirement, motivates our research on robust control for hybrid systems in general and bipedal robots in particular. In recent years, the method of Hybrid Zero Dynamics (HZD), [1, 2], has been very successful in dealing with the hybrid and underactuated dynamics of legged locomo- tion. This method is characterized by choosing a set of output functions, which when driven to zero, creates a lower- dimensional time-invariant zero dynamics manifold. Stable periodic orbits designed on this lower-dimensional system are then also stable orbits for the full system under an appropriate controller. Until recently, experimental implementations of the HZD method relied on input-output linearization with PD control to drive the system to the zero dynamics manifold, for instance see dynamic walking [3] and running [4] on MABEL. However, recent work on control Lyapunov function (CLF)- based controllers has enabled effective implementations of This work is supported by CMU Mechanical Engineering startup funds. Q. Nguyen is with the Department of Mechanical Engineering, Carnegie Mellon University, Pittsburgh, PA 15213, email: [email protected]. K. Sreenath is with the Depts. of Mechanical Engineering, Robotics Insti- tute, and Electrical and Computer Engineering, Carnegie Mellon University, Pittsburgh, PA 15213, email: [email protected]. Fig. 1: A practical application of walking robots is to carry and transport large loads over diverse terrain. However, for dynamic walking, the mass of the load needs to be known for obtaining a perfect model for control. The proposed robust controller is able to demonstrate dynamic walking with a large unknown load whose mass varies at each step. Ten steps of walking are illustrated in the stick figure with the load (yellow circle) varying randomly between 0-60 kg, corresponding to carrying an additional 0-188% of the mass of the robot. stable walking, both in simulations and experiments [5]. This flexible control design, based on Lyapunov theory, has also enabled computing the control based on online quadratic pro- grams (QPs), facilitating incorporating additional constraints into the control computation. For instance, control Lyapunov function based quadratic programs (CLF-QPs) with constraints on torque saturation were demonstrated experimentally in [6], and CLF-QPs were used to design a unified controller for performing locomotion and manipulation tasks in [7]. Sufficient conditions for Lipschitz continuity of the control produced by solving the CLF-QP problem are reported in [8]. However, a primary shortcoming of all these controllers is that they assume perfect knowledge of the dynamic model. The goal of this paper is to relax the requirement of perfect knowledge of the model by allowing for bounded uncertainty, and designing an optimal robust controller through a CLF-QP so as to still retain stability. Robust control is an extensively studied topic. For robust control of linear systems, we have well established methods, such as H -based robust control and linear quadratic Gaus- sian (LQG) based robust control [9, 10]. Additionally, a robust optimal control scheme developed by Lin [11, 12, 13] pre- sented uncertainties in the cost functional of the optimization based on the LQR problem. For robust control for nonlinear systems, there are two essential methods: input-to-state stability (ISS) and sliding mode control (SMC). The ISS technique developed by Sontag (see [14, 15, 16]) is used to analyze the robustness of nonlinear

Upload: others

Post on 28-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

Optimal Robust Control for Bipedal Robots throughControl Lyapunov Function based Quadratic

ProgramsQuan Nguyen and Koushil Sreenath

Abstract—This paper builds off of recent work on rapidlyexponentially stabilizing control Lyapunov functions (RES-CLF)and control Lyapunov function based quadratic programs (CLF-QP) for underactuated hybrid systems. The primary contributionof this paper is developing a robust control technique for un-deractuated hybrid systems with application to bipedal walking,that is able to track desired trajectories with significant modelperturbation (mass and inertia increased by up to 200%.) Weevaluate our proposed control design on a model of RABBIT, afive-link planar bipedal robot.

I. INTRODUCTION

There is tremendous interest in employing legged andhumanoid robots for dangerous missions in disaster and rescuescenarios. This is evidenced by the ongoing grand challengein robotics, The DARPA Robotics Challenge (DRC). Suchtime and safety critical missions require the robot to op-erate swiftly and stably while dealing with high levels ofuncertainty and large external disturbances. In addition toinaccurate robot models, model uncertainty can also arise frominteraction tasks. For instance, practical robotic applicationsinvolving walking robots that lift and carry large unknownloads, pull unknown weights, drag heavy hoses, etc., willhave to deal with significant changes to the dynamical model.The limitation of current research, as well as the demand ofpractical requirement, motivates our research on robust controlfor hybrid systems in general and bipedal robots in particular.

In recent years, the method of Hybrid Zero Dynamics(HZD), [1, 2], has been very successful in dealing withthe hybrid and underactuated dynamics of legged locomo-tion. This method is characterized by choosing a set ofoutput functions, which when driven to zero, creates a lower-dimensional time-invariant zero dynamics manifold. Stableperiodic orbits designed on this lower-dimensional system arethen also stable orbits for the full system under an appropriatecontroller. Until recently, experimental implementations of theHZD method relied on input-output linearization with PDcontrol to drive the system to the zero dynamics manifold, forinstance see dynamic walking [3] and running [4] on MABEL.However, recent work on control Lyapunov function (CLF)-based controllers has enabled effective implementations of

This work is supported by CMU Mechanical Engineering startup funds.Q. Nguyen is with the Department of Mechanical Engineering, Carnegie

Mellon University, Pittsburgh, PA 15213, email: [email protected]. Sreenath is with the Depts. of Mechanical Engineering, Robotics Insti-

tute, and Electrical and Computer Engineering, Carnegie Mellon University,Pittsburgh, PA 15213, email: [email protected].

Fig. 1: A practical application of walking robots is to carryand transport large loads over diverse terrain. However, fordynamic walking, the mass of the load needs to be knownfor obtaining a perfect model for control. The proposed robustcontroller is able to demonstrate dynamic walking with a largeunknown load whose mass varies at each step. Ten steps ofwalking are illustrated in the stick figure with the load (yellowcircle) varying randomly between 0-60 kg, corresponding tocarrying an additional 0-188% of the mass of the robot.

stable walking, both in simulations and experiments [5]. Thisflexible control design, based on Lyapunov theory, has alsoenabled computing the control based on online quadratic pro-grams (QPs), facilitating incorporating additional constraintsinto the control computation. For instance, control Lyapunovfunction based quadratic programs (CLF-QPs) with constraintson torque saturation were demonstrated experimentally in[6], and CLF-QPs were used to design a unified controllerfor performing locomotion and manipulation tasks in [7].Sufficient conditions for Lipschitz continuity of the controlproduced by solving the CLF-QP problem are reported in [8].

However, a primary shortcoming of all these controllers isthat they assume perfect knowledge of the dynamic model.The goal of this paper is to relax the requirement of perfectknowledge of the model by allowing for bounded uncertainty,and designing an optimal robust controller through a CLF-QPso as to still retain stability.

Robust control is an extensively studied topic. For robustcontrol of linear systems, we have well established methods,such as H∞-based robust control and linear quadratic Gaus-sian (LQG) based robust control [9, 10]. Additionally, a robustoptimal control scheme developed by Lin [11, 12, 13] pre-sented uncertainties in the cost functional of the optimizationbased on the LQR problem.

For robust control for nonlinear systems, there are twoessential methods: input-to-state stability (ISS) and slidingmode control (SMC). The ISS technique developed by Sontag(see [14, 15, 16]) is used to analyze the robustness of nonlinear

Page 2: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

systems and design a robust controller based on ControlLyapunov Functions. In recent years, robust control of hybridsystems based on the ISS technique has attracted attention, forinstance see [17, 18, 19]. However, ISS based controllers tendto maintain system errors in a sufficiently small neighborhoodof the origin, and thus have a non-zero tracking error. Incontrast, sliding mode control can deal with a wide range ofuncertainties and drive the system to follow a given slidingsurface, thereby driving outputs to desired values withoutany tracking errors (see [20, 21, 22]). However, the primarydisadvantage of SMC is the chattering phenomenon causedby discrete switching for keeping the system attracted to thesliding surface.

As a result, with robust control problems for bipedal sys-tems that require high quality tracking, guarantees on rateof convergence, smoothness of control inputs, and energyefficiency, the application of ISS and SMC seem to have someinherent limitations. There is some work on robust controlwith application to bipedal robots based on Sliding ModeControl [23, 24], and other methods [25], [26], neverthelessthese approaches just deal with a small level of uncertainty. In[27], CLF-QPs are used to adapt to parameter uncertainty in abipedal robot, however the controller assumes full actuation,requires measurement of acceleration, and appears to onlywork for tracking a static pose of the robot.

The main contribution of this paper is a new Optimal RobustControl strategy that can guarantee the exponential stabilityof a periodic orbit for a hybrid, nonlinear, under-actuatedbipedal system with significant uncertainty in the model.We assume the uncertainty is bounded and incorporate theuncertainty bounds as additional constraints of a CLF-QP. Thisresults in the control inputs being optimal and guaranteeingthe best robustness of the closed-loop system. Our methodenables dealing with severe uncertainties, while also providinga guarantee on the exponential stability of the periodic orbitfor the hybrid system, see Figure 1. The Lipschitz Continuityof the control inputs is guaranteed through results in [28].

The rest of the paper is organized as follows. SectionII revisits rapidly exponentially stabilizing control Lyapunovfunctions (RES-CLFs), and control Lyapunov function-basedquadratic programs (CLF-QPs). Section III discusses the ad-verse effects of uncertainty in the dynamics on the CLF-QPcontrollers. Section IV presents the proposed CLF-QP basedoptimal robust controller. Section VI presents simulations ofthe controller on a perturbed model of RABBIT, a five-linkplanar bipedal robot. Finally, Section VII provides concludingremarks.

II. RAPIDLY EXPONENTIALLY STABILIZING CONTROLLYAPUNOV FUNCTIONS AND QUADRATIC PROGRAMS

REVISITED

In this section we start by introducing a hybrid dynamicalmodel that captures the dynamics of a bipedal robot. We thenreview recent innovations on control Lyapunov functions forhybrid systems and control Lyapunov function based quadraticprograms, introduced in [5] and [6] respectively.

A. Model

This paper will focus on the specific problem of walkingof bipedal robots such as RABBIT (described in [29]), whichis characterized by single-support continuous-time dynamics,when one foot is assumed to be in contact with the ground,and double-support discrete-time impact dynamics, when theswing foot undergoes an instantaneous impact with the ground.Such a hybrid model is obtained as,

H =

[q

q

]= f(q, q) + g(q, q)u, (q−, q−) /∈ S,

[q+

q+

]= ∆(q−, q−), (q−, q−) ∈ S,

(1)

where q ∈ Q is the robot’s configuration variables, u ∈ Rmis the control inputs, representing the motor torques, (q−, q−)represent the state before impact and (q+, q+) represent thestate after impact, S represents the switching surface when theswing leg contacts the ground, and ∆ represents the discrete-time impact map.

We also define output functions y ∈ Rm of the form

y(q) := H0q − yd(θ(q)), (2)

where θ(q) is a strictly monotonic function of the configurationvariable q, H0 is an appropriately-sized matrix prescribinglinear combinations of state variables to be controlled, andyd(·) prescribes the desired evolution of these quantities.(See [3] for details.) The method of Hybrid Zero Dynamics(HZD) aims to drive these output functions (and their firstderivatives) to zero, thereby imposing “virtual constraints”such that the system evolves on the lower-dimensional zerodynamics manifold, given by

Z = {(q, q) ∈ TQ | y(q) = 0, Lfy(q, q) = 0}, (3)

where Lf denotes the Lie derivative [30]. In particular, thedynamics of the system on Z, given by H|Z , is the underactu-ated dynamics of the system and is forward-invariant. Periodicmotion such as walking is then a hybrid periodic orbit O inthe statespace with OZ being it’s restriction to Z. (We haveO = ι0(OZ), where ι0 : Z → TQ is the inclusion map.)Prior results on feedback control for such underactuated hybridsystems assume stability of OZ and design controllers thatstabilize O , see [31, 5]. These controllers are revisited next.

B. Input-output linearization

If y(q) has vector relative degree 2, then the second deriva-tive takes the form

y = L2fy(q, q) + LgLfy(q, q)u. (4)

We can then apply one of the following control laws,

u(q, q) = u∗(q, q) + µ, (5)

Page 3: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

or

u(q, q) = u∗(q, q) + (LgLfy(q, q))−1µ, (6)

where

u∗(q, q) := −(LgLfy(q, q))−1L2fy(q, q). (7)

Defining transverse variables η = [y, y]T , and using the IOlinearization controller above with the pre-control law (6), wehave,

y = µ. (8)

Then, with the PD control

µ =[− 1ε2KP − 1

εKD

]η, (9)

the closed-loop system will become

y +1

εKDy +

1

ε2KP y = 0, (10)

and will be exponentially stable if we choose KP and KD

such that

A =

[0 I−KP −KD

](11)

is Hurwitz. The ε factor is used to control the rate ofconvergence and is needed to ensure we converge sufficientlyfast so as to account for the expansion produced by the impactmap, see [32] for more details.

For the work presented here, we will use the pre-control law(6) that creates the closed-loop output dynamics (8). Therefore,the input-output linearized dynamics will become

η =

[yy

]=

[0 I0 0

] [yy

]+

[0I

]µ. (12)

The closed-loop dynamics in terms of the transverse variablesη and the states z ∈ Z take the form,

η = f(η, z) + g(η, z)µ, (13)z = p(η, z),

where f(η, z) = Fη and g(η, z) = G, with

F =

[0 I0 0

], G =

[0I

]. (14)

C. CLF-based control

An alternative control approach based on control Lyapunovfunctions, introduced in [5], provides guarantees of rapidexponential stability for the traverse variables η. In particular,a function Vε(η) is a rapidly exponentially stabilizing controlLyapunov function (RES-CLF) for the system (13) if there existpositive constants c1, c2, c3 > 0 such that for all 0 < ε < 1and all states (η, z) it holds that

c1‖η‖2 ≤ Vε(η) ≤ c2ε2‖η‖2, (15)

Vε(η, µ) +c3εVε(η) ≤ 0. (16)

In our problem, we chose a CLF candidate as follows

Vε(η) = ηT[

1εI 00 I

]P

[1εI 00 I

]η =: ηTPεη, (17)

where P is the solution of the Lyapunov equation ATP +PA = −Q (where A is given by (11) and Q is any symmetricpositive-definite matrix). The time derivative of the CLF (17)is computed as

Vε(η, µ) = LfVε(η, z) + LgVε(η, z)µ, (18)

where

LfVε(η, z) = ηT (FTPε + PεF )η,

LgVε(η, z) = 2ηTPεG. (19)

We can thus construct the set of control µ that satisfies theRES condition (16) as follows: We define the set,

Kε(η, z) = {µε ∈ U : ψ0,ε(η, z) + ψ1,ε(η, z)µε ≤ 0},

where,

ψ0,ε(η, z) = LfVε(η, z) +c3εVε(η, z)

ψ1,ε(η, z) = LgVε(η, z). (20)

Then, it can be show that for any Lipschitz continuousfeedback control law µε(η, z) ∈ Kε(η, z), it holds that

‖η(t)‖ ≤ 1

ε

√c2c1e−

c32ε t‖η(0)‖, (21)

i.e. the rate of exponential convergence to the zero dynamicsmanifold can be directly controlled with the constant ε throughc3ε . One such controller is the pointwise min-norm control law

[33], formulated as,

Pointwise min-norm:

µε(η, z) =

{− ψ0,ε(η,z)ψ1,ε(η,z)ψ1,ε(η,z)Tψ1,ε(η,z)

if ψ0,ε(η, z) > 0

0 if ψ0,ε(η, z) ≤ 0

}.

(22)

D. CLF-based Quadratic Programs

CLF-based quadratic programs were introduced in [6],where µε was directly selected through an online quadraticprogram to meet (16):

CLF-QP:

argminµ

µTµ

s.t. ψ0,ε(η, z) + ψ1,ε(η, z) µ ≤ 0.(23)

The quadratic program formulation now lets us incorporateadditional constraints of the form A(q, q) µ ≤ b(q, q) into thecontrol problem. However, for these additional constraints tobe satisfied and to ensure feasibility of the quadratic program,

Page 4: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

we relax the RES-CLF bound on the time-derivative of V .We do this by requiring Vε(η) ≤ −c3/ε Vε(η) +d1, where d1

is typically a small positive quantity. The relaxed CLF-QP isthen written as

Relaxed CLF-QP:

argminµ,d1

µTµ+ p1 d21

s.t. ψ0,ε(η, z) + ψ1,ε(η, z) µ ≤ d1,

A(q, q) µ ≤ b(q, q),

(24)

where p1 is a large positive number that represents the penaltyof relaxing the inequality. The formulation in (24) dealswith additional state-based inequality constraint A(q, q) µ ≤b(q, q), that potentially cannot ensure the same type of stabilityclaims as those provided by [5, Thm. 2], as the relaxations inthe bound on the time-derivative of Vε result in a loss of theRES-CLF quality for Vε. However, as we will see in this paper,under appropriate conditions, we still retain the stability of thehybrid periodic orbit. We will demonstrate this on the torquesaturated controller:

CLF-QP with Torque Saturation:

argminµ,d1

µTµ+ p1 d21

s.t. ψ0,ε(η, z) + ψ1,ε(η, z) µ ≤ d1,

(LgLfy(q, q))−1 µ ≥ (umin − u∗),(LgLfy(q, q))−1 µ ≤ (umax − u∗).

(25)

Having presented recent developments in control Lyapunovfunctions and control Lyapunov functions based quadraticprograms for hybrid dynamical systems, we next consider theeffect of uncertainty in the dynamics on these controllers.

III. ADVERSE EFFECTS OF UNCERTAINTY IN DYNAMICSON THE CLF-QP CONTROLLER

The CLF-based approaches presented in Section II haveseveral interesting properties. Firstly, they provide a guaranteeon the exponential stability of the hybrid system, they areoptimal with respect to some cost function, result in theminimum control effort, and provide means of balancingconflicting requirements between performance and state-basedconstraints. These controllers were even successfully imple-mented on MABEL, see [5, 6]. However, a primary disad-vantage of these controllers is that they require an accuratedynamical model of the system. Specifically, as we will see,even for a simpler bipedal model such as RABBIT (comparedto MABEL), uncertainty in mass and inertia properties of themodel can cause bad control quality leading to tracking errors,and could potentially lead to walking that is unstable.

If we consider uncertainty in the dynamics and assume thatthe functions, f(q, q), g(q, q) of the real dynamics (1), areunknown, we then have to design our controller based onnominal functions f(q, q), g(q, q). Thus, the pre-control law

(6) is reformulated as

u(q, q) = u∗(q, q) + (LgLfy(q, q))−1µ, (26)

withu∗(q, q) := −(LgLfy(q, q))−1L2

fy(q, q). (27)

Substituting u(q, q) from (26) into (4), the second derivativeof the output, y(q), then becomes

y = µ+ ∆1 + ∆2µ, (28)

where

∆1 = L2fy(q, q)− LgLfy(q, q)(LgLfy(q, q))−1L2

fy(q, q),

∆2 = LgLfy(q, q)(LgLfy(q, q))−1 − I. (29)

Using F and G as in (14) and defining,

∆H =

[0

∆1

], ∆G =

[0

∆2

], (30)

the closed-loop system now takes the form

η = Fη + (G+ ∆G)µ+ ∆H. (31)

For the following sections, we will abuse notation and redefinef = Fη + ∆H , g = G+ ∆G.

Clearly for ∆H 6= 0, or ∆G 6= 0, the PD control (9)does not stabilize the system dynamics. In fact for ∆H 6= 0,the closed-loop system does not have an equilibrium, andfor ∆G 6= 0, the controller could potentially destabilize thesystem. This raises the question of whether it’s possible forcontrollers to account for this model uncertainty, and if so,how do we design such a controller.

IV. CLF BASED QUADRATIC PROGRAMS WITH ROBUSTCONTROL

Having discussed the effect of model uncertainty on thecontrol Lyapunov function based controllers, we now developa controller that can guarantee tracking and stability in thepresence of bounded uncertainty. As we will see, both stabilityand tracking performance (rate of convergence and errorsgoing to zero) are still retained for all uncertainty within aparticular bound. This is evidenced in Figure 3. For uncertaintythat exceeds the specified bound, there is graceful degradationin performance.

A. Proposed Robust CLF-QP Controller

We start with the closed-loop model with uncertainty asdeveloped in (31) and develop the robust controller as follows.With the CLF defined in (17), we have:

Vε = LfVε(η, z) + LgVε(η, z)µ, (32)

where we have

LfVε(η, z) = ηT (FTPε + PεF )η + 2ηTPε∆H,

LgVε(η, z) = 2ηTPε(G+ ∆G). (33)

Then, in order to guarantee the standard RES condition (16),we will have to guarantee:

Ψ0,ε + Ψ1,εµ ≤ 0 (34)

Page 5: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

where

Ψ0,ε = ηT (FTPε + PεF )η + 2ηTPε∆H +c3εVε,

Ψ1,ε = 2ηTPε(G+ ∆G). (35)

In general, we can not satisfy the inequality (34) for allpossible unknown ∆H,∆G in (35). To address this, weassume the uncertainty is bounded as follows

‖∆H‖ ≤ ∆Hmax, ‖∆G‖ ≤ ∆Gmax, (36)

where the first norm is a vector norm, while the second normis a matrix norm.

The goal of the robust control design is then to find thecontrol µ satisfying the RES condition (34), evaluated throughthe given bounds of uncertainty in (36). Specifically, with theassumption on bounds on the uncertainty, the RES condition(34) will hold if the following inequalities holds

Ψmax0,ε + Ψp

1,εµ ≤ 0

Ψmax0,ε + Ψn

1,εµ ≤ 0, (37)

where

Ψmax0,ε = max

(Ψn

0,ε, Ψp0,ε

),

Ψp0,ε = ηT (FTPε + PεF )η + 2ηTPε

[01

]∆Hmax +

c3εVε,

Ψn0,ε = ηT (FTPε + PεF )η − 2ηTPε

[01

]∆Hmax +

c3εVε,

Ψp1,ε = 2ηTPεG(1 + ∆Gmax),

Ψn1,ε = 2ηTPεG(1−∆Gmax). (38)

We can then incorporate these inequalities into a new relaxedCLF-QP as follows:

Robust CLF-QP:

argminµ,d1,d2

µTµ+ p1 d21 + p2 d

22

s.t. ψmax0,ε (η, z) + ψp1,ε(η, z) µ ≤ d1,

ψmax0,ε (η, z) + ψn1,ε(η, z) µ ≤ d2,

(LgLfy(q, q))−1 µ ≥ (umin − u∗),(LgLfy(q, q))−1 µ ≤ (umax − u∗).

(39)

Here d1, d2 are the relaxations of the inequalities in (37). Therelaxed inequality has the benefit of making the solution to theabove Quadratic program feasible and Lipschitz continuous ina larger region (see [28]). The above robust CLF-QP enablesthe controller to be robust to all model perturbations thatare within the specified bound in (36). In particular, bothstability and tracking performance (rate of convergence anderrors going to zero) are still retained for all uncertainty withinbounds. However, since we are expressing this as a relaxedCLF-QP, we lose the strict RES condition and thus requireadditional formulations to formally guarantee stability. We willdevelop these formulations next.

V. SUFFICIENT CONDITIONS FOR THE STABILITY OF CLFWITH RELAXED INEQUALITY

As we saw in the previous section, we can formulate a re-laxed CLF-QP to be able to incorporate additional constraintswhile allowing for violation of the RES-CLF condition. Thiscould lead to potential instability. However, here, we establishsufficient conditions under which we still retain the exponen-tial stability of the hybrid periodic orbit. We will then use thisresult to establish stability of the robust CLF-QP.

A. Stability of the Relaxed CLF-QP Controller

The standard RES-CLF will guarantee the following in-equality:

Vε +c3εVε ≤ 0 (40)

The CLF-QP with the relaxed inequality will take the form

Vε +c3εVε ≤ d1. (41)

We define:dε(t) = Vε +

c3εVε (42)

and

wε(t) =

∫ t

0

dε(τ)

Vεdτ (43)

Remark 1: First we define T εI (η, z) to be the time-to-impact, that signifies ending time of the step. Then, intuitively,wε(T

εI (η, z)) indicates a scaled version of the total violation

of the RES-CLF bound in (40) over one complete step. Ifwε(T

εI (η, z)) ≤ 0, it implies that Vε(T εI (η, z)) is less than

or equal to what would have resulted if the RES-CLF boundhad not been violated at all. As we will see in the followingtheorem, we will in fact only require wε(T εI (η, z)) to be upperbounded by a positive constant for exponential stability.

We then have the following theorem:Theorem 1: Let OZ be an exponentially stable periodic

orbit of the hybrid zero dynamics H |Z transverse to S ∩ Zand the continuous dynamics (1) of H controlled by a CLF-QP with relaxed inequality (24). Then there exists an ε > 0and an wε ≥ 0 such that for each 0 < ε < ε, if the solutionµε(η, z) of the CLF-QP (24) satisfies wε(T εI (η, z)) ≤ wε, thenO = ι0(OZ) is an exponentially stable hybrid periodic orbitof H .

Proof: See [34].

B. Stability of the Robust CLF-QP Controller

It is clear that if there is no uncertainty in the system, i.e.,∆Hmax = ∆Gmax = 0, then the robust CLF-QP (39) isexactly the same as the CLF-QP with torque saturation (25).In contrast, if uncertainties are too significant, say ∆Hmax →∞,∆Gmax →∞, it is obvious that we cannot guarantee thestability of the hybrid system. We require the uncertainty to bebounded. Moreover, model uncertainty further complicates theproblem, since it causes the periodic orbit to move from OZto OZ , corresponding to a periodic orbit for the new perturbedmodel. To establish stability guarantees, we restate Theorem1 for the CLF-QP with robust control as follows:

Page 6: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

(a) RABBIT

q1

q2

q3

q4

q5

(b) Coordinate system

Fig. 2: (a) RABBIT, a planar five-link bipedal robot withnonlinear, hybrid and underactuated dynamics. (b) The theassociated generalized coordinate system used, where q1, q2

are the relative stance and swing leg femur angles referencedto the torso, q3, q4 are the relative stance and swing leg kneeangles, and q5 is the absolute torso angle in the world frame.

Theorem 2: Let OZ be an exponentially stable periodicorbit of the hybrid zero dynamics H |Z transverse to S ∩ Zand the continuous dynamics (1) of H controlled by therobust CLF-QP (39). Then there exists an ε > 0; uεmin >uKεmin, u

εmax < uKε

max and ∆Gεmax,∆Hεmax, such that for each

0 < ε < ε, if

‖∆Gmax‖ ≤ ‖∆Gεmax‖‖∆Hmax‖ ≤ ‖∆Hε

max‖umin ≤ uεminumax ≥ uεmax, (44)

the CLF-QP with robust control (39) will imply that O =ι0(OZ) is an exponentially stable hybrid periodic orbit of H .

Proof: Follows from (39) and Theorem 1.

VI. SIMULATION OF ROBUST CONTROL WITH TORQUESATURATION

To demonstrate the effectiveness of the proposed robustCLF-QP controller, we will conduct numerical simulations onthe model of RABBIT (shown in Figure 2), a planar five-link bipedal robot with a torso and two legs with revoluteknees that terminate in point feet. RABBIT weighs 32 kg, hasfour brushless DC actuators with harmonic drives to controlthe hip and knee angles, and is connected to a rotating boomwhich constrains the robot to walk in a circle, approximatingplanar motion in the sagittal plane. Further description ofRABBIT and the associated mathematical model can be foundin [29, 35]. Fundamental issues in dynamic walking andrunning on RABBIT can be found in [35] and [36].

For RABBIT, the stance phase is parametrized by a suitableset of coordinates, given by q := (q1, q2, q3, q4, q5) and asillustrated in Fig.2. Here, q1 and q2 are the femur angles(referenced to the torso), q3 and q4 are the knee angles, and q5

is the absolute angle of the torso. Because RABBIT has pointfeet (while many other legged robots have flat feet), the stance

0

5

10

15

20

25

30

Cas

e I

V

0

10

20

30

40

Cas

e II

0 0.2 0.4 0.6 0.8 1 1.2 1.40

5

10

15

20

25

30

Cas

e III

Time (s)

Min NormCLF−QPRobust CLF−QP

Fig. 3: Control Lyapunov function for the three controllers:Min Norm, CLF-QP, Robust CLF-QP, for the cases I-III ofmodel perturbations. Notice that the convergence performance(both rate of convergence and tracking error being driven tozero) of the proposed robust CLF-QP controller remains thesame across the different model perturbations.

phase dynamics are underactuated with the system possessing4 actuated degrees-of-freedom (DOF) and 1 underactuatedDOF.

For the purpose of evaluating the robust CLF-QP controller,we will consider a periodic walking gait, with step speed of0.9 m/s and step length of 0.45 m, that is developed for anominal model of RABBIT. The controller is also developedfor this nominal model. The simulation is then carried outon a perturbed model of RABBIT, where the perturbation isintroduced by scaling all mass and inertia parameters of eachlink by a fixed constant scale factor. The perturbed model isunknown to the controller and will serve as an uncertaintyinjected into the model. We will illustrate four separate casesof scaling the mass and inertia:

Case I : model scale = 1Case II : model scale = 1.5Case III : model scale = 0.7Case IV : model scale = 3;

For each case, we will compare the quality of three controllers

Controller A : Min-norm Controller (22)Controller B : CLF-QP torque saturation controller (25)Controller C : CLF-QP robust controller (39).

Note that controllers B, C enable limiting the torque to bewithin a user specified bound. For a fair comparison, weset these torque bounds slightly below the maximum torquethat controller A uses for each particular case of modelperturbation. In particular, the torque saturations were set as

Page 7: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

−2

−1

0

1

y1 (

deg)

−2

0

2

4

y2 (

deg)

−2

0

2

4

y3 (

deg)

0 0.2 0.4 0.6 0.8 1 1.2 1.4−2

0

2

4

y4 (

deg)

Time (s)

minnormCLFQPRobustCLFQP

(a) Case I: model scale = 1

−2

0

2

4

y1 (

deg)

−5

0

5

y2 (

deg)

−5

0

5

y3 (

deg)

0 0.2 0.4 0.6 0.8 1 1.2 1.4−5

0

5

y4 (

deg)

Time (s)

minnormCLFQPRobustCLFQP

(b) Case II: model scale = 1.5

−2

−1

0

1

y1 (

deg)

−2

0

2

4

y2 (

deg)

−2

0

2

4

y3 (

deg)

0 0.2 0.4 0.6 0.8 1 1.2 1.4−2

0

2

4

y4 (

deg)

Time (s)

minnormCLFQPRobustCLFQP

(c) Case III: model scale = 0.7

Fig. 4: Tracking errors of the virtual constraints (2) based on the simulation of cases I-III of perturbed model of RABBIT withthree controllers as described in Section VI. Simulation of three walking steps are shown.

−100

0

100

u1 (

Nm

)

−100

0

100

u2 (

Nm

)

−100

0

100

u3 (

Nm

)

0 0.2 0.4 0.6 0.8 1 1.2 1.4−100

0

100

u4 (

Nm

)

Time (s)

minnormCLFQPRobustCLFQP

(a) Case I: model scale = 1

−200

0

200

u1 (

Nm

)

−200

0

200

u2 (

Nm

)

−200

0

200

u3 (

Nm

)

0 0.2 0.4 0.6 0.8 1 1.2 1.4−200

0

200

u4 (

Nm

)

Time (s)

minnormCLFQPRobustCLFQP

(b) Case II: model scale = 1.5

−100

0

100

u1 (

Nm

)

−100

0

100

u2 (

Nm

)

−100

0

100

u3 (

Nm

)

0 0.2 0.4 0.6 0.8 1 1.2 1.4−100

0

100

u4 (

Nm

)

Time (s)

minnormCLFQPRobustCLFQP

(c) Case III: model scale = 0.7

Fig. 5: Control inputs (motor torques for stance and swing legs) based on the simulation of cases I-III of perturbed model ofRABBIT with three controllers as described in Section VI. Simulation of three walking steps are shown.

follows: 60 Nm, 80 Nm, 150 Nm, and 300 Nm for the modelscale equals to 0.7, 1, 1.5, 3 respectively.

Each of the four models are evaluated with the three setsof controllers. The results are presented in Figures 3, 4, 5, 7.

Remark 2: From Figure 3, note that the performance (bothrate of convergence and driving the tracking error to zero) ofthe proposed robust CLF-QP controller remains same for allthe considered model variations.

Remark 3: For Case I: model scale = 1, when there isno uncertainty, we can observe from the top plot of Figure3 and from Figure 4a that the robust CLF-QP controller(controller C) performs better than the two other controllers.This is because the robust controller is trying to satisfy theconvergence bound on the worst possible model perturbation.Also notice that the CLF-QP with torque saturation (controllerB) does slightly worse than the min-norm controller (controllerA). This is due to the torque saturation that is slightly belowthe maximum torque the min-norm controller uses.

For Case II: model scale = 1.5 and Case III: model scale= 0.7, where mass and inertia were increased by 50% andreduced by 30% respectively, we can observe from the track-

ing error plots in Figures 4b, 4c, that while the min-normcontroller (controller A) and the CLF-QP torque saturationcontroller (controller B) have non-zero tracking errors duringeach step, the robust CLF-QP controller (controller C) still per-forms perfectly, with tracking errors converging to zero. Thus,even with this level of uncertainty, the proposed robust CLF-QP controller is able to maintain the same control performancequality as in Case I (no model uncertainty). This is especiallyevident in Figure 3, where we clearly see that the robust CLF-QP maintains the same rate of convergence for all modelperturbations. Note that these comparisons are fair betweenthe controllers since we maintain the same range of controlinputs for each case of model perturbation, as evidenced inthe control input plots in Figures 5.

In Case IV: model scale = 3, where we set up a highlysignificant level of uncertainty by scaling all mass and inertiaproperties by a factor of 3, while the Controllers A and B failto sustain walking, the proposed CLF-QP controller is stillable to regulate the outputs with only a slight degradation, seeFigure 6. However, it must be noted that the underlying peri-odic orbit OZ is unstable, and the walking slows down after

Page 8: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

−19 −18 −17 −16 −15 −14 −13 −12 −11 −10 −9−100

−80

−60

−40

−20

0

20

40

60

80

100

qTor (deg)

dqT

or (

deg/

s)

Case ICase IICase III

Fig. 7: Phase portrait of the torso angle for walking simulationin 25 steps for Cases I-III with the proposed CLF-QP robustcontroller, (39). As is evident, due to the different levels ofuncertainty in the model, the walking settles to three differentperiodic orbits for each of the three cases respectively. Alsonotice that for a heavier robot (Case II with mass scale = 1.5),the velocities are slower.

Time(s)0 2 4 6 8 10 12 14 16

Hip

Vel

ocity

(m

/s)

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

1.1

1.2

No Load60 kg Load

Fig. 8: The hip velocity of bipedal robot for two cases: No loadand carrying heavy load of 60kg (188% of the body mass) onthe torso. Simulation of 30 steps is shown. From the plot, wecan see that while the average walking speed in the nominalno load case is 0.9 m/s, for the 60 kg load the walking speedis slower at 0.65 m/s and it has a 2-step periodic solution.

−2

−1

0

1

y1 (

deg)

Tracking Errors

−200

0

200

u1 (

Nm

)

Control Inputs

−5

0

5

y2 (

deg)

−200

0

200

u2 (

Nm

)

−10

−5

0

5

y3 (

deg)

−200

0

200

u3 (

Nm

)

0 0.2 0.4 0.6 0.8 1 1.2 1.4−1

0

1

2

3

y4 (

deg)

Time (s)

0 0.2 0.4 0.6 0.8 1 1.2 1.4

−200

0

200

u4 (

Nm

)

Time (s)

RobustCLFQP RobustCLFQP

Fig. 6: Tracking errors and control outputs for Case IV: modelscale = 3.

several steps to a complete stop. Nonetheless, the controller is

able to perform its task with such a large model perturbation.Future research will be directed towards addressing what canpotentially be done for handling the effect of uncertainty forthe underactuated dynamics.

Figure 7 illustrates the simulation of 25 steps of theproposed CLF-QP based robust controller for three casesof uncertainty as specified in Case I-III. This illustrates thecontroller converging to three periodic orbits that slightly varyfrom each other. As mentioned, the uncertainty in the modelcauses the underlying periodic orbit to change.

Figure 8 illustrates the hip velocity while carrying an un-known 60 kg load on the torso, corresponding to an additional188% mass. Figure 1 illustrates walking with the carriedunknown load randomly varying at each step.

Although the proposed robust CLF-QP based controllerappears impressive, a primary limitation of the controller isthat it always assumes the worst-case scenario with maximummodel perturbation within the specified bounds, even whenthe model is known perfectly and there is no uncertainty. Thisresults in the controller being unnecessarily aggressive, andmay cause problems in experiments.

VII. CONCLUSION

In summary, we have presented a novel optimal robust con-trol method that successfully handles significantly high modeluncertainty (up to 200 % increase in mass and inertia) andrespecting torque saturations, while still retaining stability ofwalking for a nonlinear, hybrid, underactuated, five-link planarbipedal robot. The proposed robust controller is formulatedbased on recent advances in rapidly exponentially stabilizingcontrol Lyapunov functions for hybrid systems, and controlLyapunov function based quadratic programs. Future direc-tions involve experimental validations on an underactuatedbipedal robot and developing controllers that can estimate theuncertainty in the model.

REFERENCES

[1] E. Westervelt, J. Grizzle, and D. Koditschek, “Hybridzero dynamics of planar biped walkers,” IEEE Transac-tions on Automatic Control, vol. 48, no. 1, pp. 42–56,January 2003.

[2] E. R. Westervelt, J. W. Grizzle, C. Chevallereau, J. H.Choi, and B. Morris, Feedback Control of DynamicBipedal Robot Locomotion. Boca Raton: CRC Press,2007.

[3] K. Sreenath, H. Park, I. Poulakakis, and J. Grizzle, “Acompliant hybrid zero dynamics controller for stable,efficient and fast bipedal walking on MABEL,” IJRR,vol. 30, pp. 1170–1193, 2011.

[4] K. Sreenath, H.-W. Park, I. Poulakakis, and J. W. Grizzle,“Embedding active force control within the complianthybrid zero dynamics to achieve stable, fast runningon MABEL,” The International Journal of RoboticsResearch (IJRR), vol. 32, no. 3, pp. 324–345, March2013.

Page 9: Optimal Robust Control for Bipedal Robots through Control ... · hybrid systems and control Lyapunov function based quadratic programs, introduced in [5] and [6] respectively. A

[5] A. D. Ames, K. Galloway, J. W. Grizzle, and K. Sreenath,“Rapidly Exponentially Stabilizing Control LyapunovFunctions and Hybrid Zero Dynamics,” IEEE Trans.Automatic Control, vol. 59, no. 4, pp. 876–891, Apr.2014.

[6] K. Galloway, K. Sreenath, A. D. Ames, and J. W. Grizzle,“Torque saturation in bipedal robotic walking throughcontrol lyapunov function based quadratic programs,”IEEE Access, vol. 3, pp. 323–332, Apr. 2015.

[7] A. D. Ames and M. Powell, “Towards the unification oflocomotion and manipulation through control lyapunovfunctions and quadratic programs,” in Control of Cyber-Physical Systems, Lecture Notes in Control and Informa-tion Sciences, vol. 449, 2013, pp. 219–240.

[8] B. Morris, M. J. Powell, and A. D. Ames, “Sufficientconditions for the lipschitz continuity of qp-based multi-objective control of humanoid robots,” in IEEE Confer-ence on Decision and Control, Florence, Italy, December2013, pp. 2920–2926.

[9] F. L. Lewis, D. Vrabie, and V. L. Syrmos, OptimalControl. John Wiley & Sons, 2012.

[10] K. Zhou, J. Doyle, and K. Glover, Robust and OptimalControl. Prentice Hall PTR, 1996.

[11] F. Lin, Robust Control Design: An Optimal ControlApproach. John Wiley & Sons, 2007.

[12] H. T. dn S. Shu and F. Lin, “An optimal control approachto robust tracking of linear systems,” International Jour-nal of Control, vol. 82, pp. 525–540, 2009.

[13] F. Lin, “An optimal control approach to robust controldesign,” International Journal of Control, vol. 73, pp.177–186, 2000.

[14] E. D. Sontag, “On the input-to-state stability property,”European Journal of Control, vol. 1, pp. 24–36, 1995.

[15] E. D. Sontag and Y. Wang, “On characterizations ofthe input-to-state stability property,” Systems & ControlLetters, vol. 24, pp. 351–359, 1995.

[16] D. Angeli, E. Sontag, and Y. Wang, “A characterizationof integral input-to-state stability,” IEEE Transactions onAutomatic Control, vol. 45, pp. 1082–1097, 2000.

[17] L. Vu, D. Chatterjee, and D. Liberzon, “Input-to-statestability of switched systems and switching adaptivecontrol,” Automatica, vol. 43, pp. 639–646, 2007.

[18] J. P. Hespanhaa, D. Liberzon, and A. R. Teel, “Lyapunovconditions for input-to-state stability of impulsive sys-tems,” Automatica, vol. 44, pp. 2735–2744, 2008.

[19] C. Cai and A. R. Teel, “Characterizations of input-to-state stability for hybrid systems,” Systems & ControlLetters, vol. 58, pp. 47–53, 2009.

[20] C. Edwards and S. Spurgeon, Sliding Mode Control:Theory And Applications. CRC Press, 1998.

[21] S. V. Drakunov and V. I. Utkin, “Sliding mode controlin dynamic systems,” International Journal of Control,vol. 55, pp. 1029–1037, 1992.

[22] M. Zhihong, A. Paplinski, and H. Wu, “A robust mimoterminal sliding mode control scheme for rigid roboticmanipulators,” IEEE Transactions on Automatic Control,

vol. 39, pp. 2464–2469, 1994.[23] S. G. Tzafestas, T. E. Krikochoritis, and C. S. Tzafestas,

“Robust sliding-mode control of nine-link biped robotwalking,” Journal of Intelligent and Robotic Systems,vol. 20, pp. 375–402, 1997.

[24] M. Nikkhah, H. Ashrafiuon, and F. Fahimi, “Robustcontrol of underactuated bipeds using sliding modes,”Robotica, vol. 25, pp. 367–374, 2007.

[25] M. Zohdy and A. Zaher, “Robust control of bipedrobots,” Proc. The 2000 American Control Conference,vol. 3, pp. 1473–1477, 2000.

[26] C. S. O. B. G. Buche, “Control strategy for the robustdynamic walk of a biped robot,” International Journal ofRobotics Research, vol. 25, pp. 843–860, 2006.

[27] S. Kolathaya and A. D. Ames, “Exponential convergenceof a unified clf controller for robotic systems underparameter uncertainty,” in American Control Conference,Portland, OR, June 2014, pp. 3710–3715.

[28] B. Morris, M. J. Powell, and A. D. Ames, “Sufficient con-ditions for the Lipschitz continuity of QP-based multi-objective control of humanoid robots,” Proc. 52nd IEEEConf. Decision and Control, pp. 2920–2926, 2013.

[29] C. Chevallereau, G. Abba, Y. Aoustin, F. Plestan, E. R.Westervelt, C. Canudas-de-Wit, and J. W. Grizzle, “RAB-BIT: A testbed for advanced control theory,” IEEE Con-trol Systems Magazine, vol. 23, no. 5, pp. 57–79, October2003.

[30] A. Isidori, Nonlinear Control Systems: An Introduction,2nd ed. Berlin, Germany: Springer-Verlag, 1989.

[31] B. Morris and J. Grizzle, “Hybrid invariance in bipedalrobots with series compliant actuators,” in IEEE Confer-ence on Decision and Control, San Diego, CA, USA,December 2006, pp. 4793 – 4800.

[32] ——, “A restricted Poincaré map for determining expo-nentially stable periodic orbits in systems with impulseeffects: Application to bipedal robots,” in 44th IEEEConference on Decision and Control, Seville, Spain,December 2005, pp. 4199–4206.

[33] R. A. Freeman and P. V. Kokotovic, Robust NonlinearControl Design. Birkhäuser, 1996.

[34] Q. Nguyen and K. Sreenath. (2015) Optimal robustcontrol for bipedal robots through control lyapunovfunction based quadratic programs. [Online]. Available:http://www.cmu.edu/me/hdr/publications/RSS15_full.pdf

[35] E. R. Westervelt, G. Buche, and J. W. Grizzle, “Ex-perimental validation of a framework for the design ofcontrollers that induce stable walking in planar bipeds,”International Journal of Robotics Research, vol. 24,no. 6, pp. 559–582, June 2004.

[36] B. Morris, E. Westervelt, C. Chevallereau, G. Buche, andJ. Grizzle, Fast Motions Symposium on Biomechanicsand Robotics, ser. Lecture Notes in Control and Informa-tion Sciences. Heidelberg, Germany: Springer-Verlag,2006, ch. Achieving Bipedal Running with RABBIT: SixSteps toward Infinity, pp. 277–297.