A soft real-time ROS2-based energy management system under asynchronous messaging and different node update rates

IF 7.6 Q1 ENERGY & FUELS
Mircea-Bogdan Radac , George Borsa , Liviu-Aniel Alexa
{"title":"A soft real-time ROS2-based energy management system under asynchronous messaging and different node update rates","authors":"Mircea-Bogdan Radac ,&nbsp;George Borsa ,&nbsp;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}
引用次数: 0

Abstract

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.

Abstract Image

异步消息传递和不同节点更新速率下基于ros2的软实时能源管理系统
在此基础上,提出了一种围绕ROS2(机器人操作系统)消息传递骨干网开发的能量管理系统(EMS),用于交换软实时底层优化所需的相关信息。以关键和客观的方式进行的几个案例研究使我们能够校准,测试和比较现有的现成数值优化器的优点和缺点。定义了一种包含代价函数中惩罚项和线性加非线性不等式等式约束的最优EMS问题,以解决通信节点在异步消息传递和不同更新速率下的优化不可行性。该案例研究讨论了每个超参数在确保电动汽车在真实驾驶场景下实时设置优化的可行性和成功方面的重要性。优化器的性能与两个流行的开源库SciPy和NLopt进行了比较,其中节点以不同的频率更新。提出了一种基于信任区域的内点屏障优化器,以一些可接受的约束违反为代价恢复可行性。而对于所有其他情况,当适当调整时,目标函数中的softplus惩罚可以作为早期约束违反预防机制。根据服务质量(QoS)以及几个相关的安全风险,对ROS2通信基础设施进行了严格的分析。所提出的EMS体系结构的安全方面在对抗性设置中进行了测试:通过更改网络参数来测试消息传递系统对网络拥塞的弹性,而安全性则受到虚假数据注入的挑战。结果还在目标边缘设备上进行了交叉构建和测量,以检查在低成本低功耗计算平台下的可行性。我们展示了基于ros2的EMS可以在几个关键方面交付,根据需要在具有软实时、可靠性能的实际系统上运行。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
8.80
自引率
3.20%
发文量
180
审稿时长
58 days
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信