# Augmented Reality Interfaces for Human-Robot Collaboration: Development of a ROS 2-Based Sensor Streaming Framework and Validation via SLAM Algorithms

Robotics.world

> High-end AR headsets such as the Magic Leap 2 can track their own position and perceive the surrounding space, which makes them attractive as mobile sensing nodes for collaborative robots — a headset…

**arXiv**: 2609.31396

**Published**: 2026-09-25

**Authors**: Alessandro Rubert, Stefano Ghidoni, Matteo Terreran

## In plain words

High-end AR headsets such as the Magic Leap 2 can track their own position and perceive the surrounding space, which makes them attractive as mobile sensing nodes for collaborative robots — a headset worn by an operator can "see" the workspace on the robot's behalf, replacing or complementing fixed camera installations.

## AI summary

## Overview

**Research area:** Human-Robot Collaboration (HRC), Augmented Reality (AR) interfaces, and robotics middleware — specifically sensor streaming between a commercial AR headset and the ROS 2 (Robot Operating System 2) ecosystem.

**Technical level:** Intermediate to Advanced. The paper assumes familiarity with ROS 2 concepts (nodes, topics, TF trees, DDS), Unity's component-based runtime, and visual SLAM terminology (features, drift, bundle adjustment, loop closure).

**One-sentence scope:** A bachelor's thesis (University of Padua, Department of Information Engineering, IAS-Lab, academic year 2025–2026) that builds and validates a Unity-based streaming bridge from the Magic Leap 2 AR headset to ROS 2, checked against ORB-SLAM3 under monocular operation.

*Note on completeness:* the paper content available here stops partway through Chapter 3 (the ORB-SLAM3 description). Chapters 4–6, which contain the detailed implementation and the quantitative experimental results, are not included, so trajectory-error figures and latency measurements are **not reported** in the text analysed below.

## What This Paper Is About

High-end AR headsets such as the Magic Leap 2 can track their own position and perceive the surrounding space, which makes them attractive as mobile sensing nodes for collaborative robots — a headset worn by an operator can "see" the workspace on the robot's behalf, replacing or complementing fixed camera installations. The problem is that these devices have **no native integration with ROS 2**, so their sensor data cannot be consumed by standard robotics software.

The goal is to build the missing software bridge: an on-board application that pulls pose, camera and environmental data from the headset and publishes it to ROS 2 topics, plus a validation step that checks whether the resulting stream is accurate and low-latency enough to feed a real robotics algorithm. Validation is done by running ORB-SLAM3 on the streamed world-camera video and comparing its estimated trajectory against the headset's own native spatial tracking.

## Key Contributions

1. **A modular AR-to-ROS 2 streaming framework.** A Unity application running on the Magic Leap 2 acquires data from the headset's integrated sensors (pose tracking, cameras, environmental sensors) and publishes it to dedicated ROS 2 topics, using the ROS-TCP-Connector package over TCP/IP to a ROS-TCP-Endpoint server node on a companion computer.
2. **Dynamic, ROS-2-driven sensor configuration.** A ROS 2 node on the computer reads a `.yaml` configuration file specifying which sensors to enable (cameras, inertial data, depth sensors) and the required stream resolution; the headset receives this configuration at startup and streams only the requested data. This is explicitly designed to avoid saturating network bandwidth and to prevent unnecessary computation on the headset for unused sensors.
3. **A deployment-flexible architecture with wired and wireless modes.** Communication can run wirelessly or over a cable, with the wired option described as providing maximum bandwidth stability and extremely low latency for the most critical applications. The network topology only requires the headset and the ROS 2 machine to be reachable on the same subnet (e.g. a local Wi-Fi connection).
4. **An open-source release and a SLAM-based validation protocol.** The full project is published in a public GitHub repository for reproducibility, and the data stream is validated by feeding Magic Leap 2 world-camera video to ORB-SLAM3 in monocular mode, with the trajectory compared against the headset's internally estimated poses and extrinsics as ground truth, using the `evo` package for trajectory evaluation.

## Main Findings

- **Data routing works as intended:** the comparison between the trajectory reconstructed by ORB-SLAM3 in monocular mode and the device's native pose estimation "confirmed proper data routing", i.e. the frames arriving in ROS 2 are the correct ones, correctly ordered and correctly associated with poses.
- **Low latency claimed qualitatively:** the results are described as showing "reduced transmission latency", but no numeric latency value is reported in the available text.
- **Full compatibility with robotics state estimation:** the framework is reported as fully compatible with state-estimation algorithms commonly used in robotics, with stable data transmission overall.
- **Validation conditions were modest in scope:** the experiments were "several tests along short-range trajectories in an indoor environment", so the findings are established for short indoor runs rather than long-duration or large-scale deployments.
- **Ground truth came from the headset itself:** rather than an external motion-capture system, the reference trajectory was the Magic Leap 2's native spatial tracking, described in the paper as "renowned for its high accuracy and precision".
- **A gap existed in the ecosystem:** unlike the HoloLens 2, for which the Research Mode APIs (documented by Ungureanu et al., 2020) and the `hl2ss` streaming tool (Dibene and Dunn, 2022) opened low-level sensor access, there was no open-source tool in the Magic Leap 2 ecosystem for centralised, modular, synchronised raw-sensor streaming to ROS 2.
- **HoloLens 2's discontinuation motivates the platform choice:** the paper frames the Magic Leap 2 as the natural successor benchmark platform for enterprise- and industrial-grade AR, given HoloLens 2 has reached end of commercial life.

## Methodology in Plain English

The work splits the problem across two machines that talk over a network socket.

On the headset, a Unity application (Unity 2022.3.62f3 LTS) runs as the primary runtime — not as a simulator — and handles both holographic rendering and sensor acquisition. It uses the Magic Leap SDK through Unity's OpenXR / XR Plug-in Management path to read the device's sensors. Because AR needs a steady 60–120 fps to keep holograms visually locked to the real world, sensor buffer handling is done in a non-blocking way so it never stalls the main render thread.

On the companion computer, a ROS 2 node reads a `.yaml` file that says which sensors to turn on and at what resolution. When the headset app starts, it receives that configuration and begins streaming only what was asked for, which keeps bandwidth and headset compute in check.

The transport is the ROS-TCP-Connector framework from the Unity Robotics Hub. It is a classic client-server split: a C# TCP client inside Unity connects to a Python ROS 2 node, ROS-TCP-Endpoint, listening on the standard port 10000. A code-generation tool converts ROS message definitions (`.msg` files such as `sensor_msgs/Image` and `geometry_msgs/PoseStamped`) into C# classes; the Unity side fills those objects, serialises them to a binary byte stream, and sends them over the socket. The endpoint deserialises the bytes and publishes them onto the correct ROS 2 topic. The path is symmetric, so Unity can also subscribe to ROS 2 topics.

For validation, the world-camera video stream published into ROS 2 is fed to ORB-SLAM3 in monocular mode. ORB-SLAM3 is chosen because it uses ORB features (Oriented FAST and Rotated BRIEF) uniformly across tracking and place recognition, giving cheap binary descriptors that stay robust to viewpoint and lighting changes while running in real time on ordinary CPUs. The trajectory ORB-SLAM3 produces is then compared, using the `evo` package, against the poses and extrinsics the headset computes internally from its own spatial tracking.

## Why This Matters

The work matters because it removes a practical blocker rather than proposing a new algorithm: it makes an off-the-shelf enterprise AR headset usable as a sensor node inside standard robotics software. That changes the sensing architecture of a collaborative cell — instead of a perimeter of fixed cameras, the operator's own headset supplies the robot with a first-person view of the shared workspace, tracking head pose, hands and environment in real time. The paper also addresses a genuine continuity problem for research: with HoloLens 2 discontinued and its Research Mode APIs tied to Windows UWP, the community needs a supported alternative, and this framework is offered as an open, reproducible starting point.

Real-world applications implied by the paper's framing:

- **Flexible manufacturing and assembly:** operators working alongside cobots on lines that change frequently, where fixed camera infrastructure would need re-installation each time the cell is reconfigured.
- **Shared safety zones and intent display:** projecting the robot's planned trajectories, internal state and dynamic safety volumes into the operator's field of view, as in the Hietanen et al. (2020) study on diesel engine assembly, which reported over 50% reduction in robot idle time and 20–24% lower execution times versus non-collaborative workstations.
- **Robot teaching by demonstration:** using headset tracking alongside haptic interfaces to let an operator adjust a 7-degree-of-freedom arm's posture or record new parametric trajectories, as in the Yan et al. (2024) HoloLens 2 and Franka Emika setup.
- **Wearable and assistive robotics:** the egocentric-vision line of work (Mihailovic et al., 2025) that fuses head-mounted AR camera data with exoskeleton cameras via ORB-SLAM3 and DUSt3R to extend a user's perceptual horizon and project safe footholds onto the display.

Industry relevance: the framework targets the enterprise and industrial AR market (surgery, engineering, manufacturing, defence segments named in the paper) and is built on standards the sector cares about — ROS 2 with DDS, OpenXR, and Android AOSP underneath. The explicit open-source GitHub release is aimed at adoption and extension by other labs and developers.

## Future Directions

- **Safe real-time interaction and shared spatial awareness:** the paper explicitly frames the stable data stream as groundwork for these, which remain to be demonstrated rather than proven.
- **Bidirectional interaction:** Chapter 6 is described as outlining future work in bidirectional interaction — sending robot state and intent back into the headset display — which the current framework's symmetric subscribe path already technically permits but does not evaluate.
- **Validation beyond short indoor trajectories:** extending the benchmarking of monocular SLAM against native headset poses to longer, more varied, and possibly outdoor trajectories, and to other sensor modalities (depth, inertial) that the framework can already stream but that were not part of the reported validation.
- **Porting the validation to non-monocular modes and other algorithms:** the paper notes ORB-SLAM3 supports visual, visual-inertial and multi-map SLAM, yet validation used monocular mode only; inertial and multi-map configurations are a natural next test of the framework's timing and synchronisation quality.

## Target Audience

Robotics researchers and engineers building HRC or shared-workspace systems who need a working, open-source path to get Magic Leap 2 sensor data into ROS 2; AR/XR developers moving from HoloLens 2 pipelines (Research Mode, `hl2ss`) who need an equivalent on the Magic Leap platform; and students or lab engineers who want a documented, reproducible reference architecture for Unity-to-ROS 2 TCP streaming, including the `.yaml`-driven dynamic configuration pattern. Readers seeking quantitative SLAM accuracy benchmarks or latency figures will not find them in the portion of the paper available here.

## Authors’ abstract

In recent years, Human-Robot Collaboration (HRC) has taken on a central role in Industry 4.0 and collaborative robotics, demanding communication channels that are increasingly bidirectional, intuitive, and efficient. In this context, Augmented Reality (AR) presents itself as a fundamental enabling technology, capable of both displaying information to the operator and gathering spatial data about the surrounding environment. This thesis presents the development of a sensor…

[The full abstract on arXiv](https://arxiv.org/abs/2609.31396)

[Read the original paper](https://arxiv.org/abs/2609.31396)

## Related papers

- [Toward Human-in-the-Loop Robot Failure Recovery: Bridging Communication Gaps in Human-Robot Collaboration](https://robotics.world/paper/toward-human-in-the-loop-robot-failure-recovery-bridging-communication-2609.24055) 2026-09-21 · cs.RO · Key terms of the title in common
- [Learning from Humans for Proactive Assistance in Human-Robot Collaborative Transport](https://robotics.world/paper/learning-from-humans-for-proactive-assistance-in-human-robot-2609.25351) 2026-09-21 · cs.RO · Key terms of the title in common
- [Visual Proactivity: Enhancing Human-Robot Collaboration Through Intent Communication](https://robotics.world/paper/visual-proactivity-enhancing-human-robot-collaboration-through-intent-2609.21729) 2026-09-18 · cs.RO · Key terms of the title in common
- [Rethinking the Implications of Human Feedback for Preference Learning in Human-Robot Collaboration](https://robotics.world/paper/rethinking-the-implications-of-human-feedback-for-preference-learning-2609.13982) 2026-09-12 · cs.RO · Key terms of the title in common
- [Not All Agreement Counts as Corroboration: Provenance-Conserving Multi-View Fusion for Typed Action Admission in Human-Robot Collaboration](https://robotics.world/paper/not-all-agreement-counts-as-corroboration-provenance-conserving-multi-2609.01662) 2026-08-31 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/augmented-reality-interfaces-for-human-robot-collaboration-development-2609.31396
