arXiv:2611.12306cs.RONov 2026

Manuscript Offprint

arXiv:2611.12306

ExoStack: A Modular and Reconfigurable Software Framework for Wearable Robotics Using ROS 2

Debadrata Sarkar, Upamanyu Ray, Soumen Sen, Aman Arora

Debadrata Sarkar, Upamanyu Ray, Soumen Sen, and Aman Arora

Code repository: github.com/debadrata/ExoStack

Documentation website: debadrata.github.io/ExoStack_documentation

Abstract—Wearable robots depend on a software chain that links body-worn sensing to gait interpretation, assistance generation, and actuation. Personalization further requires each measured response to remain associated with the assistance parameters that generated it. This paper presents ExoStack, a modular ROS 2 framework for implementing that chain across embedded hubs and a host computer. Its Embedded Sensing and Actuation (ESA) library configures ESP32 boards as micro-ROS sensing and actuation hubs. ExoCore supplies multi-hub synchronization, gait-event detection, profile generation, motion planning, cost evaluation, and human-in-the-loop (HIL) optimization as configuration-instantiated nodes. The PASE desktop application edits configurations, launches the processing stages, and visualizes ROS 2 topics. Hardware drivers and algorithm plugins can be added through defined interfaces without modifying the generic processing nodes. We characterize hub and planner timing on three embedded computers and demonstrate reuse on two pneumatic exosuits.

Index Terms—Wearable robots, exosuits, software framework, ROS 2, micro-ROS, human-in-the-loop optimization, modular software, reconfigurable software.

I. INTRODUCTION

W EARABLE assistive robots are progressing from laboratory demonstrations toward daily and clinical use [1], [2]. A central challenge is to deliver assistance that responds to the wearer rather than to a fixed gait template [3], [4]. Human-in-the-loop (HIL) optimization provides a systematic route to personalization: an optimizer proposes assistance parameters, the robot applies them during walking, and a cost measured on the wearer informs the next proposal [5]–[10].

Implementing this loop requires coordinated functions beyond the joint controller itself. Sensor streams from multiple body-worn boards must be acquired and aligned. Gait events must trigger the appropriate assistance profile, and the measured cost must be assigned to the candidate and gait cycles under evaluation. In many research systems, these functions evolve as part of a device-specific application. A change in sensor layout, assisted joint, actuator, or optimization strategy can then propagate through acquisition, control, and visualization code, making reuse and reproducibility difficult.

This work was supported by the CSIR-National Laboratory Scheme under ULIP [MLP002613] and the CSIR Mission Mode Project [NCP010303].

This work involved human subjects. Approval of all ethical and experimental procedures was granted by the 7th sitting of the Institutional Ethical Board of CSIR-CMERI, Durgapur, India, on 27 February 2024.

The authors are with the Human Centred Robotics and Cybernetics Group, CSIR-Central Mechanical Engineering Research Institute (CSIR-CMERI), Durgapur 713209, India. Corresponding author: Aman Arora (e-mail: aman.cmeri@nic.in).

Existing platforms address important parts of wearable-robot development. OpenExo [11] provides a modular exoskeleton hardware and control platform, whereas Epically Powerful [12] offers a Python infrastructure for quasi-direct-drive actuators, sensing, and visualization. Their design choices reflect their target hardware and control workflows. ExoStack addresses a complementary need: a configurable pipeline for systems in which sensors and actuators are distributed across several body-worn microcontrollers and host-side algorithms may change between experiments. ROS2 [13] supplies the host-side communication model, while micro-ROS [17] extends ROS2 communication to resource-constrained boards. Mature ROS2 frameworks such as Nav2 [14], MoveIt [15], and ros_control [16] demonstrate the value of separating reusable infrastructure from robot-specific configuration. ExoStack applies this principle to the sensing-to-assistance workflow of wearable robotics.

To the best of our knowledge, ExoStack is the first ROS 2 framework to cover the complete wearable-robot pipeline, from body-worn sensing to personalized assistance. Its contributions are: (1) a firmware API for distributed, multi-hub sensing and actuation, publishing analog, digital, and I²C readings on a shared time base without hand-written micro-ROS code; (2) configurable ROS 2 nodes for gait-event detection, motion planning, and assistance deployment or optimization, instantiated per limb, joint, and event; (3) a coordinated HIL loop linking each optimizer candidate to its execution and cost measured over its gait cycles, preventing cost misattribution; (4) a unified profile framework routing speed- and intent-indexed lookup tables and HIL candidates through the same planners; (5) template-guided extensibility through self-registering drivers and plug-in algorithms; and (6) a graphical tool to configure, launch, and visualize the stack. Timing benchmarks and two pneumatic-exosuit implementations validate the framework.

References (21)