HHART: Hybrid Hexagonal Architecture for Robotic Technologies
← All projects

// Capstone

HHART: Hybrid Hexagonal Architecture for Robotic Technologies

Research Software Architecture ROS2 Python ReactJS Embedded Robotics

Overview

My capstone research: a software architecture combining hexagonal architecture with ROS 2, so one robot codebase serves both researchers working in ROS 2 and field operators who never need to know it is there. Evaluated on MICROPIRO, a low-cost sewer pipe inspection robot.

Details

HHART is the software architecture at the centre of my capstone research. It asks how software that university researchers build in ROS 2 for an industry partner can survive handover to the people who will actually operate it, without giving up ROS 2 along the way.

The Problem

Field robots from university labs are usually built on ROS 2, by engineers, for engineers. The industry partners who receive them rely on field technicians who work on Windows laptops and Android tablets, not Linux terminals. Handover tends to fail at that gap, and the usual workarounds either maintain a second interface alongside ROS or remove ROS entirely and lose its drivers and tooling.

HHART

HHART, the Hybrid Hexagonal Architecture for Robotic Technologies, combines the publish-subscribe model of ROS 2 with the ports and adapters of hexagonal architecture. The robot’s logic lives in a core that imports no ROS, and ROS 2, the firmware and the operator interface all plug in as adapters at its edge. To other ROS 2 nodes and tools the robot still looks like any other node; to the operator it is a plain, ROS-free contract.

Side-by-side diagram of a ROS-native robot and HHART, showing where ROS 2 sits relative to the robot boundary (a) In a typical ROS-native robot, the logic is written as ROS nodes and ROS types cross the robot boundary. (b) In HHART, the logic sits in a core that imports no ROS, and the operator only sees a contract free of ROS.

The research explores:

  • The zero-ROS illusion - operators run the robot from a browser on a Windows laptop or Android tablet and never need to know ROS exists, while researchers keep RViz, rqt and rosbag2
  • ROS 2 placed by role - drivers and controllers stay confined to the robot for hardware integration, and research access is switched on at the edge only when needed
  • Testing without the robot - the core performs no input or output, so its logic is tested on any laptop, and structural tests fail the build if the architecture’s rules are broken
  • Layered safety stops - every way commands can stop arriving is caught by a defined layer, from the host down to the firmware

Evaluation on MICROPIRO

HHART was evaluated on MICROPIRO, a low-cost tracked robot for inspecting DN150 to DN300 sewer pipes, building on earlier pipe-inspection robots from the UTS Robotics Institute. I revived it from an incomplete S100 platform to serve as the testbed.

MICROPIRO assembled, with LiDAR at the front and electronics at the rear MICROPIRO, the evaluation platform: tracked chassis carrying a 2D LiDAR, camera, orientation sensor and optical odometry.

Its software was built twice over one shared HHART core: an embedded version that reaches the firmware directly, and a full ROS 2 version through ros2_control. The two were compared on what they share, whether operators and researchers each keep their own tools, how much latency the robot’s boundary adds, and which layer stops the robot when each part fails.

MICROPIRO's embedded, full ROS 2 and research access paths over one shared core, with a ROS-free base station across the robot boundary HHART on MICROPIRO: the embedded and full ROS 2 versions share one core, research tools attach on the robot, and only the operator contract crosses the boundary.

The second version changed nothing in the shared code beyond a single firmware command, and the operator’s interface was identical across both. The boundary added well under one camera frame of latency, and every loss of commands was stopped by the layer intended for it.

The work has been written up as a research paper, currently under review.

Operator View

Operator interface on Windows showing drive controls, a 3D LiDAR reconstruction and the camera feed On a Windows laptop with no ROS installed: live 3D reconstruction from the LiDAR, position along the pipe, attitude and camera.

Operator interface on an Android tablet with a touch joystick The same interface on an Android tablet, served by the robot itself, with a touch joystick for driving.

Researcher View

LiDAR scans accumulated in RViz behind the robot model LiDAR scans accumulated in RViz on the robot while driving from rqt_robot_steering, through the same command path as the operator.

Trade-offs

The main cost is indirection: ports, adapters and structural tests exist before the first sensor is integrated. HHART suits university research done with or for an industry partner, where there is an operator to shield from ROS and a handover to pay for it. Purely theoretical work that never leaves the lab is less likely to benefit.

Stack

  • Architecture - Python core with ports and adapters, structural tests over the source
  • Robot - ROS 2 Jazzy, ros2_control, Ubuntu 24.04 on a Radxa Zero 3E
  • Operator - React in the browser over WebSocket
  • Firmware - Teensy 4.0 over UART
← Work