Hard real-time multibody simulations using ARM-based embedded systems

被引:0
作者
Roland Pastorino
Francesco Cosco
Frank Naets
Wim Desmet
Javier Cuadrado
机构
[1] KU Leuven,PMA division, Department of Mechanical Engineering
[2] Universidad de La Coruña,Laboratorio de Ingeniería Mecánica
来源
Multibody System Dynamics | 2016年 / 37卷
关键词
Multibody dynamics; Hard real-time; Embedded systems; ARM processors; Xenomai;
D O I
暂无
中图分类号
学科分类号
摘要
The real-time simulation of multibody models on embedded systems is of particular interest for controllers and observers such as model predictive controllers and state observers, which rely on a dynamic model of the process and are customarily executed in electronic control units. This work first identifies the software techniques and tools required to easily write efficient code for multibody models to be simulated on ARM-based embedded systems. Automatic Programming and Source Code Translation are the two techniques that were chosen to generate source code for multibody models in different programming languages. Automatic Programming is used to generate procedural code in an intermediate representation from an object-oriented library and Source Code Translation is used to translate the intermediate representation automatically to an interpreted language or to a compiled language for efficiency purposes. An implementation of these techniques is proposed. It is based on a Python template engine and AST tree walkers for Source Code Generation and on a model-driven translator for the Source Code Translation. The code is translated from a metalanguage to any of the following four programming languages: Python-Numpy, Matlab, C++-Armadillo, C++-Eigen. Two examples of multibody models were simulated: a four-bar linkage with multiple loops and a 3D vehicle steering system. The code for these examples has been generated and executed on two ARM-based single-board computers. Using compiled languages, both models could be simulated faster than real-time despite the low resources and performance of these embedded systems. Finally, the real-time performance of both models was evaluated when executed in hard real-time on Xenomai for both embedded systems. This work shows through measurements that Automatic Programming and Source Code Translation are valuable techniques to develop real-time multibody models to be used in embedded observers and controllers.
引用
收藏
页码:127 / 143
页数:16
相关论文
共 41 条
[1]  
Behnel S.(2011)Cython: The best of both worlds Comput. Sci. Eng. 13 31-39
[2]  
Bradshaw R.(2013)Embedded-model-based control J. Control Sci. Eng. 2013 2-201
[3]  
Citro C.(2003)Performance and power evaluation of C++ object-oriented programming in embedded processors Inf. Softw. Technol. 45 195-19
[4]  
Dalcin L.(2011)Automotive observers based on multibody models and the extended Kalman filter Multibody Syst. Dyn. 27 3-348
[5]  
Seljebotn D.S.(1989)Model predictive control: Theory and practice—a survey Automatica 25 335-615
[6]  
Smith K.(2008)On the effect of linear algebra implementations in real-time multibody system dynamics Comput. Mech. 41 607-119
[7]  
Cetinkunt S.(2007)Tire model TMeasy Veh. Syst. Dyn. 45 101-314
[8]  
Si N.(1994)An object-oriented approach for an effective formulation of multibody dynamics Comput. Methods Appl. Mech. Eng. 115 287-605
[9]  
Nelson B.(2005)Development of vehicle dynamics model for real-time electronic control unit evaluation system using kinematic and compliance test data Int. J. Automot. Technol. 6 599-865
[10]  
Haggag S.(2014)Combining aspects and object-orientation in model-driven engineering for distributed industrial mechatronics systems Mechatronics 24 844-90