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

Similar documents
Stabilization and Passivity-Based Control

Port-Hamiltonian systems: network modeling and control of nonlinear physical systems

Port-Hamiltonian systems: a theory for modeling, simulation and control of complex physical systems

Are thermodynamical systems port-hamiltonian?

Port-Hamiltonian Systems: from Geometric Network Modeling to Control

Port-based Modeling and Control for Efficient Bipedal Walking Machines

Dissipative Systems Analysis and Control

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

Formation Control Over Delayed Communication Networks

Port Hamiltonian Systems

HAMILTONIAN FORMULATION OF PLANAR BEAMS. Goran Golo,,1 Arjan van der Schaft,1 Stefano Stramigioli,1

Passivity-based Control of Euler-Lagrange Systems

When Gradient Systems and Hamiltonian Systems Meet

Decomposition of Linear Port-Hamiltonian Systems

Port-Hamiltonian Based Modelling.

Modeling of Electromechanical Systems

Representation of a general composition of Dirac structures

Passive control. Carles Batlle. II EURON/GEOPLEX Summer School on Modeling and Control of Complex Dynamical Systems Bertinoro, Italy, July

Port-Hamiltonian Systems: from Geometric Network Modeling to Control

Generalized Coordinates, Lagrangians

Copyrighted Material. 1.1 Large-Scale Interconnected Dynamical Systems

Interconnection and Damping Assignment Approach for Reliable PM Synchronous Motor Control

Passivity Indices for Symmetrically Interconnected Distributed Systems

(Refer Slide Time: 00:01:30 min)

Robotics Intelligent sensors (part 2)

Nonlinear Control Lecture 7: Passivity

ENGI9496 Modeling and Simulation of Dynamic Systems Bond Graphs

AC&ST AUTOMATIC CONTROL AND SYSTEM THEORY SYSTEMS AND MODELS. Claudio Melchiorri

Power based control of physical systems: two case studies

KINETIC ENERGY SHAPING IN THE INVERTED PENDULUM

Nonlinear Single-Particle Dynamics in High Energy Accelerators

Mathematics for Control Theory

Contents. Dynamics and control of mechanical systems. Focus on

On the PDEs arising in IDA-PBC

Balancing of Lossless and Passive Systems

Flat Nonholonomic Matching

Passivity-Based Control of an Overhead Travelling Crane

Introduction to Control of port-hamiltonian systems - Stabilization of PHS

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

Port Hamiltonian Control

arxiv: v2 [math.oc] 6 Sep 2012

REVIEW. Hamilton s principle. based on FW-18. Variational statement of mechanics: (for conservative forces) action Equivalent to Newton s laws!

Control of the Inertia Wheel Pendulum by Bounded Torques

NETWORK MODELING OF PHYSICAL SYSTEM DYNAMICS

System-theoretic properties of port-controlled Hamiltonian systems Maschke, B.M.; van der Schaft, Arjan

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

Cyber-Physical Systems Modeling and Simulation of Continuous Systems

General procedure for formulation of robot dynamics STEP 1 STEP 3. Module 9 : Robot Dynamics & controls

Controlled Lagrangian Methods and Tracking of Accelerated Motions

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

EML5311 Lyapunov Stability & Robust Control Design

Translational Mechanical Systems

Composition of Dirac Structures and Control of Port-Hamiltonian Systems

The Geometry Underlying Port-Hamiltonian Systems

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

Dynamics and control of mechanical systems

NONLINEAR CONTROLLER DESIGN FOR ACTIVE SUSPENSION SYSTEMS USING THE IMMERSION AND INVARIANCE METHOD

Index. Index. More information. in this web service Cambridge University Press

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

School of Engineering Faculty of Built Environment, Engineering, Technology & Design

The Accelerator Hamiltonian in a Straight Coordinate System

MCE693/793: Analysis and Control of Nonlinear Systems

Network Modeling and Control of Physical Systems, DISC. Theory of Port-Hamiltonian systems

Lecture 1 From Continuous-Time to Discrete-Time

G : Statistical Mechanics

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

Dissipativity. Outline. Motivation. Dissipative Systems. M. Sami Fadali EBME Dept., UNR

Mechatronics 1: ME 392Q-6 & 348C 31-Aug-07 M.D. Bryant. Analogous Systems. e(t) Se: e. ef = p/i. q = p /I, p = " q C " R p I + e(t)

NONLINEAR AND ADAPTIVE (INTELLIGENT) SYSTEMS MODELING, DESIGN, & CONTROL A Building Block Approach

Optimal Control. Lecture 18. Hamilton-Jacobi-Bellman Equation, Cont. John T. Wen. March 29, Ref: Bryson & Ho Chapter 4.

Passivity Preserving Model Order Reduction For the SMIB

Lecture Notes of EE 714

Deriving Thermodynamics from Linear Dissipativity Theory

Verification of analog and mixed-signal circuits using hybrid systems techniques

Modeling and Analysis of Dynamic Systems

Nonlinear Control Lecture 9: Feedback Linearization

Analog Signals and Systems and their properties

Symplectic Hamiltonian Formulation of Transmission Line Systems with Boundary Energy Flow

Problem 1: Lagrangians and Conserved Quantities. Consider the following action for a particle of mass m moving in one dimension

Robotics & Automation. Lecture 25. Dynamics of Constrained Systems, Dynamic Control. John T. Wen. April 26, 2007

Dynamical Systems & Lyapunov Stability

A Light Weight Rotary Double Pendulum: Maximizing the Domain of Attraction

where C f = A ρ g fluid capacitor But when squeezed, h (and hence P) may vary with time even though V does not. Seems to imply C f = C f (t)

Read textbook CHAPTER 1.4, Apps B&D

NONLINEAR MECHANICAL SYSTEMS (MECHANISMS)

arxiv: v1 [math.oc] 21 Nov 2018

Advanced Vibrations. Elements of Analytical Dynamics. By: H. Ahmadian Lecture One

AN EXTENSION OF HAMILTONIAN SYSTEMS TO THE THERMODYNAMIC PHASE SPACE: TOWARDS A GEOMETRY OF NONREVERSIBLE PROCESSES. and A. J.

Dirac Structures and the Legendre Transformation for Implicit Lagrangian and Hamiltonian Systems

Nonlinear Control. Nonlinear Control Lecture # 25 State Feedback Stabilization

Relativistic Mechanics

TTK4150 Nonlinear Control Systems Solution 6 Part 2

Modeling of electromechanical systems

Modeling of Dynamic Systems: Notes on Bond Graphs Version 1.0 Copyright Diane L. Peters, Ph.D., P.E.

Modeling and Experimentation: Compound Pendulum

2.004 Dynamics and Control II Spring 2008

Objectives. Fundamentals of Dynamics: Module 9 : Robot Dynamics & controls. Lecture 31 : Robot dynamics equation (LE & NE methods) and examples

Introduction to Mechanical Vibration

Structural Dynamics Lecture 4. Outline of Lecture 4. Multi-Degree-of-Freedom Systems. Formulation of Equations of Motions. Undamped Eigenvibrations.

Sketchy Notes on Lagrangian and Hamiltonian Mechanics

Transcription:

Elective in Robotics 2014/2015 Analysis and Control of Multi-Robot Systems Elements of Port-Hamiltonian Modeling Dr. Paolo Robuffo Giordano CNRS, Irisa/Inria! Rennes, France

Introduction to Port-Hamiltonian Systems Port-Hamiltonian Systems (PHS): strong link with passivity Σ Passivity: I/O characterization Constraint on the I/O energy flow Many desirable properties Stability of free-evolution Stability of zero-dynamics Easy stabilization with static output-feedback Modularity: passivity is preserved under proper compositions However, no insights on the structure of a passive system PHS: focus on the structure behind passive systems 2

Mass-spring-damper vs. PHS Review of the mass-spring-damper example This system was shown to be passive w.r.t. the pair with,, and as storage function the total energy (kinetic + potential) Indeed, it is But why is it passive? We must investigate its internal structure... 4

Mass-spring-damper vs. PHS The spring-mass system is made of 2 components (2 states) Assume for now no damping Mass = kinetic energy Spring = elastic energy Linear momentum Let us consider the 2 components separately 8 < V : : ẋ = v x f x = @V @x = kx Kinetic energy storing Potential energy storing Note that these (elementary) systems are the integrators with nonlinear outputs we have seen before We know they are passive w.r.t. and, respectively 5

Mass-spring-damper vs. PHS 8 < V : : ẋ = v x f x = @V @x = kx Kinetic energy storing Potential energy storing Let us interconnect them in feedback The resulting system can be written as ( ) where is the total energy (Hamiltonian) Prove that ( ) is equivalent to 6

Mass-spring-damper vs. PHS How does the energy balance look like? Skew-symmetric We find again the passivity condition w.r.t. the pair The subsystems and exchange energy in a power-preserving way no energy is created/destroyed The subsystem Total energy exchanges energy with the external world through the pair can vary only because of the power flowing through 7

Mass-spring-damper vs. PHS What if a damping term is present in the system? By interconnecting and as before (feedback interconnection), we get ( ) Skew-symmetric Positive semi-def. Prove that ( ) is equivalent to The energy balance now reads 8

Mass-spring-damper vs. PHS Again the passivity condition w.r.t. the pair Total energy can now vary only because of the power flowing through decrease because of internal dissipation But still, power-preserving exchange of energy between and 9

Mass-spring-damper vs. PHS Summarizing, this particular passive system is made of: Two atomic energy storing elements and A power-preserving interconnection among An energy dissipation element A pair and to exchange energy with the external world Why passivity of the complete system? and are passive (and irreducible ) Their power-preserving interconnection is a feedback interconnection (thus, preserves passivity) The element dissipates energy Therefore, any increase of the total energy is due to the power flowing through. For this reason, this pair is also called power-port How general are these results? 10

Introduction to Port-Hamiltonian Systems In the linear time-invariant case ( ) passivity implies existence of a storage function such that and If (always true if ) then ( ) can be rewritten as and energy balance is called the Hamiltonian function 11

Introduction to Port-Hamiltonian Systems Similarly, most nonlinear passive system can be rewritten as with being the Hamiltonian function (storage function) and Ḣ = @HT @x R(x)@H @x + @HT @x g(x)u apple yt u showing the passivity condition Roles: represents the energy stored by the system represents the internal dissipation in the system represents an internal power-preserving interconnection among different components represents a power-port, allowing energy exchange (in/out) with the external world 12

Introduction to Port-Hamiltonian Systems In the mass-spring-damper case, the generic Port-Hamiltonian formulation apple apple 0 1 0 0 specializes into J(x) =, R(x) =, 1 0 0 b g(x) = apple 0 1 13

Introduction to Port-Hamiltonian Systems In the (more abstract) example we have seen during the Passivity lectures, we showed that is a passive system with passive output y = x 2 and Storage function V (x) = 1 4 x4 1 + 1 2 x2 2 0 Can it be recast in PHS form with H(x) =V (x) being the Hamiltonian? Yes: 8 >< >: appleẋ1 ẋ 2 = apple 0 1 1 0 y = 0 1 @H @x @H @x + apple 0 1 u 14

Introduction to Port-Hamiltonian Systems What is then Port-Hamiltonian modeling? It is a cross-domain energy-based modeling philosophy, generalizing Bond Graphs Historically, network modeling of lumped-parameter physical systems (e.g., circuit theory) Main insights: all the physical domains deal, in a way or another, with the concept of Energy storage and Energy flows Electrical Hydraulical Mechanical Thermodynamical Dynamical behavior comes from the exchange of energy The energy paths (power flows) define the internal model structure 15

Introduction to Port-Hamiltonian Systems Port-Hamiltonian modeling Most (passive) physical systems can be modeled as a set of simpler subsystems (modularity!) that either: Store energy Dissipate energy Exchange energy (internally or with the external world) through power ports Role of energy and the interconnections between subsystems provide the basis for various control techniques Easily address complex nonlinear systems, especially when related to real physical ones 16

Introduction to Port-Hamiltonian Systems Port-Hamiltonian systems can be formally defined in an abstract way Everything revolves about the concepts of Power ports (medium to exchange energy) Dirac structures ( pattern of energy flow) Hamiltonian (storage of energy) We will now give a (very brief and informal) introduction of these concepts Big guys in the field: Arjan van der Schaft Romeo Ortega Bernard Maschke Mark W. Spong Stefano Stramigioli Alessandro Astolfi and many more (maybe one of you in the future?) 17

Introduction to Port-Hamiltonian Systems A power port is a pair of variables called effort and flow that mediates a power exchange (energy flow) among 2 physical components Physical domain Flow Effort electric Current Voltage magnetic Voltage Current Potential (mechanics) Velocity Force Kinetic (mechanics) Force Velocity Potential (hydraulic) Volume flow Pressure Kinetic (hydraulics) pressure Volume flow chemical Molar flow Chemical potential thermal Entropy flow temperature 18

Introduction to Port-Hamiltonian Systems A generic port-hamiltonian model is then A set of energy storage elements (with their power ports ) A set of resistive elements (with their power ports ) A set of open power-ports (with their power ports ) An internal power-preserving interconnetion, called Dirac structure An explicit example of a Dirac structure is the power-preserving interconnection represented by the skew-symmetric matrix 19

General Mechanical System Any mechanical system (also constrained) described by the Euler-Lagrange equations can be recast in a Port-Hamiltonian form Start with a set of generalized coordinates Define the Lagrangian with being the kinetic energy, the potential energy, and the positive definite Inertia matrix Apply a change of coordinates where are usually called generalized momenta The kinetic energy in the new coordinates is 20

General Mechanical System Define the Hamiltonian (total energy) of the system as The Euler-Lagrange equations for the system are ( ) Since we can rewrite ( ) as 21

General Mechanical System It follows that If (i.e., ) is bounded from below, the system is passive w.r.t. the power port Similarly, a mechanical system with collocated inputs and outputs (also underactuated) is generally described by Again, passivity w.r.t. 22

Modularity As one can expect, the proper interconnection of a number of Port-Hamiltonian Systems through a Dirac structure with is again a Port-Hamiltonian System Hamiltonian State manifold Dirac structure This allows for modularity and scalability 23

Modularity Example: given two Port-Hamiltonian System Define an interconnecting Dirac structure as (for example) The composed system is again Port-Hamiltonian with Hamiltonian function 24

Further generalizations Much more could be said on Port-Hamiltonian System. Can model distributed parameters physical systems (wherever energy plays a role) Transmission line Flexible beams Wave equations Gas/fluid dynamics Are modular (re-usability) Network structure (. -> multi-agent) Are flexible State-dependent (time-varying) interconnection structure 25

Summary PHS are a powerful way to model a very large class of physical systems For instance, every physical system admitting an Energy concept (the whole physics?) In PHS, the emphasis in on the internal structure of a system. A PHS system is a network of Power ports: medium to exchange energy Elementary/irreducible energy storing elements endowed with their power ports Dissipating elements endowed with their power ports External world power ports for external interaction A power-preserving interconnection structure (Dirac structure) among the internal power ports The total energy of a PHS is called Hamiltonian. If the Hamiltonian is bounded from below, a PHS is passive w.r.t. its external ports Proper compositions of PHS are PHS 26

Control of PHS How to control a Port-Hamiltonian System? A PHS is still a dynamical system in the general form hence, one could use any of the available (nonlinear) control techniques However, in closed-loop, we want to retain and to exploit the PHS structure PHS plant and controller Power-preserving interconnection among them 27

Control of PHS The general idea is: assume a plant and controller in PHS form, and interconnected through a suitable Controller Plant where we split the plant port into and, and use for the interconnection with the controller port In general, one can imagine two distinct control goals Regulation to or tracking of for the plant state variables Desired (closed-loop) behavior of the plant at the interaction port The latter is for instance the case of Impedance Control for robot manipulators 28

Energy Transfer Control Consider two PHS And assume we want to transfer some amount of energy among them by keeping the total energy constant This can be done by interconnecting the two PHS as apple apple u1 0 y = 1 (x 1 )y2 T (x 2 ) u 2 y 2 (x 2 )y1 T (x 1 ) 0 apple y1 y 2, 2 R Skew-symmetric Note that this is an example of a state-modulated power preserving interconnection apple 0 y J(x) = 1 (x 1 )y2 T (x 2 ) y 2 (x 2 )y1 T (x 1 ) 0 29

Energy Transfer Control Since the interconnection is power-preserving, it follows that the total Hamiltonian H(x 1,x 2 )=H(x 1 )+H(x 2 ) stays constant, i.e., However, what happens to the individual energies? Exercise: show that, Thus, depending on the parameter, energy is extracted/injected from system 1 to system 2 (no energy transfer with ) If is lower-bounded, a finite amount of energy will be transferred to system 2. Indeed, at the minimum, y 1 =0 =) Ḣ1 =0and The same of course holds for We will use these ideas in some of the following developments 30

Energy Tanks Let us examine a concrete example of the Energy Transfer Control technique To this end, we introduce the concept of Energy Tank Assume the usual PHS We know it is passive w.r.t. (u, y) since Ḣ = @HT @x R(x)@H @x + @HT @x g(x)u apple yt u 31

Energy Tanks In its integral form, the passivity condition reads H(t) H(t 0 )= Z t t 0 y T u d Z t @H T t 0 @x R(x)@H @x d {z } apple0 Let E in (t) =H(t) H(t 0 ) and E ext (t) = Z t t 0 y T u d 800 Over time, E in (t) apple E ext (t) H [J], Eext [J] 600 400 200 0 200 400 600 800 0 20 40 60 80 100 120 time [s] 32

Energy Tanks 800 Why this gap over time between and? Because of the integral of the dissipation term H [J], Eext [J] 600 400 200 0 200 400 600 H(t) H(t 0 )= Z t 800 0 20 40 60 80 100 120 time [s] However, we would be happy (from the passivity point of view) by just ensuring a lossless energy balance H(t) H(t 0 )= t 0 y T u d Z t Z t @H T t 0 @x R(x)@H @x d {z } apple0 t 0 y T u dt E in (t) =E ext (t) 33

Energy Tanks 800 Dissipation term: passivity margin of the system 600 Imagine we could recover this passivity gap This recovered energy can be freely used for whatever goal without violating the passivity constraint H [J], Eext [J] 400 200 0 200 400 600 800 0 20 40 60 80 100 120 time [s] This idea is at the basis of the Energy Tank machinery Energy Tank: an atomic energy storing element with state function T (x t )= 1 2 x2 t 0 and energy 34

Energy Tanks We want to exploit the tank for: storing back the natural dissipation of a PHS allowing to use the stored energy for implementing some action on the PHS this tank-based action will necessarily meet the passivity constraint How to achieve these goals? Let us consider again the PHS and Tank Energy element Let D(x) = @HT @x R(x)@H @x represent the (scalar) dissipation rate of the PHS We start by choosing u t = 1 x t D(x)+ũ t in the Tank dynamics 35

Energy Tanks The choice u t = 1 x t D(x)+ũ t allows to store back the dissipated energy In fact, T (x t )=x t 1 x t D(x)+ũ t = D(x)+x t ũ t In order to exploit this stored energy to implement an action on the PHS system, we must design a suitable (power-preserving) interconnection among the PHS and Tank element 8 < : ẋ t = 1 x t D(x)+ũ t y t = x t We will make use of the ideas seen in the Energy Transfer Control technique! Implement the desired action as a lossless energy transfer between Tank and PHS This action will always preserve passivity by construction 36

Energy Tanks w 2 R m Assume we want to implement the action on the PHS ( ) 8 < : m =dim(u) ẋ t = 1 x t D(x)+ũ t y t = x t We then interconnect the PHS and the Tank element by means of this statemodulated power-preserving interconnection Since this coupling is skew-symmetric, no energy is created/lost during the transfer 37

Energy Tanks After this coupling the individual dynamics become ẋ =[J(x) R(x)] @H @x + g(x) w x t y t =[J(x) R(x)] @H @x + g(x)w and ẋ t = 1 x t D(x) w T x t y = 1 x t D(x) w T g T (x) @H x t @x And altogether, a new PHS with Hamiltonian apple ẋ ẋ t = 02 w 3 J(x) B6 x t 7 @ 4 w T 5 0 x t 2 6 4 31 2 R(x) 0 7C 1 @H T x t @x R(x) 0 5A 6 4 @H @x @H @x t 3 7 5 Skew-symmetric 38

Energy Tanks Fact 1: action is correctly implemented on the original PHS Fact 2: the composite PHS is (altogether) a passive (lossless) system whatever the expression of Proof: evaluating balance apple ẋ ẋ t = 02 B6 @ 4 Ḣ = along the system trajectories, we obtain a lossless energy J(x) w x t w T x t 0 3 7 5 2 6 4 31 2 R(x) 0 7C 1 @H T x t @x R(x) 0 5A 6 4 @HT @x R(x)@H @x + @HT @x t 1 x t @H @x R(x)@H @x =0 @H @x @H @x t 3 7 5 39

Energy Tanks Fact 3: the machinery proposed so far becomes singular when What does the condition represent? From the definition of the Tank energy function the Tank energy is depleted T (x t )= 1 2 x2 t 0 we have that Therefore, this singularity represents the impossibility of passively perform the desired action One can always imagine some (safety) switching parameter such that and implement instead of (i.e., implement only if you can in a passive way ). If cannot implement, wait for better times (the Tank gets replenished) 40

Energy Tanks Note that the Tank dynamics is made of two terms ẋ t = 1 x t D(x) w T g T (x) @H x t @x The first term is always non-negative, and represents the refilling action due to the dissipation present in the PHS plant The second term can have any sign, also negative. It is then possible for the action to actually refill the tank! w Finally, note that no condition is present on x t (t 0 ) > 0 x t (t 0 )! This can be chosen as any In other words, complete freedom in choosing the initial amount of energy in the tank T (x t (t 0 )) In fact, passivity ultimately is: bounded amount of extractable energy, but for whatever initial energy in the system (only needs to be finite) 41