MuJoCoUni:面向MuJoCo的持久化批量运行时原语 MuJoCoUni:Persistent Batched Runtime Primitives for MuJoCo 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-05-24
👁️ 预览文献
💡 AI 中文简介
MuJoCoUni是一个基于MuJoCo的扩展工具包,专为在线机器人学习和批量物理仿真设计。它提供了BatchEnvPool执行器,能在保持MuJoCo原有物理语义的前提下,实现多环境并行执行、稀疏重置、域随机化、批量传感器计算等功能。通过pip即可安装,适合需要高吞吐量并行仿真的机器人学习任务。
领域机器人学/物理仿真与机器人学习
适合谁读需要一定专业背景(机器人学习、物理仿真或C++/Python混合编程经验)
核心贡献1. 提出BatchEnvPool执行器,在Python绑定层实现持久化批量运行时原语,不修改MuJoCo核心求解器、接触模型和积分器,保持上游语义;2. 提供批量传感器前向计算、批量雅可比和高度场查询等高级功能,支持在线机器人学习的高吞吐量并行需求。
关键数据暂无显著硬数据(报告主要描述API、实现边界及验证基准脚本)
推荐理由如果你在做机器人强化学习或需要大规模并行物理仿真,MuJoCoUni能让你在不改MuJoCo核心的前提下获得批量执行能力,值得一试。
关键词["MuJoCo", "批量仿真", "机器人学习", "并行计算", "物理引擎", "运行时原语"]

原文摘要

查看英文原文摘要

We present MuJoCoUni, a downstream MuJoCo distribution for online robot learning and batched physics evaluation. Alongside the open-loop batched trajectory generation already provided by upstream mujoco.rollout, MuJoCoUni supplies runtime primitives for stateful environment execution. The target workloads need high-throughput parallel execution while retaining upstream CPU MuJoCo semantics for models, sensors, contact, and constraints. Its core object, BatchEnvPool, is a C++/pybind11 executor that owns per-environment mjModel copies, per-thread mjData workers, and an internal thread pool. It provides final-state-only short stepping, sparse reset, reset-lifecycle domain randomization, batched sensor forward evaluation without advancing dynamics, and batched Jacobian and height-field queries. The implementation is confined to the Python binding layer; MuJoCo's solver, contact model, integrator, and core source tree retain upstream semantics. This report describes the BatchEnvPool API, implementation boundary, relationship to rollout, and the validation and benchmark scripts shipped with the open-source mujoco-uni package, which is installed with \texttt{pip install mujoco-uni}.