- Home
- Digital twin
- Digital twin architecture
IntegratorDeveloper
Planned
Digital twin architecture
For: developers who need to know where a piece of the twin lives and what it talks to.
Canonical source: the owning repositories (openamr-upperbody-sw, openamr-platform-sw, openamr-platform-fw). This page shows the target; the current status says which parts run today.
Target, not current state
The diagram is the architecture the project is building towards. Isaac Sim, the MuJoCo export and the connection of the hardware behaviour models to the simulation are not running yet.
How it fits together
- Canonical robot source. One URDF/xacro model of the robot, with the upstream OpenArm 2.0 description pinned to an exact commit. Nobody edits a generated model by hand.
- Generation and validation. The model is expanded for each configuration, checked (
check_urdf, frame tree, limits, masses) and locked with the hash of every file. The model bundle is one output of this step. - Simulators and viewer. RViz shows the robot state. Gazebo with the DART engine is the reference physics. MuJoCo checks the dynamics against Gazebo. Isaac Sim is for perception once a GPU machine runs it. They all read the same generated model.
- Hardware behaviour and signal emulation. Models of the drive, lift, battery and power, CAN faults, arm motors and sensors sit between the physics and the software, so the software sees device messages and device faults rather than ideal joints.
- ROS 2 Jazzy. The robot software: Nav2 for navigation, MoveIt for the arms, ros2_control for the joints, and one command gate, so that every joint and every topic has exactly one writer in every run profile.
- Firmware software in the loop. Renode runs base-controller firmware on an emulated STM32H723 used as a proxy. An STM32G474 node is represented by a protocol emulator. micro-ROS connects firmware to ROS 2. Devices are reached over virtual CAN and CAN FD.
- Evidence, calibration and reality-gap register. Every result is recorded with its commits, run profile, engine and evidence level. Each known difference between the twin and the robot is listed with the measurement that would close it. Bench measurements replace estimates as they arrive.
What stays out of the twin
- The hardwired safety chain: E-stops, contactors, brakes and charge inhibit. No part of the twin is a safety function.
- The CAN physical layer: bit timing, arbitration, error frames, bus-off and cabling. Virtual CAN delivers at once.
- Electrical and thermal behaviour beyond what a device's documents state.