Skip to main content

lerobot-genesis

CI PyPI Python License: MIT

The bridge between the Genesis physics simulator and Hugging Face LeRobot.

Genesis is a fast, open robotics simulator; LeRobot is the open standard for robot datasets and policies. There is no official link between them — this package is that link, the same role NVIDIA's IsaacLab-Arena plays for Isaac Lab. It lets you expose any Genesis scene as a Gymnasium environment, record rollouts as a LeRobotDataset, and (from v0.2) evaluate a trained LeRobot policy in Genesis through the standard lerobot-eval workflow.

   Genesis scene ──▶ GenesisEnv (gym.Env) ──▶ LeRobotDataset ──▶ train a LeRobot policy
                          ▲                                              │
                          └────────────────── lerobot-eval ◀────────────┘   (v0.2)

Install

pip install "lerobot-genesis[all]"   # bridge + genesis-world + lerobot

genesis-world needs a CUDA GPU and a few system libraries — see the Genesis install guide. The bridge itself is pure Python; pip install lerobot-genesis (no extras) imports without either heavy dependency present.

Quickstart — record a dataset

Drive a robot in a Genesis scene and save the rollout in LeRobot's format:

from lerobot_genesis import GenesisEnv, GenesisRobotDriver, LeRobotDatasetSink, record_episodes

driver = GenesisRobotDriver(robot="path/to/robot.urdf")          # any URDF / MJCF / USD
env = GenesisEnv(driver, task="reach the target")
sink = LeRobotDatasetSink(
    "me/my-genesis-dataset",
    fps=30,
    state_dim=driver.state_dim,
    action_dim=driver.action_dim,
    image_shape=driver.image_shape,
    task="reach the target",
)

record_episodes(env, policy=lambda obs: env.action_space.sample(), sink=sink, n_episodes=10)

A runnable end-to-end example (a Franka arm, no asset download) lives in examples/record_franka.py.

Quickstart — evaluate a policy in Genesis

lerobot-genesis-eval is lerobot-eval with the Genesis env registered, so a LeRobot policy (ACT, SmolVLA, GR00T, …) can be rolled out in a Genesis scene. Smoke-test the wiring with a from-scratch policy (no checkpoint needed):

lerobot-genesis-eval --env.type=genesis --policy.type=act \
    --eval.batch_size=1 --eval.n_episodes=1 --eval.use_async_envs=false --policy.device=cpu

Point --policy.path at a trained checkpoint to score it, and --env.task at your own registered Genesis task. Training GR00T? lerobot_genesis.groot.write_modality_json emits the meta/modality.json it needs.

How it's designed

The simulator-specific work sits behind one small Protocol, so the Gymnasium contract and the recorder are testable on a CPU with no GPU and no upstream installed.

  • GenesisEnv — a gymnasium.Env over a Genesis scene. It owns the gym contract (the 5-tuple step, info["is_success"], the pixels/agent_pos observation, a continuous action Box) and delegates the physics to an injected SceneDriver.
  • GenesisRobotDriver — the reference SceneDriver: loads a robot, maps a normalised action onto a chosen subset of joints, steps physics, and reads a camera and joint state. Bring your own driver for richer scenes (objects, tasks, rewards).
  • record_episodes / LeRobotDatasetSink — roll a policy and write a LeRobotDataset (the verified v3 create → add_frame → save_episode → finalize loop).
  • GenesisEnvConfig — registers Genesis with LeRobot as --env.type=genesis.

Relationship to gym-genesis

Hugging Face's gym-genesis provides raw Gymnasium task scenes for Genesis. This package is complementary: it adds the LeRobot integration layer — dataset recording, env registration, and policy evaluation — and can wrap a gym-genesis env just as well as your own.

Roadmap

  • v0.1 — GenesisEnv, reference driver, LeRobotDataset recorder, --env.type=genesis.
  • v0.2 — EnvHub make_env + lerobot-eval policy evaluation; GR00T modality.json adapter; native vectorised (multi-env) rollouts.

License

MIT. An independent, community project — not affiliated with the Genesis or LeRobot teams.

Metadata

Release files for lerobot-genesis 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lerobot-genesis 0.3.1
File Size Uploaded Provenance Actions
lerobot_genesis-0.3.1.tar.gz 20.1 kB With provenance Details for lerobot_genesis-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lerobot-genesis 0.3.1
File Interpreter ABI Platform Actions
lerobot_genesis-0.3.1-py3-none-any.whl Python 3 none any Details for lerobot_genesis-0.3.1-py3-none-any.whl

Total release size: 37.9 kB

Release files / lerobot_genesis-0.3.1.tar.gz

Download URL lerobot_genesis-0.3.1.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ed6ec4c8b600956775222aac9a3a5ee40ce7e4b67f76711200d927b087e894e8
BLAKE2b-256 checksum
How to use checksums
5ab79cb078e837d226c49254d528a7a92e0d78b5212a36f68f22a0b509aeaa6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.

Transparency log

Release files / lerobot_genesis-0.3.1-py3-none-any.whl

Download URL lerobot_genesis-0.3.1-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d574c4be3240f5f18dfc658fe2b0d1518720bc32a7a5952497e8a77008f6fd9f
BLAKE2b-256 checksum
How to use checksums
c7c1600c61c1586adaf789cf282720900890b2f00cf5bede64fe19709e100695
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.

Transparency log

Security for lerobot-genesis 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lerobot_genesis-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page