KINETIC ENERGY SHAPING IN THE INVERTED PENDULUM

Similar documents
El péndulo invertido: un banco de pruebas para el control no lineal. XXV Jornadas de Automática

Control of the Inertia Wheel Pendulum by Bounded Torques

A Normal Form for Energy Shaping: Application to the Furuta Pendulum

On the PDEs arising in IDA-PBC

Lyapunov-Based Controller for the Inverted Pendulum Cart System

Relaxed Matching for Stabilization of Mechanical Systems

Research Article On the Stabilization of the Inverted-Cart Pendulum Using the Saturation Function Approach

Swinging-Up and Stabilization Control Based on Natural Frequency for Pendulum Systems

A GLOBAL STABILIZATION STRATEGY FOR AN INVERTED PENDULUM. B. Srinivasan, P. Huguenin, K. Guemghar, and D. Bonvin

Cooperative Control and Mobile Sensor Networks

Controlled Lagrangian Methods and Tracking of Accelerated Motions

Constructive Invariant Manifolds to Stabilize Pendulum like systems Via Immersion and Invariance

Minimizing Cable Swing in a Gantry Crane Using the IDA-PBC Methodology

ENERGY BASED CONTROL OF A CLASS OF UNDERACTUATED. Mark W. Spong. Coordinated Science Laboratory, University of Illinois, 1308 West Main Street,

A Nonlinear Strategy to Control Unstable Underactuated Mechanical Systems with Underactuation > 1. Applications to Control Augmentations

Flat Nonholonomic Matching

Stabilization of Nonlinear Systems via Forwarding

Energy-based Swing-up of the Acrobot and Time-optimal Motion

The IDA-PBC Methodology Applied to a Gantry Crane

Stabilization of a 3D Rigid Pendulum

Passivity-based Control of Euler-Lagrange Systems

Interconnection and Damping Assignment Approach for Reliable PM Synchronous Motor Control

Lecture 9 Nonlinear Control Design

Exponential Controller for Robot Manipulators

Controlled Lagrangians and the Stabilization of Mechanical Systems II: Potential Shaping

Global stabilization of feedforward systems with exponentially unstable Jacobian linearization

Global Stabilisation of Underactuated Mechanical Systems via PID Passivity-Based Control

Efficient Swing-up of the Acrobot Using Continuous Torque and Impulsive Braking

Lecture 9 Nonlinear Control Design. Course Outline. Exact linearization: example [one-link robot] Exact Feedback Linearization

Nonlinear Tracking Control of Underactuated Surface Vessel

available online at CONTROL OF THE DOUBLE INVERTED PENDULUM ON A CART USING THE NATURAL MOTION

Reverse Order Swing-up Control of Serial Double Inverted Pendulums

Locally optimal controllers and application to orbital transfer (long version)

Swinging Up a Pendulum by Energy Control

3 Stability and Lyapunov Functions

1 Lyapunov theory of stability

Dynamical Systems & Lyapunov Stability

Review Article Furuta s Pendulum: A Conservative Nonlinear Model for Theory and Practise

Robust Hamiltonian passive control for higher relative degree outputs Carles Batlle, Arnau Dòria-Cerezo, Enric Fossas

Passivity-Based Control of an Overhead Travelling Crane

Analysis and Control of Multi-Robot Systems. Elements of Port-Hamiltonian Modeling

State and Parameter Estimation Based on Filtered Transformation for a Class of Second-Order Systems

SWINGING UP A PENDULUM BY ENERGY CONTROL

Topic # /31 Feedback Control Systems. Analysis of Nonlinear Systems Lyapunov Stability Analysis

SINCE the 1959 publication of Otto J. M. Smith s Smith

arxiv: v1 [cs.sy] 30 Dec 2018

Transverse Linearization for Controlled Mechanical Systems with Several Passive Degrees of Freedom (Application to Orbital Stabilization)

Feedback stabilisation with positive control of dissipative compartmental systems

Lyapunov Stability Analysis of a Twisting Based Control Algorithm for Systems with Unmatched Perturbations

Active Nonlinear Observers for Mobile Systems

arxiv: v1 [cs.sy] 24 Mar 2016

M2A2 Problem Sheet 3 - Hamiltonian Mechanics

Controlled Lagrangian Systems with Gyroscopic Forcing and Dissipation

System simulation using Matlab, state plane plots

Experimental Results for Almost Global Asymptotic and Locally Exponential Stabilization of the Natural Equilibria of a 3D Pendulum

SIMULTANEOUS INTERCONNECTION AND DAMPING ASSIGNMENT PASSIVITY BASED CONTROL: TWO PRACTICAL EXAMPLES 1

Stable Synchronization of Mechanical System Networks

IN THIS paper, we study the problem of asymptotic stabilization

Mathematics for Control Theory

Stable Limit Cycle Generation for Underactuated Mechanical Systems, Application: Inertia Wheel Inverted Pendulum

RESEARCH ARTICLE. Nonlinear and locally optimal controller design for input affine locally controllable systems

A new passivity property of linear RLC circuits with application to Power Shaping Stabilization

The Inverted Pendulum

CONTROL OF THE NONHOLONOMIC INTEGRATOR

Decomposition of Linear Port-Hamiltonian Systems

A Simplified IDA-PBC Design for Underactuated Mechanical Systems with Applications

Trigonometric Saturated Controller for Robot Manipulators

EN Nonlinear Control and Planning in Robotics Lecture 3: Stability February 4, 2015

In the presence of viscous damping, a more generalized form of the Lagrange s equation of motion can be written as

A Fuzzy Control Strategy for Acrobots Combining Model-Free and Model-Based Control

arxiv: v1 [cs.sy] 19 Dec 2018

CHAPTER 12 OSCILLATORY MOTION

Nonlinear Oscillators: Free Response

Disturbance Attenuation for a Class of Nonlinear Systems by Output Feedback

Stabilization of a Specified Equilibrium in the Inverted Equilibrium Manifold of the 3D Pendulum

arxiv:math/ v2 [math.oc] 8 Nov 2002

A Model-Free Control System Based on the Sliding Mode Control Method with Applications to Multi-Input-Multi-Output Systems

q HYBRID CONTROL FOR BALANCE 0.5 Position: q (radian) q Time: t (seconds) q1 err (radian)

There is a more global concept that is related to this circle of ideas that we discuss somewhat informally. Namely, a region R R n with a (smooth)

EE 16B Midterm 2, March 21, Name: SID #: Discussion Section and TA: Lab Section and TA: Name of left neighbor: Name of right neighbor:

MECHANISM DESIGN AND DYNAMIC FORMULATION FOR CART/SEESAW/PENDULUM SYSTEM

Passivity-based Adaptive Inventory Control

Attitude Regulation About a Fixed Rotation Axis

IMPROVED MPC DESIGN BASED ON SATURATING CONTROL LAWS

Control of Mobile Robots

Synergetic Control of the Unstable Two-Mass System

Stability of Nonlinear Systems An Introduction

SWING UP A DOUBLE PENDULUM BY SIMPLE FEEDBACK CONTROL

Decentralized PD Control for Non-uniform Motion of a Hamiltonian Hybrid System

External disturbance rejection in IDA-PBC controller for underactuated mechanical systems : from theory to real time experiments

Chaotic motion. Phys 420/580 Lecture 10

Simultaneous IDA-Passivity-based control of a Wound Rotor Synchronous Motor

Lab 6d: Self-Erecting Inverted Pendulum (SEIP)

Represent this system in terms of a block diagram consisting only of. g From Newton s law: 2 : θ sin θ 9 θ ` T

Adaptive Control Based on Incremental Hierarchical Sliding Mode for Overhead Crane Systems

Global output regulation through singularities

Asymptotic Smooth Stabilization of the Inverted 3D Pendulum

L 2 -induced Gains of Switched Systems and Classes of Switching Signals

Some results on energy shaping feedback

Lyapunov Stability of Linear Predictor Feedback for Distributed Input Delays

Transcription:

KINETIC ENERGY SHAPING IN THE INVERTED PENDULUM J. Aracil J.A. Acosta F. Gordillo Escuela Superior de Ingenieros Universidad de Sevilla Camino de los Descubrimientos s/n 49 - Sevilla, Spain email:{aracil, jaar, gordillo}@esi.us.es Abstract: In this paper, a new control law for the pendulum on a cart is proposed. The novelty of the new control law is in the combination of methods that is used to obtain it. First, a control law for transforming the pendulum subsystem in a Hamiltonian system is obtained. The resulting Hamiltonian function has a maximum at the desired position. The objective of the second step is to inject energy (so the pendulum subsystem tends to the maximum of the Hamiltonian) at the same time that the cart is stopped. It is shown that both objectives can be solved using forwarding, which in this case yields solvable partial differential equations. Keywords: Energy shaping, forwarding, inverted pendulum.. INTRODUCTION In this paper, the problem of stabilization of the inverted pendulum on a cart is addressed. This problem has been solved by means of several methods in the literature.the novelty of the new control law is the combination of methods that is used to obtain it. In a first stage, an energy shaping law (van der Schaft, 989) is obtained for the pendulum subsystem. The only consideration of this subsystem greatly simplifies this step. An interesting feature of the approach presented here is that the kinetic energy is shaped instead of the potential energy. This approach yields the consideration of negative masses and the use of the Lyapunov criteria with opposite sign as usual. The subsequent benefits of this choice justify this weak nuisance. In the second stage, two objectives are pursued: damping injection (that in our case is actually energy injection) and extension of the control law to the cart subsystem in such a way that the cart is also stopped. It is shown that both objectives can be accomplished by means of a variant of forwarding (Sepulchre et al., 997; Mazenc and Praly, 996; Praly et al., ), which with the previous choices yields solvable partial differential equations (PDEs). Nevertheless, due to the fact that the first subsystem is not GAS, the usual forwarding stability result does not apply and a proof of asymptotical stability has been included. The resultant control law has strong similarities with the one proposed in (Bloch et al., ) but it shows some differences. Among them, it has different tuning parameters that allows us to improve the performance of the closed-loop system as is shown by means of simulations.. SYSTEM DESCRIPTION AND STATEMENT OF THE PROBLEM Consider the pendulum on a cart, which is one of the most widely-studied cases of underactuated control systems. This system is well-known and it is shown in Fig., where the main physical

parameters are identified. The Lagrangian of the pendulum on a cart is L = ( θ +βcos θ θṡ + γṡ ) ω (cos θ ) () where = ml, β = ml, γ = M + m, and ω = mgl. This notation is very similar to the one in (Bloch et al., ) in order to facilitate the comparison. Based on Eq. (), the Euler-Lagrange equations become θ + β cos θ s ω sin θ = () β cos θ θ + γ s + β sin θ θ = u. (3) Fig.. Pendulum on a cart. As is well known (see, for instance, (Spong, 998)), Eqs. () and (3) can be partially linearized (and, thus, partially decoupled). From (), θ = (β cos θ s ω sin θ) (4) is obtained; which with (3), leads to ( ) s γ β cos θ + βω sin θ cos θ β sin θ θ = u.(5) By making s = v in this last equation we obtain u = βω sin θ cos θ β sin θ θ + γ β cos θ v,(6) which defines an inner feedback law that partially linearizes the system. This controller converts Eqs. () and (3) into θ ω sin θ = β cos θv (7) s = v, (8) which is the partially linearized form of the equations of the pendulum on a cart. From (7) and (8) it is clear that v = defines an invariant manifold in the state space. The dynamics of θ in this manifold represents the zero dynamics of the system with respect to v and θ. The goal is to stabilize the pendulum at the upright position and to stop the cart. Notice that the zero dynamics have a saddle at the desired equilibrium point, and not a stable point. The approach proposed here consists of acting on the zero dynamics to change the saddle point at the origin to a center, that is, to have a maximum of the energy at the equilibrium point. Only the dynamics of the pendulum (Eq. (7)) are considered in the next section, while Section 4 deals with the whole system. 3. CONSERVATIVE LAW First, we focus in the pendulum system (Eq. (7)) aiming to convert it in a Hamiltonian system (van der Schaft, 989) (without damping) with a desired Hamiltonian function. Later we will consider the problem of damping injection and extension to the cart subsystem. As it is wellknown the energy of the pendulum subsystem (Eq. (7)) has a minimum at (θ, θ) =(π, ) and a saddle point in (θ, θ) =(, ). In order to stabilize the pendulum in the upright position using energy shaping one possibility is to shape the potential energy in order to have a minimum of the whole energy in the upright position. Here we use a different approach: we look for a maximum of the energy at the desired position and, thus, the desired kinetic energy should have a maximum at this upright position. To this end we propose the desired energy as H d = ( + f(θ)) θ + ω (cos θ ), (9) where the kinetic energy has been changed adding a function f(θ) to the original mass in such a way that + f(θ) < in the domain of interest. In this way H d has a maximum at the desired point. Thus, in closed loop we look for a system with negative kinetic energy. It should be realized that the same happens in (Bloch et al., ). The condition + f < limits the domain of attraction of the desired equilibrium in the closedloop system. In order to fulfill the matching conditions (Ortega et al., ), the corresponding Hamiltonian system has to be [ ] d = dt θ θ + f(θ) + f(θ) [ Dθ H d D θh d From Eq. () θ = f (θ) θ ω sin θ, () + f(θ) With the choice of f(θ) that it is considered below, θ <π/ in the domain of attraction (the pendulum is above the horizontal) and thus, this law is not suitable for swinging up the pendulum, neither is the one proposed in (Bloch et al., ). ] ()

is obtained, which is the desired closed-loop behavior. On the other hand, remembering Eq. (7), the open loop is given by θ = ω sin θ β cos θvc, () where v c has been used instead of v because for the moment we are interested in the conservative behavior of the closed-loop system. Matching openloop () and closed-loop () equations yields f (θ) θ ω sin θ = ω + f(θ) sin θ β cos θvc. After some algebraic manipulations we obtain ( + f(θ)) β cos θvc = f (θ) θ f ω sin θ. By making in this equation f(θ) =kβ cos θ, with k < (other elections are possible, this choice has a great advantage as it is shown below), and assuming π/ <θ<π/, we obtain ( + f(θ))v c = k sin θ(ω cos θ θ ), which leads to v c = k sin θ(ω cos θ θ ). (3) + f(θ) It is worth noting that control law (3) is the same as the one obtained in (Bloch et al., ) by the method of the controlled Lagrangians. This can be easily checked by substituting Eq. (3) into Eq. (6), yielding u c = (kγ + β)sinθ(ω cos θ θ ), (4) + f(θ) which is the same as (.8) of (Bloch et al., ), because it is easy to show that (kγ + β) =κβ, where κ is a parameter introduced in (Bloch et al., ). The pendulum will oscillate in a non-structurally stable way under control law (3) or (4). Figure shows the simulation results for a value of k< such that + f(θ) < and, therefore, the kinetic energy is negative. The equilibrium point at the upright position becomes a center. It is easy to see that, in this case, Ḣ d =, i.e., function H d is a conserved quantity. In the absence of damping the pendulum evolves as the natural hanging pendulum, but now oscillating around the upper vertical line. 4. DAMPING INJECTION AND EXTENSION TO THE CART Once the conservative law has been obtained, the next steps are to introduce energy injection (notice that, as the desired point is a maximum of the Hamiltonian, energy must be injected instead of damping) as well as to deal with the cart dynamics. We can cope simultaneously with both objectives by means of forwarding as it is shown in this section. The idea is to modify the previous control law by using forwarding in order to have a GAS system in closed loop for the whole system. Introducing in system (7) (8) v = v c + v d with v c given by (3) and v d to be determined, results: θ =sinθ cos θv c (θ, θ) cos θv d (5) s = v c (θ, θ)+v d. (6) The pendulum subsystem is not GAS and, thus, usual stability forwarding results (Sepulchre et al., 997; Mazenc and Praly, 996) do not apply. Nevertheless, a procedure quite close to the usual one can be applied provided the stability of the resultant system is checked at the end. Consider a Lyapunov function candidate of the form: V = H d λ ν with ( + f(θ)) <, λ > and ν(θ, θ, ṡ) a function to be determined. The time derivative of V is V = dv + dv + dv 3, with ( ω dv =( + f(θ)) sin θ β ) cos θvc + f (θ) θ ω sin θ θ (7) ( ν dv = λ ν θ θ + ν ( ω sin θ β ) cos θvc + ν ) ṡ vc (8) dv 3 = v ( ( d + f) β θ cos θ ( λ ν ν )) β ν cos θ +. (9) ṡ The term dv is equal to Ḣd when v = v c and, thus, it is equal to zero due to the choice of v c. The method consists in looking for a function ν such that the term dv is equal to zero and looking for v d such that the term dv 3 is non-negative. The condition dv = leads to the following PDE ν θ θ + ν θ + ν s =. ṡ This is the PDE found when forwarding is applied. Usually, it is cumbersome to solve it. However, in our case the solution is greatly simplified. As the time derivatives of θ, θ and ṡ depend only on θ and θ, the solution of this PDE is of the form ν =ṡ M(θ, θ) and the equation reads

s ṡ [m/s] 4 6 5 5 6 4 s 5 5 ṡ [m/s].5.5 5 5.5.5 5 5 Fig.. Simulation of the pendulum on a cart with control law (4). that is M θ θ + M θ = v c (θ, θ), Ṁ = v c (θ, θ). () With this control law, stability in the sense of Lyapunov is guaranteed since V but the strict inequality has not been achieved. In order to proof asymptotical stability LaSalle invariance principle can be used resulting the following proposition: But it can be easily checked that v c (θ, θ) = d dt (k θ cos θ), and, thus, M(θ, θ) =k θ cos θ. Now, v d will be chosen so that the term dv 3 is nonnegative. Looking at (9) this can be achieved by choosing v d = λ ( ( + f) β θ cos θ ( λ ν ν )) β ν cos θ + ṡ with λ >. This yields v d = λ + f ( β θ cos θ + λ (ṡ k θ ) cos θ) Remark. Using v = v c +v d with v c and v d given respectively by (3) and () and substituting in (6) a controller with a structure similar to the one of (Bloch et al., ) is obtained. Nevertheless, the controllers are different. Notice that our tuning parameters are λ and λ (apart from k). () Proposition. The origin of system () (3) with control law given by (6), and v = v c + v d using (3) and () is locally asymptotically stable. Its domain of attraction includes the set in the interior of the largest level surface of V that does not cross the value of θ fulfilling + f(θ) =. Proof. First, let us formulate the system with the coordinate transformation ν = ṡ k θ cos θ, resulting θ = ω sin θ β cos θv c(θ, θ) β cos θv d () ν = + f(θ) v d. (3) From the definition of V, it qualifies as a Lyapunov function candidate in the domain defined in the statement of the proposition 3.Fromthe previous choice of v d, V. Let us determine the invariant set for which V =. From the choice of v c and v d it is clear that V = if and only if v d =. From (3), ν =.Thus,ν is constant ν = ν. It should be realized that this property is associated with the choice of f(θ) above. 3 As we are using negative masses, we have to use Lyapunov criteria in the opposite way as usual: V is negative definite and V hastobepositivedefinite.

Moreover, v d = implies ν = β cos θ θ/λ (from ()), but as ν is constant so is cos θ θ. This fact and () yield v c =. Therefore, the residual dynamics for V =are θ = ω sin θ (4) ν = (5) Equation (4) represents the dynamics of a simple pendulum without friction, with energy function E = θ + ω cos θ, which is a constant of motion, as it is well-known. But we have another constant of motion in this residual dynamics, namely cos θ θ = c. Substituting θ from the latter constant of motion in the energy function yields the following equation E = ( c cos θ ) + ω cos θ, (6) where E and c are constants. This equation has, at most, three isolated solutions for θ and, therefore, θ =. In a single pendulum this can only happen in the domain of interest for θ =. The resultant closed-loop system has been simulated using the same system parameters as in (Bloch et al., ) (corresponding to =.65, β =.3, ω =.95 in our model). Figure 3 shows similar results to the ones of (Bloch et al., ) (the tuning parameters are k = 7.6, λ =. and λ = ). Nevertheless, the performance can be improved using other values of λ and λ. Figure 4 shows the results for the same value of k, λ =. and λ =. (notice the difference in the time scales). 5. CONCLUSIONS In this paper the possibilities of energy shaping have been explored through its application to the pendulum on a cart. The methodology is applied to a well-known example of an underactuated system: the inverted pendulum on a cart. In this problem, energy shaping has been combined with forwarding to achieve the goal. Energy shaping has been applied to the pendulum subsystem. Forwarding has been used for two purposes: on the one hand, the usual one for extending the control law from a low-dimensional system to the whole system and on the other hand for introducing damping (energy injection in our case), which is necessary since the proposed control law for the low-dimensional system is conservative. Due to the fact that the standard forwarding procedure has not been used, it has been necessary to include a proof of asymptotical stability. The resultant control law has been compared with the one obtained in (Bloch et al., ) showing an interesting similarity. Simulations results show the good performance that it is achieved with the new law. Acknowledgments This work has been supported under MCyT-FEDER grants DPI3-49 and DPI-44-C-. 6. REFERENCES Bloch, A., N. Leonard and J. Marsden (). Controlled lagrangians and the stabilization of mechanical systems I: The first matching theorem. In: IEEE Trans. on Automatic Control. Vol. 45, No.. pp. 53 7. Academic Press. San Francisco, USA. Mazenc, F. and L. Praly (996). Adding integrations, saturated controls and stabilization for feedforward systems. IEEE Transactions on Automatic Control 4(), 559 578. Ortega, R., A.J. Van Der Schaft, I. Mareels and B. Maschke (). Putting energy back in control. IEEE Control Systems Magazine (), 8 33. Praly, Laurent, Romeo Ortega and Georgia Kaliora (). Stabilization of nonlinear systems via forwarding modl g V. IEEE Transactions on Automatic Control 46(), 46 466. Sepulchre, R., M. Jankovic and P. Kokotovic (997). Constructive Nonlinear Control. Springer-Verlag. Spong, M.W. (998). Control problems in robotics and automation. Chap. Underactuated mechanical systems, pp. 35 5. Springer. Berlin. van der Schaft, A. (989). L -Gain and Passivity Techniques in Nonlinear Control. Springer- Verlag.

.5.5.5 ṡ [rad] 5 5.5 4 6 3 V 4 6.5..5..5.3.35 4 6 Fig. 3. Behavior of the final closed-loop system with λ =. and λ =..5.5.5 5 5.5.5.5.5.5.5.5 V ṡ [rad] 8 6 4 4 5 5.5..5..5 5 5 Fig. 4. Behavior of the final closed-loop system with λ =. and λ =..