Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ the amount of manual collection needed to produce datasets for policy training.

- **Demonstration amplification** — Transform and recombine a small number of annotated demonstrations into larger,
more diverse datasets.
- **Three generation algorithms** — Use MimicGen for single-arm tasks, DexMimicGen for coordinated multi-arm tasks,
or SkillGen for collision-aware, motion-planned transitions.
- **Generation algorithms** — Use MimicGen for single-arm tasks, DexMimicGen for coordinated multi-arm tasks,
SkillGen for collision-aware, motion-planned transitions, or SoftMimicGen for deformable-object manipulation.
- **Parallel simulation** — Generate demonstrations across multiple Isaac Lab environments at once.
- **Robot and task configuration** — Describe embodiments, tasks, subtasks, and generation policies in
reusable YAML files.
Expand Down
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ make html SPHINXOPTS="-W --keep-going"
xdg-open _build/current/html/index.html
```

Run both commands from `docs/`. `make html` writes to `_build/current/html/`;
`_build/index.html` is only created by `make multi-docs` (see below).

For an existing docs environment, start at `cd docs` and `source venv_docs/bin/activate`, then run
the build command above. `-W` makes warnings fail the build. To rebuild every page after changing
the configuration, use `make html SPHINXOPTS="-E -a -W --keep-going"`.
Expand Down
3 changes: 3 additions & 0 deletions docs/images/franka_rope_annotation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/images/franka_rope_softmimicgen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/images/franka_rope_softmimicgen_datagen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/images/franka_rope_softmimicgen_replay.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/images/franka_rope_teleop.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Table of Contents
:caption: Example Workflows

pages/workflows/franka_cube_stack_mimicgen/index
pages/workflows/franka_rope_softmimicgen/index
pages/workflows/humanoid_dexmimicgen/index
pages/workflows/skillgen/index

Expand Down
42 changes: 36 additions & 6 deletions docs/pages/concepts/algorithms.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Generation Algorithms
=====================

AutoData ships three generation algorithms, selected with ``--alg`` on the CLI (the
task descriptor's ``algo`` field independently selects which per-subtask ``algo_params``
schema the descriptor is parsed with — keep the two consistent). All three plug into the
The task descriptor's ``algo`` field selects the generation algorithm and its per-subtask
``algo_params`` schema. ``--alg`` is optional; when supplied, it must match the descriptor's
``algo``. The algorithms plug into the
:doc:`data generator <data_generator>` and share the same skeleton — split
source demonstrations into subtask segments, select a segment per subtask, transform it to the
current scene, execute, and keep successful demonstrations — and differ in how segments are bridged and how
multiple arms are handled.
reference objects and multiple arms are handled.

.. list-table::
:widths: 18 14 18 50
Expand All @@ -29,6 +29,10 @@ multiple arms are handled.
- 1
- Motion planning
- cuRobo-planned, collision-free transit; requires start signals.
* - ``softmimicgen``
- 1 or 2
- Interpolation
- Thin-plate-spline warping for deformable objects.

MimicGen
--------
Expand Down Expand Up @@ -60,6 +64,27 @@ are selected, transformed, and executed per arm. Two mechanisms keep the arms co
synchronize specific subtask pairs across arms at runtime (see
:doc:`task_descriptors`).

SoftMimicGen
------------

SoftMimicGen (`Moghani et al., 2026 <https://arxiv.org/abs/2603.25725>`_) adapts demonstrations
to deformable objects such as ropes, whose shape cannot be described by a rigid-object pose
alone. It fits a **thin-plate-spline (TPS)** transform between corresponding simulation-node
positions in the source and current object shapes, then warps the source end-effector
trajectory to match. End-effector orientations are also adapted by default
(``use_rotation_transform: true``). Subtask transitions use the same interpolation as MimicGen.

Set ``algo: softmimicgen`` in the task descriptor; optionally pass ``--alg softmimicgen`` on
the CLI. For each deformable subtask, set ``algo_params.object_soft: true`` and provide an ``object_ref``.
Source annotations must include that object's simulation-node positions, and the source and
live objects must have matching node counts, topology, and node ordering: each array index
must refer to the same mesh node in both objects. Rigid-object subtasks retain
MimicGen's object-pose transform. The ``registration_cost`` selection strategy ranks source
shapes by their TPS fitting cost (see below).

See the :doc:`Franka rope workflow <../workflows/franka_rope_softmimicgen/index>` for recording,
annotation, generation, and replay with Newton or PhysX.

SkillGen
--------

Expand All @@ -75,6 +100,7 @@ abandoned and counted as a failure.
See the :doc:`SkillGen workflow <../workflows/skillgen/index>` and
:doc:`../advanced/motion_planners`.


Source Demonstration Selection Strategies
-----------------------------------------

Expand All @@ -96,10 +122,14 @@ configured per subtask in the task descriptor (``selection_strategy`` /
* - ``nearest_neighbor_robot_distance``
- Ranks demonstrations by how close their (object-frame-transformed) source end-effector pose
lands to the current end-effector pose, then picks among the ``nn_k`` nearest.
* - ``registration_cost``
- For deformable objects, ranks source shapes by TPS fitting cost and picks randomly among
the ``nn_k`` lowest-cost valid candidates.

The nearest-neighbor strategies trade diversity for reliability: segments recorded under
similar geometry transform with less distortion, raising the success rate, while ``nn_k``
keeps some randomness so the output does not collapse onto a single source demonstration. The shipped
examples use ``nearest_neighbor_object`` with ``nn_k: 3``. How often selection re-runs — per
keeps some randomness so the output does not collapse onto a single source demonstration. The
cube-stacking examples use ``nearest_neighbor_object`` with ``nn_k: 3`` while the SoftMimicGen rope
example uses ``registration_cost`` with ``nn_k: 3``. How often selection re-runs — per
subtask, per arm, or once per episode — is set by the generation policy's
``select_src_per_subtask`` / ``select_src_per_arm`` flags.
116 changes: 116 additions & 0 deletions docs/pages/workflows/franka_rope_softmimicgen/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
.. Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
.. SPDX-License-Identifier: Apache-2.0

Franka Rope Manipulation with SoftMimicGen
==========================================

This example demonstrates the AutoData workflow using SoftMimicGen to generate a synthetic
dataset for a Franka robot manipulating a deformable rope. It covers recording source
demonstrations by teleoperation, annotating their subtask boundaries, generating a dataset,
and validating the result.

The workflow supports **Newton** and **PhysX**. Use the tabs throughout the tutorial to
select a physics backend. The commands use separate dataset filenames for each backend.

.. important::

Keep the physics backend consistent for recording, annotation, generation, and replay.
Use the source dataset that matches your selected backend.

.. figure:: ../../../images/franka_rope_softmimicgen.png
:width: 100%
:align: center
:alt: Franka arm grasping a deformable rope on the table in the Kit viewer

The Franka rope manipulation task.


Task Overview
-------------

**Environment name:** ``Isaac-Rope-Franka-Arena-IK-Rel-v0``

**Task Description:** A Franka arm grasps a deformable rope on a table and manipulates it
until its two ends are close together.

**Key Specifications:**

.. list-table::
:widths: 30 70
:header-rows: 1

* - Property
- Value
* - **Algorithm**
- SoftMimicGen (single end-effector in this example)
* - **Physics backends**
- Newton (``--presets newton``) or PhysX (``--presets physx``)
* - **Embodiment**
- Franka, relative IK task-space actions (7-D: delta position, axis-angle rotation, and gripper open/close)
* - **Task descriptor**
- :autodata_code_link:`<autodata_examples/tasks/franka_rope_softmimicgen.yaml>`
* - **Embodiment config**
- :autodata_code_link:`<autodata_examples/embodiments/franka_ik_rel.yaml>`
* - **Subtasks**
- Approach and grasp the rope (``grasp``) → bring its ends together (``end of trajectory``)
* - **Newton source dataset**
- :autodata_code_link:`<datasets/annotated_datasets/dataset_franka_rope_newton_annotated.hdf5>`
* - **PhysX source dataset**
- :autodata_code_link:`<datasets/annotated_datasets/dataset_franka_rope_physx_annotated.hdf5>`


How SoftMimicGen Adapts Demonstrations
--------------------------------------

In the :doc:`cube-stacking workflow <../franka_cube_stack_mimicgen/index>`, MimicGen transforms
each source segment relative to a rigid object's pose. A rope can change shape, so its pose
alone does not describe the geometry the gripper needs to follow.

SoftMimicGen uses the rope's **simulation-node positions** to compare the source and current
rope shapes. It selects a source demonstration using registration cost, then fits a
**thin-plate-spline (TPS)** transform to adapt the source end-effector trajectory to the new
shape. Annotation records the nodal positions needed for this transform along with the
subtask signals. The source data and live rope must have matching node counts, topology,
and **node ordering**: node ``i`` in the source must correspond to node ``i`` in the live rope.
AutoData records nodes in simulation order. Use the same rope asset and physics backend
throughout the workflow, and preserve that order when converting or preprocessing datasets.
The setup check verifies node counts but does not detect reordered nodes.


Workflow
--------

Follow the whole pipeline, or skip recording and annotation by using the backend-specific
pre-annotated source dataset described in :doc:`step_3_generate_dataset`.

Prerequisites
^^^^^^^^^^^^^

Complete :doc:`../../quickstart/installation`, including downloading the Git LFS assets, and
start the dev container:

:docker_run_default:

Run the commands below from the repository root inside the container. Both backends use
``--device cuda``. A SpaceMouse is recommended for recording; a keyboard also works.

The examples enable cameras to include the task's fixed-view and wrist RGB observations.
``--viz kit`` opens the simulation window; ``--viz none`` runs without it. Camera recording
is controlled separately by ``--enable_cameras``.

Workflow Steps
^^^^^^^^^^^^^^

- :doc:`step_1_record_demonstrations`
- :doc:`step_2_annotate_demonstrations`
- :doc:`step_3_generate_dataset`
- :doc:`step_4_validate_dataset`

.. toctree::
:maxdepth: 1
:hidden:

step_1_record_demonstrations
step_2_annotate_demonstrations
step_3_generate_dataset
step_4_validate_dataset
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
.. Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
.. SPDX-License-Identifier: Apache-2.0

Step 1: Record Source Demonstrations
------------------------------------

Record a small set of successful rope-manipulation demonstrations as Isaac Lab HDF5
datasets. Each episode includes the robot's actions, observations, and initial state,
including the rope's deformable state.

.. note::

To skip recording and annotation, use the backend-specific pre-annotated source dataset
in :doc:`step_3_generate_dataset`.


Recording with a SpaceMouse (Recommended)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Set up the SpaceMouse on the host using the device setup instructions in
:doc:`../franka_cube_stack_mimicgen/step_1_record_demonstrations`, then start the dev container:

:docker_run_default:

Run the recording command for your backend:

.. tabs::

.. group-tab:: Newton

.. code-block:: bash

python submodules/IsaacLab-Arena/submodules/IsaacLab/scripts/tools/record_demos.py \
--task Isaac-Rope-Franka-Arena-IK-Rel-v0 \
--presets newton \
--external_callback autodata_examples.envs.register_environments \
--viz kit \
--device cuda \
--enable_cameras \
--teleop_device spacemouse \
--num_demos 3 \
--no-reset_sim_buffer_each_episode \
--dataset_file ./datasets/dataset_franka_rope_newton.hdf5

.. note::

Newton recording requires ``--no-reset_sim_buffer_each_episode``. Keep this flag
when using either a SpaceMouse or a keyboard.

.. group-tab:: PhysX

.. code-block:: bash

python submodules/IsaacLab-Arena/submodules/IsaacLab/scripts/tools/record_demos.py \
--task Isaac-Rope-Franka-Arena-IK-Rel-v0 \
--presets physx \
--external_callback autodata_examples.envs.register_environments \
--viz kit \
--device cuda \
--enable_cameras \
--teleop_device spacemouse \
--num_demos 3 \
--dataset_file ./datasets/dataset_franka_rope_physx.hdf5

.. figure:: ../../../images/franka_rope_teleop.gif
:width: 90%
:align: center
:alt: Recorded source demonstration of the Franka grasping one rope end and moving it toward the other

A source demonstration: approach the rope, grasp one end, and bring it toward the other.

``--external_callback`` registers AutoData's Arena rope environment before Isaac Lab creates
it. Keep this option when recording or replaying with Isaac Lab's tools.

The SpaceMouse controls are the same as in the cube-stacking workflow:

.. list-table::
:widths: 40 60
:header-rows: 1

* - Input
- Action
* - Move the puck laterally / vertically
- Translate the end-effector
* - Tilt / twist the puck
- Rotate the end-effector
* - Left button
- Toggle gripper (open / close)
* - Right button
- Discard the current demonstration and reset


Performing the Demonstrations
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Approach one end of the rope, close the gripper around it, then move it toward the other
end. Hold the ends close together until the recorder recognizes success. The recorder
exports successful demonstrations and exits automatically after three have been collected.

Use smooth, direct motions and avoid extended pauses. Confirm that the rope stays in the
gripper as it moves. If a grasp slips or the rope falls off the table, discard the attempt
and reset. Record several demonstrations across the randomized starting rope shapes.


Recording with a Keyboard (Optional)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Replace ``--teleop_device spacemouse`` with ``--teleop_device keyboard`` in the command for
your backend. No additional device setup is required.

Use the keyboard controls printed by the recorder: ``W/S``, ``A/D``, ``Q/E`` translate the
arm; ``Z/X``, ``T/G``, ``C/V`` rotate it; ``K`` toggles the gripper; and ``R`` discards the
current demonstration and resets.


Expected Output
^^^^^^^^^^^^^^^

Check that the recorded file contains the successful episodes:

.. tabs::

.. group-tab:: Newton

.. code-block:: bash

python scripts/validate_dataset.py ./datasets/dataset_franka_rope_newton.hdf5

.. group-tab:: PhysX

.. code-block:: bash

python scripts/validate_dataset.py ./datasets/dataset_franka_rope_physx.hdf5

Continue to :doc:`step_2_annotate_demonstrations`.
Loading
Loading