Franka Cube Stacking with MimicGen#

This example demonstrates the AutoData workflow using MimicGen to generate a synthetic dataset for a Franka robot performing a cube-stacking task. The workflow covers recording source demonstrations by teleoperation, annotating their subtask boundaries, generating a large dataset with MimicGen, and validating the result.

Franka robot performing the cube-stacking task

The Franka cube-stacking task.#

Task Overview#

Environment name: IsaacContrib-Stack-Cube-Franka-IK-Rel

Task Description: A Franka arm stacks three cubes on a table — red on blue, then green on red.

Key Specifications:

Property

Value

Algorithm

MimicGen (single end-effector)

Embodiment

Franka, relative IK task-space actions (7-D: delta pose (xyz, rpy) + binary gripper open/close)

Task descriptor

franka_cube_stack.yaml

Embodiment config

franka_ik_rel.yaml

Subtasks

Grasp red cube (grasp_1) → stack red on blue (stack_1) → grasp green cube (grasp_2) → place green on red (end of trajectory)

Pre-annotated source dataset

datasets/annotated_datasets/dataset_franka_annotated.hdf5

Workflow#

The tutorial covers the pipeline to go from a handful of human demonstrations to a large synthetically generated dataset ready for policy training. You can follow the whole pipeline, or skip the first two steps by using the pre-annotated dataset that ships with the repository.

Prerequisites#

Complete Installation for your chosen runtime.

If you are not already in a development container, run this from the repository root in a terminal on the host, outside any container:

./docker/run_docker.sh

If the container is already running, this opens another shell in it. Continue inside the container at /workspaces/autodata.

Run commands from the repository root in a terminal on the host. uv run uses your installed uv environment, so you don’t need to activate it.

Workflow Steps#

Follow these steps to complete the workflow: