Back to search

Kansas State University

Digital twin incubator using ROS2 and model-driven development

Abstract

dc:description.abstract

Cyber-physical systems, computer systems that can interact with their environment using actuators and sensors, can be very difficult to develop and ensure proper functionality, especially within a safety critical context. Digital twins are an increasingly popular technique to help ensure the correct operation of these systems. Digital twin systems contain two parts: the physical twin, which is the cyber-physical system itself, and a digital twin, which is a digital representation of the physical twin that is used to perform runtime analysis, simulations of the physical twin using real-time sensor data, and perform self-adaptation on the physical twin to mitigate predicted faults. A digital twin system can be a very complex system with several components each needing to communicate with each other over a network in real time. Setting up these communication pathways by-hand can be very time consuming and potentially error-prone. This report examines how the Sireum High Assurance Modeling and Rapid engineering for embedded systems (HAMR) code generation tool and the Robot Operating System 2 (ROS2) may be used to improve the engineering of twinned systems. The investigation is based on a case study of a twinned system for an incubator for fermented soy-based food. The incubator system was originally designed by Feng et al (2021) at Aarhus University as an open source test bed for digital twin concepts. In addition to a cyber-physical system for controlling the environment in an enclosure for fermenting a soy-based food product, this incubator contains a digital twin service to predict if the incubator lid is open using a simulation and real-time sensor data, and can recalibrate the physical twin in response. Given a model of the twinned system written in the Architecture Analysis and Design Language (AADL), the experimental HAMR code generator for ROS2 can output a ROS2 package with ROS nodes for each system component, and all communication pathways completely configured. Utilizing the HAMR code generator for ROS2, an implementation was made that maintains temperature when the lid is closed, and detects & adapts to a lid open event and with fewer lines of hand-written code than the original Aarhus University implementation. This report finds that the use of these tools for digital twin development is promising, but more investigation is needed and some improvements to tooling need to be made.

Degree

thesis:*
Level thesis:degree_level
Masters
Department dc:contributor.department
Department of Computer Science
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Thompson, Benjamin
Advisor dc:description.advisor
  • Robby

Subjects

dc:subject × 6

Rights

Language dc:language.iso
en_US

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/2097/44758

Chain of custody

source
Harvested from
Kansas State University
Base URL
krex.k-state.edu/server/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Thompson, Benjamin. Digital twin incubator using ROS2 and model-driven development. Masters thesis, 2025. https://hdl.handle.net/2097/44758