arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.24922cs.RO
收藏

MuJoCoUni:MuJoCo的持久化批处理运行时原语

MuJoCoUni:Persistent Batched Runtime Primitives for MuJoCo

Tsinghua University(清华大学)

Yufei Jia, Junzhe Wu

AI总结:

提出MuJoCoUni,一个用于在线机器人学习和批处理物理评估的MuJoCo下游发行版,通过BatchEnvPool提供有状态环境执行的运行时原语,支持高吞吐并行执行并保持上游语义。

摘要:

我们提出MuJoCoUni,一个用于在线机器人学习和批处理物理评估的MuJoCo下游发行版。除了上游mujoco.rollout已经提供的开环批处理轨迹生成外,MuJoCoUni还提供了用于有状态环境执行的运行时原语。目标工作负载需要高吞吐并行执行,同时保留上游CPU MuJoCo在模型、传感器、接触和约束方面的语义。其核心对象BatchEnvPool是一个C++/pybind11执行器,拥有每个环境的mjModel副本、每个线程的mjData工作线程以及一个内部线程池。它提供仅最终状态的短步进、稀疏重置、重置生命周期域随机化、不推进动力学的批处理传感器前向评估,以及批处理雅可比矩阵和高度场查询。该实现仅限于Python绑定层;MuJoCo的求解器、接触模型、积分器和核心源代码树保留上游语义。本报告描述了BatchEnvPool API、实现边界、与rollout的关系,以及随开源mujoco-uni包一起提供的验证和基准测试脚本,该包可通过 exttt{pip install mujoco-uni}安装。

英文摘要:

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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑