linker-sim has been rebuilt (1.0): it now simulates one Linker workstation, LW-v0, on MuJoCo 4.0, the current major release of the MuJoCo physics engine. The previous multi-robot workspace (AR5, P7 and A7-lite arms; L6, O6, L25 and L30 hands; the asset composer and telemetry replay) is no longer maintained and remains available at tag
v0.1.0.
One Linker workstation, LW-v0 (two AR5 arms with O6 hands, a table and cameras), behaving like the real robot, simulated with MuJoCo 4 on an ordinary CPU. No GPU needed.
It is the same LW-v0 as in linker-lab, the company's GPU simulator: the same robot files, drive models, controller limits and physics settings. linker-sim runs one station at real time on macOS (Apple Silicon) or Linux, and shows it in your browser. It is a Python library to build lessons and products on, with two working examples built on it: a playground to drive the robot by hand, and a gallery of pretrained policies.
The gallery's policy weights are for research use only (see the gallery). 中文快速入门
git clone https://github.com/linker-bot/linker-sim && cd linker-sim
./install.sh # macOS (Apple Silicon) or Linux; installs everything into .venv
uv run linker-sim doctor # checks the installation and this computer's speed
uv run linker-sim play # drive LW-v0 in your browser (MuJoCo Studio)
uv run linker-sim gallery run ycb-grasp # a pretrained grasp policyimport numpy as np
from linker_sim import hand
from linker_sim.workstation import Station, arm_action_cfg
station = Station(arm_left=arm_action_cfg("left", command="pose", frame="palm"))
pos, quat = station.palm_pose("left")
goal = np.concatenate(station.to_base("left", pos + (0, 0, 0.05), quat)) # palm 5 cm up
for _ in range(60): # one simulated second
station.step(arm_left=goal, hand_left=hand.PRESETS["close"])- Getting started: install, check, play, the gallery, a first script, troubleshooting
- A first lesson: a small lesson built on the API, step by step
(
examples/pick_up_a_box.py) - API reference: everything you can build on, and the versioning rules
- The two viewers: MuJoCo Studio and viser, their differences, network access, embedding in your page
- Requirements: supported computers, measured speeds, how to test a computer
- Changelog
- 中文快速入门 (Chinese: install, play, the gallery, the first lesson)
uv sync --locked
uv run ruff check .
uv run pytest- The tests are linker-sim's acceptance checks: LW-v0 loads unchanged, home holds, the drive reference replays, pose commands settle, the gallery grasps, both viewers work.
- They also check the docs:
docs/api.mdmust list exactly each public module's__all__, and every Python example in the README anddocs/must run. - The viewer tests open both viewers in headless Chrome and skip without it; set
CHROMEto its path if it is not found. LINKER_SIM_BROWSER_VIEWERS=viseropens viser only. CI does: without a GPU, Chrome draws LW-v0 too slowly for Studio's input. Run the Studio ones on a computer with a GPU before merging.- The arm and hand models, the reading of LW-v0's files and the gallery's policy code are
copied from linker-lab and must stay identical:
uv run python tools/check_copies.py <linker-lab checkout>compares them.
