nvlabs/robolab/robolab-scenegen
Claude Code and agent skill by nvlabs/robolab
- community
Checking that the SKILL.md file is still in the repository.
Generate USD scene files for RoboLab from natural language descriptions. Use this skill when a user wants to create a new scene with objects on a table, or asks to arrange objects for a robot manipulation task.
Install
npx vskill@latest install nvlabs/robolab/robolab-scenegenSKILL.md
The same SKILL.md was published earlier as nvlabs/robolab/robolab-scenegen.
Scene Generation
Generate USD scene files (.usda) from natural language descriptions of tabletop arrangements.
A scene is a USDA file that places objects on the table in base_empty.usda. Scenes are robot-agnostic — they define only what objects exist and where they are positioned.
Reference Files
The references/ directory contains detailed documentation loaded on-demand:
references/scene_format.md— USD scene format, coordinate system, placement rules, and examplesreferences/object_catalog_guide.md— Object catalog structure, classes, and naming conventionsreferences/predicates.md— Predicate types, JSON format, and common patterns for the solver pipeline
Prerequisites
assets/scenes/base_empty.usdaexists (the base scene template)assets/objects/object_catalog.jsonexists (the object catalog)
When Invoked
When the user invokes this skill, display the following message verbatim:
I'll help you generate a USD scene file. I need a few things:
- Scene name — What should the file be called? Must end in
.usda(e.g.,fruits_bowl.usda,kitchen_sorting.usda). Use snake_case. - Scene description — What should be on the table? (e.g., "a bowl with some fruits around it", "kitchen items for a cooking task", "3 blocks stacked near a container")
- Number of objects — How many objects? (default: 3-5 for simple scenes)
- Output directory — Where should I save the scene?
assets/scenes/(standard location)assets/scenes/generated/(for generated scenes)- Or specify another path
Objects I'll pick from:
I use the object catalog at assets/objects/object_catalog.json (312 objects) built from these directories:
| Directory | Count | Examples | |
|---|---|---|---|
assets/objects/vomp/ | 196 | containers, bins, totes, crates, kitchenware | |
assets/objects/hope/ | 27 | condiments, canned goods, dairy, pantry items | |
assets/objects/hot3d/ | 25 | mugs, bowls, electronics, toys | |
assets/objects/ycb/ | 22 | fruits, bowls, cans, tools | |
assets/objects/handal/ | 19 | hammers, spoons, utensils, ladles | |
assets/objects/objaverse/ | 10 | bagels, bread, dumplings | |
assets/objects/fruits_veggies/ | 9 | avocado, lemon, lime, orange, onion | |
assets/objects/basic/ | 4 | colored blocks (red, blue, green, yellow) |
If the objects you need aren't in the catalog, you can:
- Point me to a custom object directory — give me a path and I'll scan it for USD files to include
- Refresh the catalog — if new objects have been added to the directories above, I can regenerate the catalog (requires a Python environment with
pxr/IsaacSim installed)
After the User Provides Information
After receiving the user's input:
- Always ask the user for the output directory on the first invocation. Do not assume a default — you must wait for the user to confirm a directory before writing any file. Once the user has chosen a directory, reuse it for all subsequent scenes in the same session without asking again.
- Validate the scene name ends with
.usda. If not, append.usdaand confirm with the user. - Check for duplicate scene names. If a file with the same name already exists at the output path, warn the user and ask them to choose a different name. Do not overwrite existing scene files.
- Resolve the object catalog.
- Read the default catalog at
assets/objects/object_catalog.json. - If the user specified custom object directories, scan those directories for
.usd/.usdafiles and include them as additional objects. For each custom object, extract the prim name from the filename and compute dimensions if possible (or ask the user). - If the user asked to refresh the catalog, find the IsaacSim Python interpreter (see Step 0 under After Generating) and run
<ISAACSIM_PYTHON> assets/objects/_utils/generate_catalog.py, then re-read the catalog. - Tell the user which catalog you're using and how many objects are available (e.g., "Using 312 objects from
assets/objects/object_catalog.json" or "Using 312 default objects + 5 custom objects from/path/to/custom/").
- Read `references/scene_format.md` for the exact USDA format, coordinate system, and placement rules.
- Select objects that match the user's description from the catalog. Use exact
namevalues from the catalog. - Generate predicates and solve placements using the predicate solver pipeline (see Predicate Solver Pipeline).
- Compute the payload path for each object: convert
usd_pathfrom catalog (e.g.,assets/objects/ycb/banana.usd) to a path relative to the scene's output directory (e.g.,../objects/ycb/banana.usdforassets/scenes/, or../../objects/ycb/banana.usdforassets/scenes/generated/) - Generate the USDA file using the solved positions (see Scene File Generation).
- Tell the user what objects were placed and where, with a summary table.
Predicate Solver Pipeline
The skill uses the same predicate-based solver from robolab/scene_gen/llm_scene_gen/ to compute collision-free placements. This is a 4-step pipeline that does not require IsaacSim — it runs with pure Python + numpy + scipy.
Step 1: Generate predicates JSON
Based on the user's description, generate a JSON structure with object selections and predicates. This is the same format the LLM agent on xuning/scene_task_gen uses:
Available predicate types
Spatial (2D placement on table):
place-on-base— Place on table at explicit (x, y). Params:object,x,yleft-of/right-of/front-of/back-of— Relative to another object. Params:object,reference,distancerandom-rot— Random yaw rotation. Params:objectfacing-left/facing-right/facing-front/facing-back— Oriented direction. Params:objectalign-left/align-right/align-center-lr/align-center-fb— Alignment. Params:object,reference
Physical (3D placement):
place-on— Stack on top of another object. Params:object,supportplace-in— Place inside a container. Params:objects(list),container
Coordinate system
- Table center: (0.55, 0.0)
- Safe bounds: X=[0.30, 0.80], Y=[-0.40, 0.40]
- Front = +X, Left = +Y, Right = -Y
Every object needs at least place-on-base + random-rot (2 predicates).
Step 2: Parse predicates into ObjectStates
Run a Python script via Bash that:
- Reads the object catalog
- Parses the predicates JSON into
ObjectStateobjects usingparse_predicates_from_dict - Runs the spatial solver
- Runs the physical solver
- Checks grammar feedback
- Outputs the final (x, y, z, yaw) for each object
Use this exact script pattern:
Step 3: Handle solver failures
If the spatial solver fails (returns an error), this means objects can't fit without colliding. Options:
- Reduce object count — try with fewer objects
- Adjust initial positions — spread objects further apart in the predicates
- Report to user — explain which objects collided and ask for guidance
If the solver succeeds, proceed to generate the USDA file using the solved positions.
Scene File Generation
Step 1: Read base_empty.usda
Read the entire assets/scenes/base_empty.usda file. This is your template.
Step 2: Build object prim blocks
For each object with solved positions from the predicate solver, create a prim block:
Where:
<object_name>= thenamefield from the catalog (e.g.,banana,bowl)<relative_path_to_usd>= theusd_pathconverted to be relative from the scene's directory<x>, <y>= solved positions from the spatial solver<z>=dims[2] / 2 + 0.002(from the solver output)
Step 3: Rewrite inherited payload paths (subdir scenes only)
base_empty.usda lives at assets/scenes/base_empty.usda and uses relative payloads like @../fixtures/table_oak.usd@ and @../fixtures/franka_table.usd@. Those paths resolve correctly only when the target scene also sits at assets/scenes/ (depth 1 from assets/).
If the target scene is one directory deeper (e.g. assets/scenes/generated/foo.usda or assets/scenes/wip480/foo.usda, depth 2), you must prepend one extra ../ to every inherited payload before inserting objects — otherwise the table and franka_table won't load, and physics will let objects fall through to the ground plane during settle. This is silent: the scene still opens, but the table is invisible and objects end up on the floor at z ≈ -0.67.
General rule: for a scene at depth N from assets/, prepend (N − 1) extra ../ segments to each @../...@ payload inherited from base_empty.
Example — for a scene in assets/scenes/wip480/:
@../fixtures/table_oak.usd@→@../../fixtures/table_oak.usd@@../fixtures/franka_table.usd@→@../../fixtures/franka_table.usd@
A simple regex substitution over the base content before insertion is sufficient:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/robolab-scenegen/SKILL.md
Popularity
- Repository stars
- 445
- Repository forks
- 64
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Nov 2026, 10 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nvlabs/robolab/robolab-scenegen)