Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion The Second IEEE International Conference on Robotic Computing IRC 2018 Towards a well-founded software component model for cyber-physical control systems Jacques.Malenfant (at) lip6.fr Sorbonne Universit´ es, UPMC Univ Paris 06, UMR 7606, LIP6 Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Introduction How to allow/ease CPCS and robotics systems specification, implementation, test, verification, validation? Main proposals: Build over strong behavioral models (BM): stochastic hybrid 1 systems & hybrid automata. Implement jointly the software and the simulator, using modular 2 simulation models derived from the BM. ⇒ Component model integrating software, BM and simulation. Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Introduction How to allow/ease CPCS and robotics systems specification, implementation, test, verification, validation? Main proposals: Build over strong behavioral models (BM): stochastic hybrid 1 systems & hybrid automata. Implement jointly the software and the simulator, using modular 2 simulation models derived from the BM. ⇒ Component model integrating software, BM and simulation. Goals: Test, validation and verification through MIL, SIL and HIL 1 simulations. Allow a progressive approach (unit ⇒ integration ⇒ full system). 2 Provide a strong basis for a (large-scale distributed) CPCS 3 software development process. Develop more reliable CPCS with less resources. 4 Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Conceptual framework developed in four steps Well-founded BM with stochastic hybrid systems 1 Modularity and composability with hybrid automata 2 Concrete operational semantics using modular simulation 3 Integration in a software component model with full composability. 4 Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Hybrid systems Mathematical discrete/continuous behavioral (dynamic) models. Hybrid state space: S = � q ∈ Q X q ×{ q } Discrete states: Q = { q 0 , q 1 ,... } (denumerable) with discrete transitions upon events: value changes of discrete variables conditions (frontiers) met by continuous variables Each discrete state has a continuous evolution model ( e.g. , differential equations). Stochastic hybrid systems: stochastic discrete transitions, stochastic differential equations. Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
� � � � Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Hybrid system baseline model for the data transfer use case q ( t ) = NC p ( t ) ← µ ( p ( t )) dt + σ ( p ( t )) dB ( t ) ˙ p ( t ) ≥ P inf ˙ b ( t ) ← − ∆ B nc b ( t ) ≥ B ∧ p ( t ) < P inf / q ( t + ) ← C b ( t ) ≥ B b ( t ) ≥ B ∧ p ( t ) > P sup / q ( t + ) ← NC q ( t ) = C ˙ p ( t ) ← µ ( p ( t )) dt + σ ( p ( t )) dB ( t ) b ( t ) < B / q ( t + ) ← LB p ( t ) ≤ P sup ˙ b ( t ) ← − ∆ B c b ( t ) ≥ B b ( t ) < B / q ( t + ) ← LB q ( t ) = LB p ( t ) ← µ ( p ( t )) dt + σ ( p ( t )) dB ( t ) ˙ ˙ b ( t ) ← − ∆ B nc 0 ≤ b ( t ) < B Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion From monolithic hybrid systems to modular hybrid automata How to use hybrid systems in practice? Two major lines of work: Henzinger and Lynch. Hybrid automata: continuous variables and discrete events discrete transitions and continuous trajectories alternating to give the system overall trajectory partition between internal and external variables and events composition by sharing external variables and events Lynch’s et al. Hybrid Input/Output automata (HIOA): external events and variables are partitioned between input and output ones when composing, only one producer (output) for each Lynch’s et al. Timed Input/Output automata (TIOA): no external continuous variables i.e. , no sharing thereof Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
� � � � � � � � � � � � � Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Factorising the baseline model into HIOA PC controller Server controller b ( t ) ≥ B ∧ p ( t ) < Pinf / q ( t +) ← C U = { p , b } , U = { p , b } , b ( t ) ≥ B ∧ p ( t ) < Pinf / qs ( t +) ← C q ( t ) = C q ( t ) = NC O = { q } O = { q s } p ( t ) ≤ P sup p ( t ) ≥ P inf q s ( t ) = NC q s ( t ) = C b ( t ) ≥ B b ( t ) ≥ B p ( t ) ≥ P inf p ( t ) ≤ P sup b ( t ) ≥ B b ( t ) ≥ B b ( t ) ≥ B ∧ p ( t ) > Psup / q ( t +) ← NC b ( t ) < B / q ( t +) ← LB � b ( t ) < B / qs ( t +) ← LB b ( t ) ≥ B ∧ p ( t ) > Psup / qs ( t +) ← NC b ( t ) < B / q ( t +) ← LB q ( t ) = LB b ( t ) < B / qs ( t +) ← LB 0 ≤ b ( t ) < B q s ( t ) = LB 0 ≤ b ( t ) < B q ( t )= C � q ( t ) = NC q ( t ) = C qs ( t )= C � ˙ ˙ b ( t ) ← − ∆ B nc b ( t ) ← − ∆ B c b ( t ) ≥ B b ( t ) ≥ B PC q s ( t ) = NC q s ( t ) = C Y = { b } , q ( t )= NC q ( t )= LB I = { q } qs ( t )= NC qs ( t )= LB qs ( t )= LB q ( t ) = LB q ( t )= LB q s ( t ) = LB ˙ b ( t ) ← − ∆ B nc Server ( I = { q } ) 0 ≤ b ( t ) < B Environment Y = { p } ˙ p ( t ) ← µ ( p ( t )) dt + σ ( p ( t )) dB ( t ) (continuous variables: U = imported, Y = exported, X = internal; discrete variables: I = imported, O = exported, H = internal) Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion From modular hybrid automata to modular simulations What usage for BM? test, validation, verification, ... Hybrid systems/automata = declarative semantics . Simulation models = operational semantics . Translate BM into simulation models Discrete EVent Systems (DEVS): de facto “standard” for modular discrete event simulation modeling and simulators. Atomic models/simulators: core simulation engines, input and outpout of events. Coupled models/simulators: composition and coordination (simulation clock). Large variety of core simulation engines and distributed simulation implementations ( e.g. , simulated versus real-time clock). Embed simulation models into software components. Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Components, their embedded simulation engine and the exchanged events PC Controller Server Controller ¯ ˆ p b ˆ ¯ q s p q b PC Server b q ˆ b q s ¯ ¯ b p Network Environment ˆ b p ˆ p ˆ p Network Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Summary of the conceptual contributions A software component model with stochastic hybrid systems BM, modular modelling with HIOA/TIOA and embedded DEVS-like simulation models, and with composability at all levels that provide capabilities for: use cases and behavioral specification, 1 model-in-the-loop simulation and validation, 2 algorithms development and tuning, 3 unit and integration testing through software-in-the-loop 4 simulation, software verification and validation, deployment time system 5 identification, control law synthesis and hardware-in-the-loop simulation for system validation and verification, run time verification, 6 run time system self-adaptation. 7 Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Questions Questions? Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Related work Some related work about co-simulation But few with SIL or HIL And none aligning and integrating the software architecture with the simulation models. Two particularly interesting that adopt a software engineering point of view: Zoahib Iqbal et al. : systematic software testing with simulations, 1 but only discrete. De Roo et al. : unit software testing with continuous simulations. 2 Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Introduction Towards a well-founded software component model for cyber-physical control systems Conclusion Perspectives Implementation in a Java distributed component model Integrate decision models for control law synthesis ( e.g. , optimal stochastic control) Towards large-scale systems. Jacques.Malenfant (at) lip6.fr IRC 2018, 2018/01/29–02/2
Recommend
More recommend