Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MOUNTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ body that holds the frame.

| Component | Mount | In body | Pose | Fits |
| --- | --- | --- | --- | --- |
| `arms/ar5_08` (left) | `mount_flange` | `AR5_5_08L_W4C4A6_tcp` | at the tool point; rotated −π/2 about z (written 1.57079633) | `flanges/ar5_08_o6` |
| `arms/ar5_08` (right) | `mount_flange` | `AR5_5_08R_W4C4A6_tcp` | at the tool point; rotated +π/2 about z | `flanges/ar5_08_o6` |
| `arms/ar5_08` (left) | `mount_flange` | `AR5_5_08L_W4C4A6_tcp` | at the tool point; Euler angles `0 0 -1.57079633` (radians) | `flanges/ar5_08_o6` |
| `arms/ar5_08` (right) | `mount_flange` | `AR5_5_08R_W4C4A6_tcp` | at the tool point; Euler angles `0 0 1.57079633` (radians) | `flanges/ar5_08_o6` |
| `flanges/ar5_08_o6` | `mount_hand` | `hand_mount` (0.0225 along z from the flange origin) | 0.002 back along z; rotated π about z (exact) | `hands/o6` left or right |
| `flanges/ar5_08_o6` | `mount_bracket` | `flange_link` | at the flange origin | `brackets/gemini335l_wrist` left or right |
| `brackets/gemini335l_wrist` (left) | `mount_camera` | `camera_mount` | at the camera's seat | `cameras/gemini335l` |
Expand Down
4 changes: 2 additions & 2 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ This product includes camera meshes from the cameras' makers, under the Apache L
Version 2.0. Each was moved into LW-v0's camera body frame, given one flat colour and
written as OBJ; the geometry is otherwise unchanged.

- Orbbec Gemini 335L: workstations/lw_v0/meshes/visual/gemini335l_camera_link_vis.obj
- Orbbec Gemini 335L: cameras/gemini335l/meshes/visual/gemini335l_camera_link_vis.obj
from orbbec_description/meshes/gemini335L_336L/base_link.STL in
https://github.com/orbbec/OrbbecSDK_ROS2 (branch v2-main, commit ffba347c)
Copyright 2023 Orbbec 3D Technology, Inc.

- Stereolabs ZED 2i: workstations/lw_v0/meshes/visual/zed2i_camera_vis.obj
- Stereolabs ZED 2i: cameras/zed2i/meshes/visual/zed2i_camera_vis.obj
from meshes/zed2i.stl in https://github.com/stereolabs/zed-ros2-description
(commit 22468247)
Copyright 2026 Stereolabs
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

Robot files from Linkerbot for your own simulator: URDF and MJCF with their meshes.

(中文: [README.zh-CN.md](README.zh-CN.md))
[Linker Sim project hub](https://github.com/linker-bot/linker-sim) · [简体中文](README.zh-CN.md)

| Project | Use | Asset dependency |
| --- | --- | --- |
| [linker-sim-mujoco](https://github.com/linker-bot/linker-sim-mujoco) | Simulate LW-v0 on a CPU | Loads MJCF from the `linker-lw-v0` package at [v1.0.0](https://github.com/linker-bot/linker-sim-assets/tree/v1.0.0). |
| [linker-sim-isaac](https://github.com/linker-bot/linker-sim-isaac) | Run LW-v0 environments on a GPU | Uses the same version of `linker-lw-v0` and converts its component MJCF to cached USD on first use. |
| [linker-sim-viser](https://github.com/linker-bot/linker-sim-viser) | Replay A7 Lite recordings | Viser v0.1.0 pins its submodule to [321a1af](https://github.com/linker-bot/linker-sim-assets/tree/321a1afc4db70ec5366eafc556f03626e6e848ba) for the `linker-robot-assets` models and hand decoders. Follow the [Viser installation guide](https://github.com/linker-bot/linker-sim-viser/blob/v0.1.0/README.md) to fetch the Git LFS meshes. |

| Folder | Robot | Simulated by us |
| --- | --- | --- |
| [`assemblies/lw_v0/`](assemblies/lw_v0) | **LW-v0**: two AR5_08 arms with LinkerHand O6 hands, wrist cameras (Orbbec Gemini 335L), a top camera (Stereolabs ZED 2i) and the table | Yes: [linker-sim](https://github.com/linker-bot/linker-sim) (MuJoCo 4.0.1) and linker-lab (Isaac Lab, MuJoCo 3.17) |
| [`assemblies/lw_v0/`](assemblies/lw_v0) | **LW-v0**: two AR5_08 arms with LinkerHand O6 hands, wrist cameras (Orbbec Gemini 335L), a top camera (Stereolabs ZED 2i) and the table | Yes, in `linker-sim-mujoco` and `linker-sim-isaac` |
| [`hands/o6/`](hands/o6) | LinkerHand O6, left and right | Yes, as part of LW-v0 (the same hand) |
| [`arms/ar5_08/`](arms/ar5_08), [`flanges/`](flanges), [`brackets/`](brackets), [`cameras/`](cameras), [`supports/lw_v0/`](supports/lw_v0) | The other parts of LW-v0, each a robot of its own: the AR5_08 arm (left, right), the arm-to-O6 flange, the camera brackets, the Gemini 335L and ZED 2i cameras, the table with the arm column | Yes, as parts of LW-v0 |
| [`hands/l6/`](hands/l6), [`l20lite/`](hands/l20lite), [`l25/`](hands/l25), [`l30/`](hands/l30) | LinkerHand L6, L20 Lite, L25, L30 | No (see [Not yet verified](#not-yet-verified)) |
Expand All @@ -21,7 +27,7 @@ at a time, after each has been verified in our simulators.
| --- | --- |
| MuJoCo | `assemblies/lw_v0/lw_v0.xml` (the whole station), or one unit: `left.xml`, `right.xml`, `top_camera.xml`. One part alone: its folder's `.xml`, e.g. `arms/ar5_08/ar5_08_left.xml`, `hands/<hand>/<hand>_<side>.xml` |
| ROS, Isaac Sim, PyBullet, Drake, viser and other URDF tools | `assemblies/lw_v0/lw_v0.urdf`, or a part's `.urdf`, e.g. `hands/<hand>/<hand>_<side>.urdf` |
| Python (linker-sim, linker-lab) | The package `linker-lw-v0` from this repository at a tag, e.g. in `pyproject.toml`: `"linker-lw-v0 @ git+https://github.com/linker-bot/linker-sim-assets@v1.0.0"`; then `importlib.resources.files("linker_lw_v0") / "assemblies/lw_v0/lw_v0.xml"` |
| Python (`linker-sim-mujoco`, `linker-sim-isaac`) | The package `linker-lw-v0` from this repository at a tag, e.g. in `pyproject.toml`: `"linker-lw-v0 @ git+https://github.com/linker-bot/linker-sim-assets@v1.0.0"`; then `importlib.resources.files("linker_lw_v0") / "assemblies/lw_v0/lw_v0.xml"` |

The package `linker-lw-v0` holds LW-v0's files at the same paths as this repository, the O6's
meshes it uses, `hands/o6/sdk_channels.yaml` and `motor.yaml`, and `arms/ar5_08/controller.yaml`. It contains no code. Everything else: clone the
Expand Down Expand Up @@ -102,8 +108,7 @@ joints with limits, couplings as `mimic`, damping and friction. In it:
### Measured and modelled

- Masses, inertias and kinematics: from the manufacturers' URDF and CAD.
- Drives, torque limits and contact settings: modelled. They are the values LW-v0's grasping
policies were trained with in linker-lab and run with in linker-sim.
- Drives, torque limits and contact settings: modelled. LW-v0’s grasp policies use these values during training and inference.
- Collision shapes: convex hulls, the shapes the grasping policies were trained with; not the
visual meshes.
- Colours: matched to product photos by the hardware team, not to manufacturers' colour codes.
Expand All @@ -114,7 +119,7 @@ joints with limits, couplings as `mimic`, damping and friction. In it:

The real arm and hand have controllers between a command and the joints. Their behaviour is
not in the URDF or MJCF, which only describe the mechanism and its position drives. The
constants are data files; linker-sim and linker-lab implement both models. **A simulator that
constants are data files; `linker-sim-mujoco` and `linker-sim-isaac` implement both models. **A simulator that
loads only the MJCF has the drives without these controllers:** the fingers reach their
targets as fast as their 60 N·m drives allow, much faster and harder than the real hand.

Expand Down Expand Up @@ -216,8 +221,8 @@ version. Pin a tag (or its commit) and you get exactly those files.
**What 1.x keeps** (from 1.0.0 on, until 2.0.0), for LW-v0 and the parts it is built from:

- **Paths:** `assemblies/lw_v0/lw_v0.xml`, `left.xml`, `right.xml`, `top_camera.xml`,
`lw_v0.urdf`, and each part's MJCF and URDF where they are today. The package holds them at the
same paths under `linker_lw_v0/`, with `hands/o6/sdk_channels.yaml`, `hands/o6/motor.yaml` and
`lw_v0.urdf`, and each part's MJCF and URDF where they are today. The wheel preserves the repository paths of the assembled station files, meshes and support MJCF
under `linker_lw_v0/`, alongside `hands/o6/sdk_channels.yaml`, `hands/o6/motor.yaml` and
`arms/ar5_08/controller.yaml`.
- **Names:** every body, joint, site, camera, drive (`<actuator>`) and coupling (`<equality>`)
name, in LW-v0 (`left/hand_lh_index_mcp_pitch`) and in each part's own files
Expand Down
19 changes: 12 additions & 7 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

灵心巧手(Linkerbot)的机器人模型文件,供你在自己的仿真器中使用:URDF 和 MJCF 及其网格。

(English: [README.md](README.md))
[Linker Sim 项目总览](https://github.com/linker-bot/linker-sim/blob/main/README_zh.md) · [English](README.md)

| 项目 | 用途 | 使用的资产 |
| --- | --- | --- |
| [linker-sim-mujoco](https://github.com/linker-bot/linker-sim-mujoco) | 在 CPU 上仿真 LW-v0 | 安装 [v1.0.0](https://github.com/linker-bot/linker-sim-assets/tree/v1.0.0) 的 `linker-lw-v0`,直接加载 MJCF。 |
| [linker-sim-isaac](https://github.com/linker-bot/linker-sim-isaac) | 在 GPU 上运行 LW-v0 | 安装相同版本的 `linker-lw-v0`,首次使用时将部件 MJCF 转换为 USD 并缓存。 |
| [linker-sim-viser](https://github.com/linker-bot/linker-sim-viser) | 回放 A7 Lite 数据 | Viser v0.1.0 的子模块锁定在 [321a1af](https://github.com/linker-bot/linker-sim-assets/tree/321a1afc4db70ec5366eafc556f03626e6e848ba),从该提交加载 `linker-robot-assets` 模型与手部解码器。按 [Viser 安装说明](https://github.com/linker-bot/linker-sim-viser/blob/v0.1.0/README_zh.md) 拉取 Git LFS 网格。 |

| 目录 | 机器人 | 我们是否已仿真验证 |
| --- | --- | --- |
| [`assemblies/lw_v0/`](assemblies/lw_v0) | **LW-v0**:两台 AR5_08 机械臂配 LinkerHand O6 灵巧手、腕部相机(奥比中光 Gemini 335L)、顶部相机(Stereolabs ZED 2i)和工作台 | 是:[linker-sim](https://github.com/linker-bot/linker-sim)(MuJoCo 4.0.1)和 linker-lab(Isaac Lab,MuJoCo 3.17) |
| [`assemblies/lw_v0/`](assemblies/lw_v0) | **LW-v0**:两台 AR5_08 机械臂配 LinkerHand O6 灵巧手、腕部相机(奥比中光 Gemini 335L)、顶部相机(Stereolabs ZED 2i)和工作台 | 是,已在 `linker-sim-mujoco` 和 `linker-sim-isaac` 中验证 |
| [`hands/o6/`](hands/o6) | LinkerHand O6,左手和右手 | 是,作为 LW-v0 的一部分(同一只手) |
| [`arms/ar5_08/`](arms/ar5_08)、[`flanges/`](flanges)、[`brackets/`](brackets)、[`cameras/`](cameras)、[`supports/lw_v0/`](supports/lw_v0) | LW-v0 的其他部件,每个都是一个独立的机器人:AR5_08 机械臂(左、右)、机械臂到 O6 的法兰、相机支架、Gemini 335L 和 ZED 2i 相机、带机械臂立柱的工作台 | 是,作为 LW-v0 的部件 |
| [`hands/l6/`](hands/l6)、[`l20lite/`](hands/l20lite)、[`l25/`](hands/l25)、[`l30/`](hands/l30) | LinkerHand L6、L20 Lite、L25、L30 | 否(见[尚未验证](#尚未验证)) |
Expand All @@ -21,7 +27,7 @@
| --- | --- |
| MuJoCo | `assemblies/lw_v0/lw_v0.xml`(整个工作站),或单个单元:`left.xml`、`right.xml`、`top_camera.xml`。单独加载一个部件:该部件目录中的 `.xml`,例如 `arms/ar5_08/ar5_08_left.xml`、`hands/<hand>/<hand>_<side>.xml` |
| ROS、Isaac Sim、PyBullet、Drake、viser 等 URDF 工具 | `assemblies/lw_v0/lw_v0.urdf`,或某个部件的 `.urdf`,例如 `hands/<hand>/<hand>_<side>.urdf` |
| Python(linker-sim、linker-lab) | 从本仓库的某个标签安装 `linker-lw-v0`,例如在 `pyproject.toml` 中写 `"linker-lw-v0 @ git+https://github.com/linker-bot/linker-sim-assets@v1.0.0"`;然后 `importlib.resources.files("linker_lw_v0") / "assemblies/lw_v0/lw_v0.xml"` |
| Python(`linker-sim-mujoco`、`linker-sim-isaac`) | 从本仓库的某个标签安装 `linker-lw-v0`,例如在 `pyproject.toml` 中写 `"linker-lw-v0 @ git+https://github.com/linker-bot/linker-sim-assets@v1.0.0"`;然后 `importlib.resources.files("linker_lw_v0") / "assemblies/lw_v0/lw_v0.xml"` |

`linker-lw-v0` 包含 LW-v0 的文件(路径与本仓库相同)、它用到的 O6 网格,以及
`hands/o6/sdk_channels.yaml`、`motor.yaml` 以及 `arms/ar5_08/controller.yaml`。包中没有代码。其他文件请克隆本仓库或下载 ZIP。
Expand Down Expand Up @@ -94,8 +100,7 @@ URDF 无法表达以下内容,因此它们只在 MJCF 中:
### 实测与建模

- 质量、惯量和运动学:来自制造商的 URDF 和 CAD。
- 驱动、力矩限制和接触参数:建模得到。它们是 LW-v0 的抓取策略在 linker-lab 中训练、在 linker-sim 中运行时
所用的数值。
- 驱动、力矩限制和接触参数:建模得到。这些数值用于 LW-v0 抓取策略的训练和回放。
- 碰撞形状:凸包,即抓取策略训练时使用的形状;不是视觉网格。
- 颜色:由硬件团队对照产品照片匹配,不是制造商的色号。工作台台面为防静电垫的绿色(`#2E7D5B`),由我们选定,
并非实测。
Expand All @@ -104,7 +109,7 @@ URDF 无法表达以下内容,因此它们只在 MJCF 中:
## 机器人控制器

真实的机械臂和灵巧手在指令与关节之间都有控制器。它们的行为不在 URDF 或 MJCF 中,这两种文件只描述机构和
位置驱动。常数在数据文件中;linker-sim 和 linker-lab 实现了这两个模型。**只加载 MJCF 的仿真器只有驱动、
位置驱动。常数在数据文件中;`linker-sim-mujoco` 和 `linker-sim-isaac` 实现了这两个模型。**只加载 MJCF 的仿真器只有驱动、
没有这些控制器:** 手指会以 60 N·m 驱动所允许的速度到达目标,比真实的手快得多、力量也大得多。

### O6 灵巧手电机(`hands/o6/motor.yaml`,模型 `geared-shaft-v1`)
Expand Down Expand Up @@ -188,7 +193,7 @@ LW-v0 保留了两个产品验证时的几何。以下问题推迟到后续工
**1.x 保持不变的内容**(从 1.0.0 起,直到 2.0.0),针对 LW-v0 及组成它的部件:

- **路径:** `assemblies/lw_v0/lw_v0.xml`、`left.xml`、`right.xml`、`top_camera.xml`、`lw_v0.urdf`,以及每个
部件的 MJCF 和 URDF 的当前位置。包内这些文件位于 `linker_lw_v0/` 下的相同路径,另有
部件的 MJCF 和 URDF 的当前位置。wheel 中的整站文件、网格与支撑件 MJCF 保留源码相对路径,位于 `linker_lw_v0/` 下,另有
`hands/o6/sdk_channels.yaml`、`hands/o6/motor.yaml` 和 `arms/ar5_08/controller.yaml`。
- **名称:** 每个刚体、关节、站点(site)、相机、驱动(`<actuator>`)和耦合(`<equality>`)的名称,包括
LW-v0 中的名称(`left/hand_lh_index_mcp_pitch`)和各部件自身文件中的名称(`lh_index_mcp_pitch`);关键帧
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ include = ["assemblies/lw_v0/lw_v0.xml", "assemblies/lw_v0/left.xml", "assemblie
"LICENSE", "NOTICE", "README.md"]

# The test environment: `uv run --group test pytest`. CI runs it on both MuJoCo versions the
# products use (linker-lab 3.17.0, linker-sim 4.0.1).
# products use (linker-sim-isaac 3.17.0, linker-sim-mujoco 4.0.1).
[dependency-groups]
test = ["pytest>=8", "numpy>=1.24", "pyyaml>=6", "mujoco>=3.17"]
11 changes: 11 additions & 0 deletions tests/test_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,3 +495,14 @@ def test_mounts_md_lists_every_mount():
assert mounts
missing = sorted(f"{folder}: {name}" for folder, name in mounts if f"`{name}`" not in text or f"`{folder}" not in text)
assert not missing, missing


@pytest.mark.parametrize("side", ["left", "right"])
def test_documented_arm_flange_rotation(side):
arm = ROOT / "arms/ar5_08" / f"ar5_08_{side}.xml"
flange = ET.parse(arm).find(".//frame[@name='mount_flange']")
assert flange is not None
prefix = f"| `arms/ar5_08` ({side}) | `mount_flange` |"
rows = [line for line in (ROOT / "MOUNTS.md").read_text().splitlines() if line.startswith(prefix)]
assert len(rows) == 1
assert f"`{flange.attrib['euler']}`" in rows[0]
Loading