Mircea-Bogdan Radac , George Borsa , Liviu-Aniel Alexa
{"title":"异步消息传递和不同节点更新速率下基于ros2的软实时能源管理系统","authors":"Mircea-Bogdan Radac , George Borsa , Liviu-Aniel Alexa","doi":"10.1016/j.ecmx.2025.101272","DOIUrl":null,"url":null,"abstract":"<div><div>An energy management system (EMS) developed around a ROS2 (Robot Operating System) messaging backbone used to exchange relevant information for the underlying optimization in soft real-time, is proposed herein. Several case studies performed in a critical and objective manner allow us to calibrate, test and compare existing off-the-shelf numerical optimizers, in terms of advantages and disadvantages. A novel optimal EMS problem including penalty terms in the cost functions and linear plus nonlinear inequality and equality constraints is defined, to address optimization infeasibility under asynchronous messaging and various update rates in the communicating nodes. The case study discusses the importance of each hyperparameter in ensuring the feasibility and success of the optimization in real-time settings under a real-life driving scenario for an electric vehicle. The optimizers’ performance is compared with two popular and open-source libraries, SciPy and NLopt, with nodes being updated at various frequencies. A trust region-based with interior point barrier optimizer was found to recover feasibility at the expense of some acceptable constraint violation. While for all the other cases, the <em>softplus</em> penalty in the objective function serves as an early constraint violation prevention mechanism, when properly tuned. The ROS2 communication infrastructure was critically analyzed in terms of Quality of Services (QoS) along with several of the associated security risks. Safety aspects of the proposed EMS architecture are tested in an adversarial setting: the messaging system resilience to network congestion was tested by altering the network parameters, while the security was challenged by false data injection. The results are also cross-built and measured on a targeted edge device in order to check feasibility under low-cost low-power computing platforms. We show that the ROS2-based EMS can deliver in several critical aspects, as required to run on real systems with soft real-time, reliable performance.</div></div>","PeriodicalId":37131,"journal":{"name":"Energy Conversion and Management-X","volume":"28 ","pages":"Article 101272"},"PeriodicalIF":7.6000,"publicationDate":"2025-09-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A soft real-time ROS2-based energy management system under asynchronous messaging and different node update rates\",\"authors\":\"Mircea-Bogdan Radac , George Borsa , Liviu-Aniel Alexa\",\"doi\":\"10.1016/j.ecmx.2025.101272\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>An energy management system (EMS) developed around a ROS2 (Robot Operating System) messaging backbone used to exchange relevant information for the underlying optimization in soft real-time, is proposed herein. Several case studies performed in a critical and objective manner allow us to calibrate, test and compare existing off-the-shelf numerical optimizers, in terms of advantages and disadvantages. A novel optimal EMS problem including penalty terms in the cost functions and linear plus nonlinear inequality and equality constraints is defined, to address optimization infeasibility under asynchronous messaging and various update rates in the communicating nodes. The case study discusses the importance of each hyperparameter in ensuring the feasibility and success of the optimization in real-time settings under a real-life driving scenario for an electric vehicle. The optimizers’ performance is compared with two popular and open-source libraries, SciPy and NLopt, with nodes being updated at various frequencies. A trust region-based with interior point barrier optimizer was found to recover feasibility at the expense of some acceptable constraint violation. While for all the other cases, the <em>softplus</em> penalty in the objective function serves as an early constraint violation prevention mechanism, when properly tuned. The ROS2 communication infrastructure was critically analyzed in terms of Quality of Services (QoS) along with several of the associated security risks. Safety aspects of the proposed EMS architecture are tested in an adversarial setting: the messaging system resilience to network congestion was tested by altering the network parameters, while the security was challenged by false data injection. The results are also cross-built and measured on a targeted edge device in order to check feasibility under low-cost low-power computing platforms. We show that the ROS2-based EMS can deliver in several critical aspects, as required to run on real systems with soft real-time, reliable performance.</div></div>\",\"PeriodicalId\":37131,\"journal\":{\"name\":\"Energy Conversion and Management-X\",\"volume\":\"28 \",\"pages\":\"Article 101272\"},\"PeriodicalIF\":7.6000,\"publicationDate\":\"2025-09-22\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Energy Conversion and Management-X\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S2590174525004040\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"ENERGY & FUELS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Energy Conversion and Management-X","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2590174525004040","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENERGY & FUELS","Score":null,"Total":0}
A soft real-time ROS2-based energy management system under asynchronous messaging and different node update rates
An energy management system (EMS) developed around a ROS2 (Robot Operating System) messaging backbone used to exchange relevant information for the underlying optimization in soft real-time, is proposed herein. Several case studies performed in a critical and objective manner allow us to calibrate, test and compare existing off-the-shelf numerical optimizers, in terms of advantages and disadvantages. A novel optimal EMS problem including penalty terms in the cost functions and linear plus nonlinear inequality and equality constraints is defined, to address optimization infeasibility under asynchronous messaging and various update rates in the communicating nodes. The case study discusses the importance of each hyperparameter in ensuring the feasibility and success of the optimization in real-time settings under a real-life driving scenario for an electric vehicle. The optimizers’ performance is compared with two popular and open-source libraries, SciPy and NLopt, with nodes being updated at various frequencies. A trust region-based with interior point barrier optimizer was found to recover feasibility at the expense of some acceptable constraint violation. While for all the other cases, the softplus penalty in the objective function serves as an early constraint violation prevention mechanism, when properly tuned. The ROS2 communication infrastructure was critically analyzed in terms of Quality of Services (QoS) along with several of the associated security risks. Safety aspects of the proposed EMS architecture are tested in an adversarial setting: the messaging system resilience to network congestion was tested by altering the network parameters, while the security was challenged by false data injection. The results are also cross-built and measured on a targeted edge device in order to check feasibility under low-cost low-power computing platforms. We show that the ROS2-based EMS can deliver in several critical aspects, as required to run on real systems with soft real-time, reliable performance.
期刊介绍:
Energy Conversion and Management: X is the open access extension of the reputable journal Energy Conversion and Management, serving as a platform for interdisciplinary research on a wide array of critical energy subjects. The journal is dedicated to publishing original contributions and in-depth technical review articles that present groundbreaking research on topics spanning energy generation, utilization, conversion, storage, transmission, conservation, management, and sustainability.
The scope of Energy Conversion and Management: X encompasses various forms of energy, including mechanical, thermal, nuclear, chemical, electromagnetic, magnetic, and electric energy. It addresses all known energy resources, highlighting both conventional sources like fossil fuels and nuclear power, as well as renewable resources such as solar, biomass, hydro, wind, geothermal, and ocean energy.