Skip to content

feat(cookbooks): add LIBERO robotics cookbook - #726

Merged
lukass16 merged 3 commits into
mainfrom
lukass/featured-robotics-env
Nov 4, 2026
Merged

lukass16 merged 3 commits into
mainfrom
lukass/featured-robotics-env

Conversation

@lukass16

@lukass16 lukass16 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Why

LIBERO can't run as a hud init template, and environments/ is meant for small examples that teach the SDK. This moves the LIBERO example into a cookbook. The SDK docs already mention a LIBERO example, and this is that one.

What changed

  • cookbooks/robot-libero/ replaces environments/robot-libero. The existing Cookbooks CI job picks it up through tests/e2e/test_cookbooks.py. The simulator-only modules are skipped there, as in other cookbooks with heavy dependencies.
  • It pins the released hud[robot]==0.6.22. The git-main install and the staged-wheel steps in the Dockerfile are gone.
  • The DirectControl._render override, which read private fields, is removed. The grasp hint now goes in DirectControl(notes=...) and explains how to read the finger joints the SDK already prints after a grip call.
  • Tests live in tests/. test_control.py stays. One real image build plus a single-move rollout (test_image.py, marked e2e and docker) replaces test_bridge.py and test_robot_libero.py.
  • The cookbook ships two contracts, one per control mode. LIBERO_CONTROL=absolute (the default) serves ee_abs.json, which drives the move_to tool for LLM agents. LIBERO_CONTROL=delta serves ee_del.json, the action space LIBERO-trained policies like pi0.5 expect.
  • The README Results section is removed until the cookbook has been run as built.
  • docs/v6/cookbooks/robot-benchmark.mdx now points at the cookbook and uses env="robot-libero". It also sets LIBERO_CONTROL=delta for pi0.5.
  • Rebased onto main. The Claude agent change is dropped, since main already has it.

Verification

  • ruff and ty pass. test_control.py passes against hud 0.6.22 from PyPI.
  • The image builds with hud 0.6.22. test_image.py started a container and played one move_to on the real LIBERO simulator, which graded cleanly.

Note

Medium Risk
Swaps the featured robot example for a heavier LIBERO Docker stack and deletes robot-gripper, which may break existing task references; the image patches upstream LIBERO and uses torch.load with weights_only=False for init states.

Overview
Adds cookbooks/robot-libero, a deployable LIBERO Franka sim exposed as the robot capability (CPU OSMesa rendering). LIBERO_CONTROL switches contracts: default absolute uses ee_abs.json plus MCP move_to for tool agents; delta uses ee_del.json for policies like pi0.5. Dockerfile.hud pins hud[robot]==0.6.22, clones LIBERO with small upstream fixes, and serves env:env on port 8765. Five suite templates and tasks.json define the featured taskset; tests include a fake-arm test_control.py and optional Docker test_image.py.

Removes the entire environments/featured/robot-gripper Newton/MCP tabletop stack (sim, scenes, wheels, tests).

Updates docs/v6/cookbooks/robot-benchmark.mdx to build from the cookbook, use env="robot-libero", and set LIBERO_CONTROL=delta for VLA rollouts.

Reviewed by Cursor Bugbot for commit 499d5dd. Bugbot is set up for automated code reviews on this repo. Configure here.

@lukass16 lukass16 changed the title feat(featured): add robot-libero, a LIBERO template env for VLA policies and coding agents feat(featured): add robot-libero and replace robot-gripper as the featured robotics env Oct 16, 2026
@lukass16
lukass16 marked this pull request as ready for review October 20, 2026 02:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T02:46:05.671766Z 6483218 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 18cf59ae0b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread environments/robot-libero/control.py Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@shfunc shfunc changed the title feat(featured): add robot-libero and replace robot-gripper as the featured robotics env feat(environments): add canonical LIBERO robotics example Oct 21, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 743408d. Configure here.

Comment thread cookbooks/robot-libero/bridge.py Resolved
Comment thread cookbooks/robot-libero/bridge.py Resolved
@cursor
cursor Bot force-pushed the lukass/featured-robotics-env branch from 0b5cd7b to 06982bb Compare November 4, 2026 01:24
@lukass16 lukass16 changed the title feat(environments): add canonical LIBERO robotics example feat(cookbooks): add LIBERO robotics cookbook Nov 4, 2026
@solvemproblr
solvemproblr marked this pull request as ready for review November 4, 2026 02:44

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6483218aa2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lukass16
lukass16 merged commit e47b4d5 into main Nov 4, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants