arXiv:2409.09941cs.RO2024-09ICRA被引 1

让ROS 2在浏览器中运行,无需安装即可共享机器人代码。

ROS2WASM: Bringing the Robot Operating System to the Web

  • 将ROS 2通过WebAssembly编译到浏览器执行
  • 实现网页端直接运行机器人程序与交互环境
  • 适合教育、科研协作及安全可控的远程实验

机器人操作系统(ROS)已成为机器人领域的主流中间件,广泛应用于教学与工业场景。RoboStack作为基于conda的ROS打包系统,已实现跨平台安装,并与PyTorch、Open3D等科学工具无缝集成。本文提出ROS2WASM,首次将RoboStack与WebAssembly结合,使ROS 2及其相关软件可在浏览器中直接运行,无需本地安装。该方案显著提升研究可复现性与共享性,降低机器人学习门槛,并利用WebAssembly的安全机制抵御恶意代码。我们详细介绍了ROS 2包的交叉编译方法、浏览器内ROS 2通信中间件的开发,以及https://www.ros2wasm.dev网站的实现。此外,还扩展支持Python机器人工具箱,并适配其Swift仿真器以兼容浏览器。本工作为机器人领域带来前所未有的可访问性,构建了可扩展、安全且可复现的运行环境,有望重塑教育与研究模式。

原文摘要 · Abstract (English)

The Robot Operating System (ROS) has become the de facto standard middleware in robotics, widely adopted across domains ranging from education to industrial applications. The RoboStack distribution, a conda-based packaging system for ROS, has extended ROS's accessibility by facilitating installation across all major operating systems and architectures, integrating seamlessly with scientific tools such as PyTorch and Open3D. This paper presents ROS2WASM, a novel integration of RoboStack with WebAssembly, enabling the execution of ROS 2 and its associated software directly within web browsers, without requiring local installations. ROS2WASM significantly enhances the reproducibility and shareability of research, lowers barriers to robotics education, and leverages WebAssembly's robust security framework to protect against malicious code. We detail our methodology for cross-compiling ROS 2 packages into WebAssembly, the development of a specialized middleware for ROS 2 communication within browsers, and the implementation of https://www.ros2wasm.dev, a web platform enabling users to interact with ROS 2 environments. Additionally, we extend support to the Robotics Toolbox for Python and adapt its Swift simulator for browser compatibility. Our work paves the way for unprecedented accessibility in robotics, offering scalable, secure, and reproducible environments that have the potential to transform educational and research paradigms.

机器人WebAssembly教育可复现

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。